Hadoop+zookeeper+Hbase+Hive(ZooKeeper+Hbase)

这篇博客详细介绍了Zookeeper的配置过程,包括修改配置文件、创建datadir目录及启动Zookeeper。接着,文章转向了Hbase的配置,提到了需要配置hbase-site.xml、hbase-env.sh和log4j.properties文件,以及regionservers,并指导如何启动Hbase。
摘要由CSDN通过智能技术生成

zookeeper

修改配置文件

vi /zookeeper/conf.cfg
------------------------------------------
# The number of milliseconds of each tick
tickTime=2000
maxClientCnxns=0
# The number of ticks that the initial
# synchronization phase can take
initLimit=50
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
dataDir=/opt/hadoop260/zookeeperdata
# the port at which the clients will connect
clientPort=2181

server.1=hao001:2888:3888
server.2=hao002:2888:3888
server.3=hao003:2888:3888
--------------------------------------------
复制到三个节点(scp ... ...@hao02:...)

创建datadir目录

#在对应目录建立zookeeperdata目录
#在新建的zookeeperdata新建文件myid,内容与(server.)数字对应
echo "1" > /opt/hadoop260/zookeeperdata/myid

启动zookeeper

cd /opt/zookeeper
./bin/zkServer.sh start
-------------------
tar zookeeper.out

Hbase

配置Hbase

hbase-site.xml

vi /opt/hbase/conf/hbase-site.xml
------------------------------------------
<configuration>
 <property>
  <name>hbase.rootdir</name>
  <value>hdfs://hao01:9000/hbase</value>
  <description>The directory shared by region servers.</description>
 </property>
 <property>
  <name>hbase.cluster.distributed</name>
  <value>true</value>
 </property>
 <property>
  <name>hbase.master.port</name>
  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值