Skip to content

Instantly share code, notes, and snippets.

@sashaegorov
Created July 9, 2015 22:53
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 sashaegorov/0b5065619e862b54fef6 to your computer and use it in GitHub Desktop.
Save sashaegorov/0b5065619e862b54fef6 to your computer and use it in GitHub Desktop.
$ ssh egorov@hdp001.rdb
$ echo 42 > big_data.txt
$ hadoop fs -put big_data.txt /tmp
$ hadoop fs -ls /tmp
Found 1 item
-rw-r--r-- 3 egorov supergroup 3 2015-07-10 02:41 /tmp/big_data.txt
$ hadoop fs -du /tmp/big_data.txt
3 /tmp/big_data.txt
[egorov@hdp001 ~]$ hadoop fs -stat %o /tmp/big_data.txt
134217728
[egorov@hdp001 ~]$ hdfs getconf -confKey dfs.blocksize
134217728
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment