hadoop学习(8):HBase-1.2伪分布式安装配置

来源:互联网 发布:乌克兰胖爸 知乎 编辑:程序博客网 时间:2024/05/18 03:15

hbase中文官方文档:文档地址链接

1,下载并解压hbase-1.2.4-bin.tar.gz

2,修改配置文件:

a,vim /conf/hbase-env.sh

export JAVA_HOME=/opt/jdk8 //设置本机jdk地址export HBASE_MANAGES_ZK=true //设置hbase自带的zookeeper

b,vim /conf/hbase-site.xml

<configuration>        <property>                <name>hbase.rootdir</name>                <value>hdfs://192.168.xxx.xxx:9000/hbase</value> //设置hbase的存储位置,也可以设置存储本地        </property>        <property>                <name>dfs.replication</name> //伪分布式就1个节点                <value>1</value>        </property>        <property>                <name>hbase.cluster.distributed</name> //设置分布式                <value>true</value>        </property>        <property>                <name>hbase.master.info.port</name> //设置hbase的web端口,可通过web浏览hbase的状态。1.x以后不再默认,要指定。                <value>60010</value>        </property></configuration>

c,vim /conf/regionservers

192.168.xxx.xxx //有多少节点就把所有节点的ip都写进来,一个ip占一行

3,配置完就可启动hbase了

$ bin/start-hbase.sh

4,可通过web浏览hbase

192.168.xxx.xxx:60010 //前面设置过web端口


0 0
原创粉丝点击