Skip to content

Instantly share code, notes, and snippets.

@mveeneman
Created October 8, 2019 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mveeneman/7b38289a11bc4cbb390a2d7dabe93658 to your computer and use it in GitHub Desktop.
Save mveeneman/7b38289a11bc4cbb390a2d7dabe93658 to your computer and use it in GitHub Desktop.
Create a test file on HDFS in /tmp folder
#!/bin/bash
cat > testfile.txt << EOF
"id","name"
101,"Pietje"
123,"Jantje"
222,"Klaasje"
223,"Katrien"
EOF
hadoop fs -copyFromLocal testfile.txt /tmp
hadoop fs -chmod 777 /tmp/testfile.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment