hdfs + hbase + zookeeper (cdh4.0.1)

本文详细介绍了如何在Mint系统中安装并配置VirtualBox,随后通过root权限安装Hadoop、Zookeeper和HBase,并进行相应的配置,包括HDFS、HBase和Zookeeper的初始化设置,最终实现系统的搭建。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

由于mint安装virtualbox中,为了方便操作直接用root安装了.

sailor-mint ~ # ls *.gz
hadoop-2.0.0-cdh4.0.1.tar.gz  hbase-0.92.1-cdh4.0.1.tar.gz  zookeeper-3.4.3-cdh4.0.1.tar.gz
分别解压后放入/opt/ 并做好软链接

core-site.xml
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://sailor-mint:9000</value>
</property>
</configuration>

hdfs-site.xml
<configuration>
 <property>
 <name>dfs.replication</name>
 <value>1</value>
 </property>
 <property>
 <name>dfs.permissions.superusergroup</name>
 <value>root</value>
 </property>
 <property>
 <name>dfs.namenode.name.dir</name>
 <value>/opt/hdfsData/nn</value>
</property>
<property>
 <name>dfs.datanode.data.dir</name>
 <value>/opt/hdfsData/dn</value>
</property>
</configuration>

hbase-site.xml
<configuration>
<property>
  <name>hbase.cluster.distributed</name>
  <value>true</value>
</property>
  <property>
    <name>hbase.rootdir</name>
    <value>hdfs://sailor-mint:9000/hbase</value>
  </property>
</configuration>

sailor-mint opt # cat zookeeper/conf/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=/opt/zkData   #(改动)
# the port at which the clients will connect
clientPort=2181
#
# 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

启动:
1 hdfs
hadoop namenode -format
start-dfs.sh
2 zookeeper
zkServer.sh start
3 hbase
start-hbase.sh
4 查看进程
sailor-mint opt # jps
4199 HRegionServer
3434 DataNode
4070 HMaster
3588 SecondaryNameNode
5014 Jps
3324 NameNode
3727 QuorumPeerMain
这里 3723 QuorumPeerMain 是 zookeeper 的进程,4070 HMaster 4199 HRegionServer 是 hbase的进程

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值