[hadoop@LexiaofeiMaster hadoop-2.6.0]$ start-dfs.sh
Starting namenodes on [localhost]localhost: starting namenode, logging to /opt/modules/hadoop-2.6.0/logs/hadoop-hadoop-namenode-LexiaofeiMaster.outLexiaofeiMaster: starting datanode, logging to /opt/modules/hadoop-2.6.0/logs/hadoop-hadoop-datanode-LexiaofeiMaster.outStarting secondary namenodes [0.0.0.0]0.0.0.0: starting secondarynamenode, logging to /opt/modules/hadoop-2.6.0/logs/hadoop-hadoop-secondarynamenode-LexiaofeiMaster.out[hadoop@LexiaofeiMaster hadoop-2.6.0]$ jps4421 SecondaryNameNode4238 DataNode4530 Jps4153 NameNode[hadoop@LexiaofeiMaster hadoop-2.6.0]$ hdfs dfs -ls /[hadoop@LexiaofeiMaster hadoop-2.6.0]$ hdfs dfs -mkdir -p /input/grep[hadoop@LexiaofeiMaster hadoop-2.6.0]$ start-yarn.shstarting yarn daemonsstarting resourcemanager, logging to /opt/modules/hadoop-2.6.0/logs/yarn-hadoop-resourcemanager-LexiaofeiMaster.outLexiaofeiMaster: starting nodemanager, logging to /opt/modules/hadoop-2.6.0/logs/yarn-hadoop-nodemanager-LexiaofeiMaster.out[hadoop@LexiaofeiMaster hadoop-2.6.0]$ jps4421 SecondaryNameNode4744 NodeManager4238 DataNode4801 Jps4653 ResourceManager4153 NameNode[hadoop@LexiaofeiMaster hadoop-2.6.0]$ hdfs dfs -put /opt/data/input/* /input/grep[hadoop@LexiaofeiMaster hadoop-2.6.0]$ hdfs dfs -ls /input/grepFound 8 items-rw-r--r-- 1 hadoop supergroup 4436 2017-02-09 20:01 /input/grep/capacity-scheduler.xml-rw-r--r-- 1 hadoop supergroup 774 2017-02-09 20:01 /input/grep/core-site.xml-rw-r--r-- 1 hadoop supergroup 9683 2017-02-09 20:01 /input/grep/hadoop-policy.xml-rw-r--r-- 1 hadoop supergroup 775 2017-02-09 20:01 /input/grep/hdfs-site.xml-rw-r--r-- 1 hadoop supergroup 620 2017-02-09 20:01 /input/grep/httpfs-site.xml-rw-r--r-- 1 hadoop supergroup 3523 2017-02-09 20:01 /input/grep/kms-acls.xml-rw-r--r-- 1 hadoop supergroup 5511 2017-02-09 20:01 /input/grep/kms-site.xml-rw-r--r-- 1 hadoop supergroup 690 2017-02-09 20:01 /input/grep/yarn-site.xml[hadoop@LexiaofeiMaster hadoop-2.6.0]$ ./sbin/mr-jobhistory-daemon.sh start historyserverstarting historyserver, logging to /opt/modules/hadoop-2.6.0/logs/mapred-hadoop-historyserver-LexiaofeiMaster.out[hadoop@LexiaofeiMaster hadoop-2.6.0]$ jps5179 JobHistoryServer4421 SecondaryNameNode4744 NodeManager4238 DataNode5210 Jps4653 ResourceManager4153 NameNode[hadoop@LexiaofeiMaster hadoop-2.6.0]$