linux hadoop环境变量配置

linux hadoop环境变量配置

>>>jdk
JAVA_HOME=/root/app/lib/jdk1.8.0_171
CLASSPATH =.;%JAVA_HOME/lib;$JAVA_HOME/lib/tools.jar
PATH=$PATH:$JAVA_HOME/bin;$JAVA_HOME/jre/bin
>>>core-site.xml
<configuration>
    <property>
        <name>fs.defaultFS</name>
        <value>hdfs://localhost:9000</value>
    </property>
    <property>
        <name>hadoop.tmp.dir</name>
        <value>/root/app/lib/hadoop-2.7.6/tmpData/dn</value>
    </property>
</configuration>
>>>hdfs-site.xml
<configuration>
    <property>
        <name>dfs.replication</name>
        <value>1</value>
    </property>
    <property>
        <name>dfs.namenode.name.dir</name>
        <value>/root/app/lib/hadoop-2.7.6/tmpData/nn</value>
    </property>
    <property>
        <name>dfs.datanode.data.dir</name>
        <value>/root/app/lib/hadoop-2.7.6/tmpData/dn</value>
    </property>
</configuration>
>>>mapred-site.xml
<configuration>
    <property>  
        <name>mapreduce.framework.name</name>  
        <value>yarn</value>  
    </property>  
</configuration>
>>>yarn.xml
<configuration>
    <property>
        <name>yarn.resourcemanager.hostname</name>
        <value>master</value>
    </property>
    <property>
        <name>yarn.nodemanager.aux-services</name>
        <value>mapreduce_shuffle</value>
    </property>
</configuration>

猜你喜欢

转载自blog.csdn.net/godlovebinlee/article/details/81051688
今日推荐