[wangshumin@centoshostnameKL1 bin]$ cd ..
[wangshumin@centoshostnameKL1 hbase-1.2.1]$ bin/start-hbase.sh
starting master, logging to /home/wangshumin/hbase/hbase-1.2.1/logs/hbase-wangshumin-master-centoshostnameKL1.out
centoshostnameKL3: starting regionserver, logging to /home/wangshumin/hbase/hbase-1.2.1/bin/../logs/hbase-wangshumin-regionserver-centoshostnameKL3.out
centoshostnameKL2: starting regionserver, logging to /home/wangshumin/hbase/hbase-1.2.1/bin/../logs/hbase-wangshumin-regionserver-centoshostnameKL2.out
centoshostnameKL1: starting regionserver, logging to /home/wangshumin/hbase/hbase-1.2.1/bin/../logs/hbase-wangshumin-regionserver-centoshostnameKL1.out
centoshostnameKL2: starting master, logging to /home/wangshumin/hbase/hbase-1.2.1/bin/../logs/hbase-wangshumin-master-centoshostnameKL2.out
[wangshumin@centoshostnameKL1 hbase-1.2.1]$
[wangshumin@centoshostnameKL1 hbase-1.2.1]$ bin/start-hbase.sh
starting master, logging to /home/wangshumin/hbase/hbase-1.2.1/logs/hbase-wangshumin-master-centoshostnameKL1.out
centoshostnameKL3: starting regionserver, logging to /home/wangshumin/hbase/hbase-1.2.1/bin/../logs/hbase-wangshumin-regionserver-centoshostnameKL3.out
centoshostnameKL2: starting regionserver, logging to /home/wangshumin/hbase/hbase-1.2.1/bin/../logs/hbase-wangshumin-regionserver-centoshostnameKL2.out
centoshostnameKL1: starting regionserver, logging to /home/wangshumin/hbase/hbase-1.2.1/bin/../logs/hbase-wangshumin-regionserver-centoshostnameKL1.out
centoshostnameKL2: starting master, logging to /home/wangshumin/hbase/hbase-1.2.1/bin/../logs/hbase-wangshumin-master-centoshostnameKL2.out
[wangshumin@centoshostnameKL1 hbase-1.2.1]$
HBase启动和停止命令
启动HBase集群:
bin/start-hbase.sh
单独启动一个HMaster进程:
bin/hbase-daemon.sh start master
单独停止一个HMaster进程:
bin/hbase-daemon.sh stop master
单独启动一个HRegionServer进程:
bin/hbase-daemon.sh start regionserver
单独停止一个HRegionServer进程:
bin/hbase-daemon.sh stop regionserver