Skip to content

Instantly share code, notes, and snippets.

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