Skip to content

Instantly share code, notes, and snippets.

@NISH1001
Last active March 12, 2019 19:49
Show Gist options
  • Save NISH1001/0d1b10c528a548e75f5d3c2eb442cdc9 to your computer and use it in GitHub Desktop.
Save NISH1001/0d1b10c528a548e75f5d3c2eb442cdc9 to your computer and use it in GitHub Desktop.
Hadoop File System (HDFS) shit

Append File to File

hdfs dfs -appendToFile <src> <dest>

Echo to File

echo "hello world" | hadoop fs -appendToFile - /dir/hadoop/hello_world.txt

Run as User

sudo -u <user> <command>

Copy From Local

hdfs dfs -copyFromLocal <src> <dest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment