Skip to content

Instantly share code, notes, and snippets.

@robenalt
Last active February 7, 2017 15:17
Show Gist options
  • Save robenalt/f6ad257236db5ae8fb88 to your computer and use it in GitHub Desktop.
Save robenalt/f6ad257236db5ae8fb88 to your computer and use it in GitHub Desktop.
Load a Remote file to hadoop through an edge node via ssh piping
# Load a Remote file to hadoop through ssh
cat /some/path/tofile.csv | ssh user@host "hadoop fs -put - /some_hdfs/path/for/the/file.csv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment