您好,登录后才能下订单哦!
小编给大家分享一下hadoop-006完全分布式问题有哪些,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!
一、运行mapreduce 任务,但是在yarn里看不到任务。
bin/yarn jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.2.jar wordcount /test /out1
我配置的resourceManager 为 http://192.168.31.136:8088
原因是在 mapred-site.xml 没有配置
<property> <name>mapreduce.framework.name</name> <value>yarn</value> </property> |
二、配置好问题一后,运行mr任务提示The auxService:mapreduce_shuffle does not exist
原因是在yarn-site.xml 没有配置yarn.nodemanager.aux-services 节点
<property> <name>yarn.nodemanager.aux-services</name> <value>mapreduce_shuffle</value> </property> |
报错如下
16/11/29 23:10:45 INFO mapreduce.Job: Task Id : attempt_1480432102879_0001_m_000000_2, Status : FAILED Container launch failed for container_e02_1480432102879_0001_01_000004 : org.apache.hadoop.yarn.exceptions.InvalidAuxServiceException: The auxService:mapreduce_shuffle does not exist at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.hadoop.yarn.api.records.impl.pb.SerializedExceptionPBImpl.instantiateException(SerializedExceptionPBImpl.java:168) at org.apache.hadoop.yarn.api.records.impl.pb.SerializedExceptionPBImpl.deSerialize(SerializedExceptionPBImpl.java:106) at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$Container.launch(ContainerLauncherImpl.java:155) at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$EventProcessor.run(ContainerLauncherImpl.java:375) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) |
-----------------------------------------------------------------------------------------------------------------
配置文件记录
已提前搭建好三个节点的zookeeper 小集群,配置可以实现 HDFS HA和 YARN HA
一、hadoop-env.sh 修改了
export JAVA_HOME=/usr/lib/jvm/jdk8/jdk1.8.0_111 |
二、yarn-env.sh 修改了
export JAVA_HOME=/usr/lib/jvm/jdk8/jdk1.8.0_111 |
三、core-site.xml
<?xml version="1.0" encoding="UTF-8"?> http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software <!-- Put site-specific property overrides in this file. --> <configuration>
|
四、hdfs-site.xml
<?xml version="1.0" encoding="UTF-8"?> http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software <!-- Put site-specific property overrides in this file. --> <configuration>
|
五、mapred-site.xml
<?xml version="1.0"?> http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software <!-- Put site-specific property overrides in this file. --> <configuration>
|
六、slaves
192.168.31.136
|
七、yarn-site.xml
<?xml version="1.0"?> http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software <property> <!-- yarn restart--> <!-- 配置存储到zookeeper中 --> |
八、配置 /etc/hosts 文件 并配置 ssh免密码登录
192.168.31.136 master.com master 192.168.31.130 slave01 192.168.31.229 slave02 |
看完了这篇文章,相信你对“hadoop-006完全分布式问题有哪些”有了一定的了解,如果想了解更多相关知识,欢迎关注亿速云行业资讯频道,感谢各位的阅读!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。