Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Reply To: What is the location on windows drive the hadoop fs copyFromLocal command take

$
0
0

Hi Krishna,

You can specify the local Windows file path for the file you are copying into HDFS.

For example,
hadoop fs –copyFromLocal weblog_entries.txt /data/weblogs

would pick up weblog_entries.txt that is in your current working directory in the shell terminal.

You could also execute this:
hadoop fs –copyFromLocal D:\localdatat\weblog_entries.txt /data/weblogs

That will pick up weblog_entries.txt from the specified local path.


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>