hadoop伪分布式运行wordcount 程序报异常,大神们帮忙看看。
 2016-08-18 11:50:50,015 INFO org.apache.hadoop.mapred.TaskInProgress: Error from attempt_201608181148_0001_m_000000_0: java.lang.Throwable: Child Error
    at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:271)
Caused by: java.io.IOException: Task process exit with nonzero status of 137.
    at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:258)

2016-08-18 11:50:50,020 INFO org.apache.hadoop.mapred.TaskInProgress: Error from attempt_201608181148_0001_m_000001_0: java.lang.Throwable: Child Error
    at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:271)
Caused by: java.io.IOException: Task process exit with nonzero status of 1.
    at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:258)

core-site.xml配置

 <?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>
        <property>  
        <name>fs.default.name</name>  
        <value>hdfs://localhost:9000</value>  
    </property>  
    <property>  
        <name>hadoop.tmp.dir</name>  
        <value>/opt/data/hadoop/tmp</value>  
    </property>  
</configuration>

hdfs-site.xml配置

 <configuration>
    <property>  
        <name>dfs.replication</name>  
        <value>1</value>  
    </property>  
    <property>  
        <name>dfs.name.dir</name>  
        <value>/opt/data/hadoop/name</value>  
    </property>  
    <property>  
        <name>dfs.data.dir</name>  
        <value>/opt/data/hadoop/data</value>  
    </property>
     <property>
        <name>dfs.permissions</name>
        <value>false</value>
     </property>  
</configuration>

mapred-site.xml配置

 <?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>
        <property>  
        <name>mapred.job.tracker</name>  
        <value>localhost:9001</value>  
    </property>
</configuration>

1个回答

分布式运行wordcount 程序报异常,大神们帮忙看看。
2016-08-18 11:50:50,015 INFO org.apache.hadoop.mapred.TaskInProgress: Error from attempt_201608181148_0001_m_000000_0: java.lang.Throwable: Child Error
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:271)
Caused by: java.io.IOException: Task process exit with nonzero status of 137.
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:258)

2016-08-18 11:50:50,020 INFO org.apache.hadoop.mapred.TaskInProgress: Error from attempt_201608181148_0001_m_000001_0: java.lang.Throwable: Child Error
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:271)
Caused by: java.io.IOException: Task process exit with nonzero status of 1.
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:258)
core-site.xml配置
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问