FIGHTANGEL 2015-05-20
启动hadoop
[root@centos local]# start-all.sh查看进程
[root@centos local]# jps 3310 JobTracker 3008 NameNode 3120 DataNode 3471 TaskTracker 3230 SecondaryNameNode 3562 Jpshdfs命令都是以hadoop fs开头的,-ls表示查看hdfs目录,hdfs://centos:9000/是配置文件core-site.xml中所配置的地址,“/“表示根路径
[root@centos local]# hadoop fs -ls hdfs://centos:9000/ Warning: $HADOOP_HOME is deprecated. Found 1 items drwxr-xr-x - root supergroup 0 2015-05-19 11:08 /usr更简单的查询方式是省略路径,会通过core-site.xml自行查找hdfs路径