Tag Archives: FileSystem

java.lang.IllegalArgumentException: Wrong FS: expected: file:/// – Hadoop

Today while writing a java program to interact with the Hadoop File System(HDFS) I was getting the below mentioned exception (Wrong FS: expected: file:///).

Note : My hadoop cluster is running on Cloudera CDH 5.

i.e – Exception in thread “main” java.lang.IllegalArgumentException: Wrong FS: hdfs://ibc.techidiocy.com:8020/user/saurav/input.txt, expected: file:///

And below is the command that I was trying to execute in my local system to read a file from HDFS.

java -jar HDFSInteraction.jar hdfs://ibc.techidiocy.com:8020/user/saurav/input.txt

Here is the complete stack trace. Continue reading java.lang.IllegalArgumentException: Wrong FS: expected: file:/// – Hadoop

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS