updated hdfs_file_size.sh

pull/2/head
Hari Sekhon 5 years ago
parent fe791dc8f6
commit 2e0a0c513e

@ -20,12 +20,10 @@ usage(){
cat <<EOF
Recurses HDFS path arguments outputting:
<file_size> <filename>
<file_size_of_single_replica> <filename>
Calls HDFS command which is assumed to be in \$PATH
Capture stdout > file.txt for comparisons
Make sure to kinit before running this if using a production Kerberized cluster
@ -40,8 +38,5 @@ if [[ "${1:-}" =~ ^- ]]; then
usage
fi
hdfs dfs -ls -R "$@" |
grep -v '^d' |
awk '{ $1=$2=$3=$4=$6=$7=""; print }' |
#sed 's/^[[:space:]]*//'
column -t
hdfs dfs -du "$@" |
awk '{ $2=""; print }'

Loading…
Cancel
Save