49icaq
Last Updated: May 10, 2016
·
356
· phaus
902a4faaa4de6f6aebd6fd7a9fbab46a

hdfs put from stdin

Try this (untested):

cat test.txt | ssh username@masternode "hadoop dfs -put - hadoopFoldername/"

I've used similar tricks to copy directories around:

tar cf - . | ssh remote "(cd /destination && tar xvf -)"

This sends the output of local-tar into the input of remote-tar.

Say Thanks
Respond
Filed Under