• Hadoop安装错误总结


    Master的NodeManager/DateNode未启动

    日志中未出现任何错误

    • 正常现象,如需在Master中启动可在slave文件中
      slaves
    localhost
    slave01
    slave02
    

    Master的ResourceManager未启动

    1. 检查yarn-site.xml
    2. 检查mapred-site.xml

    Slave的DateNode未启动

    • 检查yarn-site.xml
      yarn-site.xml
    <property>
        <name>yarn.nodemanager.aux-services</name>
        <value>mapreduce_shuffle</value>
    </property> 
    

    Name node is in safe mode

    • 退出Safe Mode
    hadoop dfsadmin -safemode leave
    

    参考配置

    core-site.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
    <configuration>
    <property>
    	<name>fs.defaultFS</name>
    	<value>hdfs://master:9000</value>
    </property>
    <property>
    	<name>hadoop.tmp.dir</name>
    	<value>file:///home/zkpk/hadooptmpdata</value>
    </property>
    </configuration>
    

    hdfs-site.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
    <configuration>
    <property>
        <name>dfs.replication</name>
        <value>1</value>
    </property><property>
        <name>dfs.namenode.name.dir</name>
        <value>file:///home/zkpk/hadoopname</value>
    </property><property>
        <name>dfs.datanode.data.dir</name>
        <value>file:///home/zkpk/hadoopdata</value>
    </property>
    </configuration>
    

    mapred-site.xml

    <?xml version="1.0"?>
    <configuration>
    <property>
        <name>mapreduce.framework.name</name>
        <value>yarn</value>
    </property>
    <property>
        <name>mapreduce.jobhistory.address</name>
        <value>master:10020</value>
    </property>
    <property>
        <name>mapreduce.jobhistory.address</name>
        <value>master:19888</value>
    </property>
    </configuration>
    

    yarn-site.xml

    <?xml version="1.0"?>
    <configuration>
        <property>
            <name>yarn.nodemanager.aux-services</name>
            <value>mapreduce_shuffle</value>
        </property>
        <property>
            <name>yarn.resourcemanager.address</name>
            <value>master:18040</value>
        </property>
        <property>
            <name>yarn.resourcemanager.scheduler.address</name>
            <value>master:18030</value>
        </property>
        <property>
            <name>yarn.resourcemanager.resource-tracker.address</name>
            <value>master:18025</value>
        </property>
        <property>
            <name>yarn.resourcemanager.admin.address</name>
            <value>master:18141</value>
        </property>
        <property>
            <name>yarn.resourcemanager.webapp.address</name>
            <value>master:18088</value>
        </property>
    </configuration>
    
  • 相关阅读:
    转载:C#制作PDF
    搜索研究
    HDU 4029 Distinct Submatrix [后缀数组]
    HDU 4336 Card Collector [状态压缩概率DP]
    ZOJ 3329 One Person Game [数学期望]
    POJ 2096 Collecting Bugs[数学期望]
    HDU 4338 Simple Path [双联通分量+RMQ(LCA)]
    POJ 1222 EXTENDED LIGHTS OUT [高斯消元]
    HDU 2258 Continuous Same Game (1)[模拟]
    HDU 4339 Query [树状数组]
  • 原文地址:https://www.cnblogs.com/zhuxiaoxi/p/8946709.html
Copyright © 2020-2023  润新知