2

起初我不能让jobtrackers和tasktrackers运行,然后我用xml文件中的hdmaster替换了10.112.57.243之类的所有ip,并将mapred.job.tracker更改为hdfs://一个。后来我在hadoop运行时格式化了namenode,然后它变成了一场灾难。我在日志中发现错误消息作为标题,然后我尝试什至删除/tmp和hdfs tmp中的所有内容,然后重新启动,它仍然是这样的。那么我怎样才能摆脱这个错误并让namenode再次运行呢?非常感谢。

核心站点.xml

    <configuration>
    <property>
     <name>fs.default.name</name>
      <value>hdfs://hdmaster:50000</value>
    </property>
    <property>
      <name>hadoop.tmp.dir</name>
     <value>/home/ubuntu/hadoop/tmp</value>
    </property>
    <property>
    <name>dfs.replication</name>
    <value>2</value>
    <description>Default block replication. The actual number of replications can be specified when the file is created. The default is used if replication is not specified in create time.</description>
    </property>
    </configuration>

hadoop-site.xml

    <configuration>

    <property>
      <name>hadoop.tmp.dir</name>
      <value>/home/ubuntu/hadoop/tmp</value>
    </property>

    <property>
      <name>fs.default.name</name>
      <value>hdfs://hdmaster:50000</value>
    </property>

    <property>
      <name>mapred.job.tracker</name>
      <value>hdfs://hdmaster:50001</value>
    </property>

    </configuration>

mapred-site.xml

    <configuration>
    <property>
      <name>mapred.job.tracker</name>
      <value>hdfs://hdmaster:50001</value>
    </property>
    <property>
     <name>mapred.system.dir</name>
     <value>/home/ubuntu/hadoop/system</value>
     </property>
    <property>
      <name>mapred.local.dir</name>
     <value>/home/ubuntu/hadoop/var</value>
    </property>
    </configuration>
4

0 回答 0