Hbase伪分布式部署+zookeeper伪分布式部署

1.zookeeper部署
[hadoop@hadoop002 conf]$ cat  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=/home/hadoop/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# 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

[hadoop@hadoop002 zookeeper]$ bin/zkServer.sh start
JMX enabled by default
Using config: /home/hadoop/app/zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
[hadoop@hadoop002 zookeeper]$ bin/zkServer.sh status
JMX enabled by default
Using config: /home/hadoop/app/zookeeper/bin/../conf/zoo.cfg
Mode: standalone
[hadoop@hadoop002 zookeeper]$ 

2.hbase部署
Hbase最稳定的分支是0.9.8和1.2.0
[hadoop@hadoop002 conf]$ more  hbase-env.sh
export JAVA_HOME=/usr/java/jdk1.8.0_161[hadoop@hadoop002 conf]$ cat hbase-site.xml





        
        
                hbase.rootdir
                hdfs://hadoop002:9000/hbase
        
        
                hbase.cluster.distributed
                true
        

                
        
                hbase.tmp.dir
                /home/hadoop/tmp/hbase
        

                
                
        
                hbase.master
                60000
        

                
        
                hbase.zookeeper.property.dataDir
                /home/hadoop/data/zookeeper
        

        
                hbase.zookeeper.quorum
                hadoop002
        
                
        
                hbase.zookeeper.property.clientPort
                2181
        
                
        
                zookeeper.session.timeout
                120000
        

                
        
                hbase.regionserver.restart.on.zk.expire
                true
        
                
                    

你可能感兴趣的:(HBase)