Mapreduce运行异常Container exited with a non-zero exit code 1

文章目录

    • Hadoop版本3.3.1
    • 问题描述
    • 解决方案

Hadoop版本3.3.1

问题描述

用idea编写mapreduce读写hbase,并打包jar放到集群服务器上运行时出现下面错误:

Mapreduce运行异常Container exited with a non-zero exit code 1_第1张图片

解决方案

hadoop classpath

在这里插入图片描述复制配置信息添加入yarn-site.xml

Mapreduce运行异常Container exited with a non-zero exit code 1_第2张图片

<property>
        <name>yarn.application.classpathname>
        <value>/opt/module/hadoop-3.3.1/etc/hadoop:/opt/module/hadoop-3.3.1/share/hadoop/common/lib/*:/opt/module/hadoop-3.3.1/share/hadoop/common/*:/opt/module/hadoop-3.3.1/share/hadoop/hdfs:/opt/module/hadoop-3.3.1/share/hadoop/hdfs/lib/*:/opt/module/hadoop-3.3.1/share/hadoop/hdfs/*:/opt/module/hadoop-3.3.1/share/hadoop/mapreduce/*:/opt/module/hadoop-3.3.1/share/hadoop/yarn:/opt/module/hadoop-3.3.1/share/hadoop/yarn/lib/*:/opt/module/hadoop-3.3.1/share/hadoop/yarn/*value>
property>
``

你可能感兴趣的:(mapreduce,hadoop,big,data)