标签:tar dir star hdfs man hbase安装 oop pre targe
1 tar -xzvf hbase-1.0.0-cdh5.5.0.tar.gz 2 mv hbase-1.0.0-cdh5.5.0 hbase
<configuration> <property> <!-- 确保和集群名字一致--> <name>hbase.rootdir</name> <value>hdfs://kcluster/hbase</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.zookeeper.property.clientPort</name> <value>2181</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>kslave5,kslave6,kslave7</value> </property> </configuration>
修改regionservers(/home/hadoop/soft/hbase/conf)
kslave1
kslave2
kslave3
kslave4
1 export HBASE_PID_DIR=/home/hadoop/soft/hbase/hbase 2 export HBASE_MANAGES_ZK=false # 不启用自带集群
启动hbase服务
hbase-daemon.sh start master
hbase-daemon.sh start regionserver
# 查看表 list # 创建表 create ‘test‘,‘cf‘ # 查看表结构 describe ‘test‘ # 表中插入数据 put ‘test‘,‘row1‘,‘cf:a‘,‘tom‘ # 查看数据 scan ‘test‘ 全表扫描 get ‘test‘,‘row1‘ # 删除表 disable ‘test‘ drop ‘test‘
标签:tar dir star hdfs man hbase安装 oop pre targe
原文地址:http://www.cnblogs.com/Try-kevin/p/7900763.html