我从https://downloads.cloudera.com/demo_vm/vmware/cloudera-demo-vm-cdh4.0.0-vmware.tar.gz下载了虚拟机
我发现以下列出的服务在系统启动后正在运行。
- MRV1 服务
hadoop-0.20-mapreduce-jobtracker
hadoop-0.20- mapreduce-tasktracker
- MRV2 服务
hadoop-yarn-nodemanager
hadoop-yarn-resourcemanager
hadoop-mapreduce-historyserver
- HDFS 服务
hadoop-hdfs-namenode
hadoop-hdfs-datanode
字数统计示例运行良好并按预期生成输出
/usr/bin/hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar wordcount input output
但是,以上运行使用 MRv2 - YARN 框架
我的目标是使用 MRv1 运行。正如 Cloudera 文档中所建议的,我停止了 MRV2 服务,并编辑了 /etc/hadoop/conf/mapred-site.xml
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property
到“经典”(也尝试过“本地”)
<property>
<name>mapreduce.framework.name</name>
<value>classic</value>
</property
我希望它使用 MRV1(jobtracker 和 tasktracker)运行。但是,我看到以下错误:
12/10/10 21:48:39 INFO mapreduce.Cluster: Failed to use org.apache.hadoop.mapred.LocalClientProtocolProvider due to error: Invalid "mapreduce.jobtracker.address" configuration value for LocalJobRunner : "172.30.5.21:8021"
12/10/10 21:48:39 ERROR security.UserGroupInformation: PriviledgedActionException as:cloudera (auth:SIMPLE) cause:java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses.
java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses.
at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:121)
at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:83)
......
有人可以建议可能出了什么问题。为什么错误指向无效配置?