[hadoop@master /]$ alias hdfs='hadoop dfs'
[hadoop@master /]$ hdfs -ls /tmp
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
Found 4 items
drwxrwxrwx - hdfs supergroup 0 2015-06-20 16:14 /tmp/.cloudera_health_monitoring_canary_files
drwxr-xr-x - hadoop supergroup 0 2015-06-20 14:48 /tmp/hive-hadoop
drwxrwxrwx - hive supergroup 0 2015-06-06 18:29 /tmp/hive-hive
drwxrwxrwt - mapred hadoop 0 2015-06-06 18:28 /tmp/logs
[hadoop@master /]$ hdfs -ls /tmp
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
Found 4 items
drwxrwxrwx - hdfs supergroup 0 2015-06-20 16:14 /tmp/.cloudera_health_monitoring_canary_files
drwxr-xr-x - hadoop supergroup 0 2015-06-20 14:48 /tmp/hive-hadoop
drwxrwxrwx - hive supergroup 0 2015-06-06 18:29 /tmp/hive-hive
drwxrwxrwt - mapred hadoop 0 2015-06-06 18:28 /tmp/logs
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29070860/viewspace-1706166/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29070860/viewspace-1706166/