./bin/start-hbase.sh
./bin/stop-hbase.sh
./bin/hbase-daemon.sh start rest -p 20550
- 关于删除表的问题(create时提示已存在, drop时却又提示不存在)
#登录zookeeper, 如 ./zkCli.sh
ls /hbase/table-lock
rmr /hbase/table-lock/<你要删的表名>
ls /hbase/table
rmr /hbase/table/<你要删的表名>
list
create 'tablename','cf1','cf2'
drop 'tablename'
truncate 'tablename'
scan 'tablename'
count 'tablename'
export HBASE_MANAGES_ZK=true
<configuration>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://master:9000/hbase1</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>master</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/data/zookeeper</value>
</property>
</configuration>