Created
October 8, 2019 07:34
-
-
Save mveeneman/7b38289a11bc4cbb390a2d7dabe93658 to your computer and use it in GitHub Desktop.
Create a test file on HDFS in /tmp folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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