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>