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

发布时间:2021-12-07 14:15:48 作者:小新
来源:亿速云 阅读:134

这篇文章给大家分享的是有关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集群配置文件的示例分析”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

推荐阅读:
  1. CDH5 下HBase组件无法启动
  2. CDH5.16.1集群企业真正离线部署

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

cdh5 beta2

上一篇:SpringBoot中怎么发送QQ邮件

下一篇:Kube-proxy配置参数有哪些

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》