1.网上内容比较混乱,其实安装单机hbase只需要安装hbase即可
2.把hbase-0.xxx.tart.gz拷贝到/opt/hbase文件及下(这是安装目录,可自定义)
2.1tarxfzhbase-0.xxxxtar.gz
2.2cdhbase-0xxxx
2.3vi../conf/hbase-site.xml修改如下
<?xmlversion="1.0"?>
<?xml-stylesheettype="text/xsl"href="configuration.xsl"?>
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///DIRECTORY/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>file:///DIRECTORY/zookeeper</value>
</property>
</configuration>
以上两个路径可自定义。
3.启动hbase
./bin/start-hbase.sh
访问localhost:60010,验证。bin/hbase shell 进入shell。
1302

被折叠的 条评论
为什么被折叠?



