hadoop fs –put Unknown command -
hadoop fs –put Unknown command -
create folder [loan_data] below command
/my_work/hadoop-1.0.3/bin$hadoop fs -mkdir hdfs://masternode:8020/tmp/hadoop-hadoop/dfs/loan_data
now when open using web url
contents of directory /tmp/hadoop-hadoop/dfs shows loan_data
then want store info txt file loan_data folder using set or copyfromlocal
put: unknown command
/hadoop fs –put '/home/hadoop/my_work/acquisition_2012q1.txt' hdfs://masternode:8020/tmp/hadoop-hadoop/dfs/loan_data
how resolve issue?
tried command , "it appears", there typo error in above command 'hadoop fs –put ....'.
instead of '–put', utilize '-put' or '-copyfromlocal'. problem '–' right character should '-'. such, error obvious :-)
here illustration (using command instead of put): $ hadoop fs –get /tmp/hadoop-data/output/* /tmp/hadoop-data/output/ –get: unknown command $ hadoop fs -get /tmp/hadoop-data/output/* /tmp/hadoop-data/output/ get: `/tmp/hadoop-data/output/part-r-00000': file exists
-regards anand
hadoop command put
Comments
Post a Comment