Skip to content

Instantly share code, notes, and snippets.

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 satwikmishra/8cc17f45c70230829f7554f6b5217c1f to your computer and use it in GitHub Desktop.
Save satwikmishra/8cc17f45c70230829f7554f6b5217c1f to your computer and use it in GitHub Desktop.
HDFS ASSIGNMENT
1)start hdfs: start-all.sh
2)create a directory raudra: hadoop fs -mkdir /user/satwik/raudra
3)create a file, name it as big on your local filesystem and upload it to hdfs under /raudra: bin/hdfs dfs -copyFromLocal /home/satwik/Desktop/big/raudra
4)view content: bin/hdfs dfs -cat /user/satwik/raudra/big
5)view size of big: bin/hdfs dfs -du -h /user/satwik/raudra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment