Check your core-site.xml :
<property>
<name>fs.default.name</name>
<value>hdfs://host:port</value>
</property>
This port can be 9000 or 8020.
Make sure that you are using the same port in your code or command
More Related Contents:
- Hadoop “Unable to load native-hadoop library for your platform” warning
- Hive: Best way to do incremetal updates on a main table
- Read whole text files from a compression in Spark
- hadoop No FileSystem for scheme: file
- Write a file in hdfs with Java
- Should I call ugi.checkTGTAndReloginFromKeytab() before every action on hadoop?
- Calling a mapreduce job from a simple java program
- How to use Sqoop in Java Program?
- Oozie: Launch Map-Reduce from Oozie action?
- Hadoop DistributedCache is deprecated – what is the preferred API?
- Hadoop cluster setup – java.net.ConnectException: Connection refused
- Hadoop Word count: receive the total number of words that start with the letter “c”
- Reading file as single record in hadoop
- How to convert .txt file to Hadoop’s sequence file format
- Exception in thread “main” java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z
- Iterate twice on values (MapReduce)
- Accessing a mapper’s counter from a reducer
- NotSerializableException on anonymous class
- How do I build/run this simple Mahout program without getting exceptions?
- MultipleOutputFormat in hadoop
- out of Memory Error in Hadoop
- How can I force Spark to execute code?
- Change File Split size in Hadoop
- How to list all files in a directory and its subdirectories in hadoop hdfs
- How to run a jar file in hadoop?
- hadoop java.net.URISyntaxException: Relative path in absolute URI: rsrc:hbase-common-0.98.1-hadoop2.jar
- Parsing time strings like “1h 30min”
- Java how to sort a Linked List?
- preincrement / postincrement in java
- Hibernate vs JPA vs JDO – pros and cons of each? [closed]