diff --git a/hdfs_file_size.sh b/hdfs_file_size.sh index 8f0b72e0..72539343 100755 --- a/hdfs_file_size.sh +++ b/hdfs_file_size.sh @@ -20,12 +20,10 @@ usage(){ cat < + 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 }'