hadoop配置

hadoop-env.sh

export JAVA_HOME=java绝对路径

export HDFS_NAMENODE_USER=root export HDFS_DATANODE_USER=root export HDFS_SECONDARYNAMENODE_USER=root export YARN_RESOURCEMANAGER_USER=root export YARN_NODEMANAGER_USER=root

 

core-site.xml

     <property>
                <name>fs.defaultFS</name>
                <value>hdfs://centos001:9000</value>
        </property>
        <property>
                <name>hadoop.tmp.dir</name>
                <value>/usr/local/hadoop/tmp</value>
        </property>

 

hdfs-site.xml

     <property>
                <name>dfs.namenode.secondary.http-address</name>
                <value>centos001:50090</value>
        </property>

       <property>
                <name>dfs.replication</name>
                <value>2</value>
        </property>

 

yarn-site.xml

     
     <
property> <name>yarn.nodemanager.aux-services</name> <value>mapreduce_shuffle</value> </property> <property> <name>yarn.resourcemanager.hostname</name> <value>centos001</value> </property>

 

mapred-site.xml

     <property>
                <name>mapreduce.framework.name</name>
                <value>yarn</value>
        </property>

 

posted @ 2021-12-06 11:34  王东波  阅读(2)  评论(0编辑  收藏  举报