首页 > 代码库 > hbase-0.98.1-cdh5.1.0伪分布式安装
hbase-0.98.1-cdh5.1.0伪分布式安装
分三步:
1. 添加环境变量
2.编辑hbase-env.sh文件
3.编辑hbase-site.xml 文件
前提条件是安装好hadoop,下面展开说明
1. 添加环境变量
export HBASE_HOME=/usr/local/cdh/hbase export PATH=$PATH:$PIG_HOME/bin:$HADOOP_HOME/bin:$HBASE_HOME/bin:$
2.编辑hbase-env.sh文件,添加:
export JAVA_HOME=/usr/local/java/jdk1.7.0_67 export HBASE_CLASSPATH=/usr/local/cdh/hadoop/etc/hadoop
3.编辑hbase-site.xml 文件
<configuration> <property> <name>hbase.rootdir</name> <value>hdfs://cent:9000/hbase</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> </configuration>
4.启动
bin/start-hbase.sh [root@cent hbase]# jps 7100 ResourceManager 7800 HMaster 6894 SecondaryNameNode 7745 HQuorumPeer 6729 DataNode 6631 NameNode 8158 Jps 7204 NodeManager 7932 HRegionServer
进入shell
[root@cent hbase]# bin/hbase shell create 'test_pseudo', 'cf' hbase(main):002:0> list TABLE test_pseudo 1 row(s) in 0.2130 seconds => ["test_pseudo"]
hbase-0.98.1-cdh5.1.0伪分布式安装
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。