cdh5 beta2 集群配置文件

原创
2014/06/21 09:32
阅读数 872
注意:需要自己配置java环境,ssh通信
版本:hadoop:hadoop-2.2.0-cdh5.0.0-beta-2.tar.gz
      zookeeper:zookeeper-3.4.5-cdh5.0.0-beta-2.tar.gz
      hbase:hbase-0.96.1.1-cdh5.0.0-beta-2.tar.gz
下载地址:http://archive.cloudera.com/cdh5/cdh/5/
该版本的eclipse插件:联系625180661
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>
===========================================================


展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部