中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

cdh5 beta2集群配置文件的示例分析

發布時間:2021-12-07 14:15:48 來源:億速云 閱讀:137 作者:小新 欄目:云計算

這篇文章給大家分享的是有關cdh5 beta2集群配置文件的示例分析的內容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。

注意:需要自己配置java環境,ssh通信
版本:hadoop:hadoop-2.2.0-cdh6.0.0-beta-2.tar.gz
      zookeeper:zookeeper-3.4.5-cdh6.0.0-beta-2.tar.gz
      hbase:hbase-0.96.1.1-cdh6.0.0-beta-2.tar.gz
下載地址:http://archive.cloudera.com/cdh6/cdh/5/
Hadoop:
core-site.xml
===========================================
<configuration>
        <property>
                <name>fs.default.name</name>
                <value>hdfs://master:8020</value>
                <final>true</final>
        </property>
         <property>
                <name>dfs.namenode.name.dir</name>
                <value>/usr/local/hd/dfs/name</value>
         </property>
        <property>
                 <name>hadoop.tmp.dir</name>
                 <value>/usr/local/hd/tmp</value>
                 <description>A base for other temporary directories.</description>
        </property>
        <property>
                 <name>hadoop.proxyuser.hadoop.hosts</name>
                 <value>*</value>
        </property>
        <property>
                 <name>hadoop.proxyuser.hadoop.groups</name>
                 <value>*</value>
        </property>
</configuration>
==================================================
hdfs-site.xml
==================================================
<configuration>
        <property>
                <name>dfs.datanode.data.dir</name>
                <value>/usr/local/hd/dfs/data</value>
        </property>
        <property>
                <name>dfs.replication</name>
                <value>2</value>
        </property>
        <property>
                <name>dfs.permissions</name>
                <value>false</value>
        </property>
        <property>
               <name>dfs.namenode.secondary.http-address</name>
               <value>master:8021</value>
         </property>
         <property>
               <name>dfs.webhdfs.enabled</name>
               <value>true</value>
         </property>
         <property>
                 <name>dfs.web.ugi</name>
                 <value>hadoop,supergroup,zzg</value>
         </property>
</configuration>
===============================================================
maped-site.xml
===============================================================
<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.webapp.address</name>
                <value>master:19888</value>
        </property>?
</configuration>
=================================================================
yarn-site.xml
===============================================================
<configuration>

<!-- Site specific YARN configuration properties -->
                <property>
                  <name>yarn.resourcemanager.address</name>
                  <value>master:8032</value>
                </property>
         
                <property>
                  <name>yarn.resourcemanager.scheduler.address</name>
                  <value>master:8030</value>
                </property>      
                <property>
                  <name>yarn.resourcemanager.resource-tracker.address</name>
                  <value>master:8031</value>
                </property>
                 
                <property>
                  <name>yarn.resourcemanager.admin.address</name>
                  <value>master:8033</value>
                </property>
                 
                <property>
                  <name>yarn.resourcemanager.webapp.address</name>
                  <value>master:8088</value>
                </property>
        <property>
                <name>yarn.nodemanager.aux-services</name>
                <value>mapreduce_shuffle</value>
        </property>
        <property>
                <name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
                <value>org.apache.hadoop.mapred.ShuffleHandler</value>
        </property>
</configuration>
============================================================
zookeeper
zoo.cfg
==========================================================

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=/usr/local/hd/zookeeper/data
# the port at which the clients will connect
clientPort=2181
server.1=master:2888:3888  
server.2=slave1:2888:3888  
server.3=slave2:2888:3888  
#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
==========================================================
hbase
hbase-site.xml
========================================================
<configuration>
        <property> 
                <name>hbase.rootdir</name> 
                <value>hdfs://master:8020/hbase</value> 
        </property> 
        <property> 
                <name>hbase.cluster.distributed</name> 
                <value>true</value> 
        </property> 
        <property> 
                <name>hbase.zookeeper.quorum</name> 
                <value>master,slave1,slave2</value>
       </property>
        <property>
                <name>hbase.zookeeper.property.clientPort</name>
                 <value>2181</value>
       </property>
       <property>
                <name>hbase.zookeeper.property.dataDir</name>
                <value>/usr/local/hd/zookeeper/data</value>
       </property>
</configuration>
===========================================================

感謝各位的閱讀!關于“cdh5 beta2集群配置文件的示例分析”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

宜都市| 杭锦后旗| 浠水县| 赫章县| 中江县| 那曲县| 垦利县| 灵川县| 枣强县| 阿坝| 蒙阴县| 如东县| 察雅县| 夏津县| 台东县| 谷城县| 丰顺县| 井研县| 巫山县| 荔浦县| 金寨县| 山阴县| 金秀| 仁怀市| 大悟县| 南宫市| 花莲市| 神农架林区| 习水县| 扶沟县| 闵行区| 郁南县| 通辽市| 美姑县| 浮山县| 旺苍县| 抚宁县| 德清县| 四川省| 什邡市| 彭山县|