hdfs dfs -ls 命令

Connecting to 192.168.111.242:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Last login: Fri Jun 17 09:24:06 2016 from 192.168.111.186
[root@bigdata242 ~]# hdfs dfs -ls
-bash: hdfs: command not found
[root@bigdata242 ~]# su -hadoop
su: invalid option -- 'h'
Try `su --help' for more information.
[root@bigdata242 ~]# su - hadoop
[hadoop@bigdata242 ~]$ ll
total 19244
-rw-r--r--  1 hadoop hadoop  8491533 Jun 16 20:22 apache-maven-3.3.9-bin.tar.gz
drwxrwxr-x 35 hadoop hadoop     4096 Jun 17 09:28 spark-1.5.0-cdh5.5.0
-rw-r--r--  1 hadoop hadoop 11206169 Jun 16 20:23 spark-1.5.0-cdh5.5.0-src.tar.gz
[hadoop@bigdata242 ~]$ hdfs dfs -ls

Found 1 items
drwx------   - hadoop supergroup          0 2016-06-16 23:40 .Trash
[hadoop@bigdata242 ~]$ 
[hadoop@bigdata242 ~]$ hdfs dfs -ls
Found 1 items
drwx------   - hadoop supergroup          0 2016-06-16 23:40 .Trash
[hadoop@bigdata242 ~]$ ifconfig
em1       Link encap:Ethernet  HWaddr F8:DB:88:FC:5A:A3  
          inet addr:192.168.111.242  Bcast:192.168.111.255  Mask:255.255.255.0
          inet6 addr: fe80::fadb:88ff:fefc:5aa3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27915718 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12907575 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9405248171 (8.7 GiB)  TX bytes:6873884549 (6.4 GiB)
          Interrupt:16 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:52116 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52116 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:6401708 (6.1 MiB)  TX bytes:6401708 (6.1 MiB)

[hadoop@bigdata242 ~]$ 

你可能感兴趣的:(hadoop)