Hadoop: Getting error when i load file from source (i.e my PC) to HDFS -
im trying copy file source hdfs
query: hadoop fs -copyfromlocal (local path) (source path)
e.g hadoop fs -copyfromlocal c:\users\desktop (source path)
as e.g hadoop fs -copyfromlocal c:\users\desktop uri
but geting error
-copyfromlocal: can not create path null string usage: hadoop fs [generic options] -copyfromlocal [-f] [-p] (localsrc) ... (dst)
try hadoop dfs -copyfromlocal file_to_be_copied hdfs://namenode:/path_to_location
fs command being depreciated.
note: not have mention actual hdfs path.
hadoop dfs -copyfromlocal file_to_be_copied /path_to_location_within_hdfs
Comments
Post a Comment