This is on a EMR cluster.

This does not work!
hadoop@ip-10-34-7-51:~$ hadoop dfs -mkdir hdfs://10.34.7.51:9000/user/foobar
mkdir: This file system object (hdfs://ip-10-34-7-51.ec2.internal:9000) does 
not support access to the request path 'hdfs://10.34.7.51:9000/user/foobar' You 
possibly called FileSystem.get(conf) when you should have called 
FileSystem.get(uri, conf) to obtain a file system supporting your path.
Usage: java FsShell [-mkdir <path>]

This works!
hadoop@ip-10-34-7-51:~$ hadoop dfs -fs hdfs://10.34.7.51:9000 -mkdir 
/user/foobar

 
-Ayon
See My Photos on Flickr
Also check out my Blog for answers to commonly asked questions.

Reply via email to