mapred.xml配置如下:<property>
<name>mapred.job.tracker</name>
<value>127.0.0.1:9999</value>
<description>The host and port that the MapReduce job tracker runs
at. If "local", then jobs are run in-process as a single map
and reduce task.
</description>
</property>
<property>
<name>mapreduce.local.clientfactory.class.name</name>
<value>org.apache.hadoop.mapred.LocalClientFactory</value>
<description>This the client factory that is responsible for
creating local job runner client</description>
</property>
<property>
<name>mapreduce.jobtracker.http.address</name>
<value>0.0.0.0:50030</value>
<description>
The job tracker http server address and port the server will listen on.
If the port is 0 then the server will start on a free port.
</description>
</property>
hdfs.xml配置如下:
<property>
<name>dfs.namenode.http-address</name>
<value>0.0.0.0:50070</value>
<description>
The address and the base port where the dfs namenode web ui will listen on.
</description>
</property>
启动日志如下:
$ ./start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
16/08/24 09:59:32 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
]tarting namenodes on [127.0.0.1
: Name or service not knownstname 127.0.0.1
localhost: starting datanode, logging to /cygdrive/e/hadoop/hadoop-2.7.2/hadoop-2.7.2/logs/hadoop-xd.bu-datanode-xm-xd-bu.out
]tarting secondary namenodes [0.0.0.0
: Name or service not knownstname 0.0.0.0
16/08/24 10:00:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
starting yarn daemons
starting resourcemanager, logging to /cygdrive/e/hadoop/hadoop-2.7.2/hadoop-2.7.2/logs/yarn-xd.bu-resourcemanager-xm-xd-bu.out
localhost: starting nodemanager, logging to /cygdrive/e/hadoop/hadoop-2.7.2/hadoop-2.7.2/logs/yarn-xd.bu-nodemanager-xm-xd-bu.out
请帮忙看一下是什么问题。谢谢大家。