hbase集群安装

来源:互联网 发布:网络教育可以考研吗 编辑:程序博客网 时间:2024/06/14 21:19

1.安装java

。。。。。

2.安装hadoop集群

。。。。。

3.安装zookeeper集群

。。。。。

4.安装hbase集群


4.1 下载解压

。。。。。


4.2 修改配置文件


hbase-env.sh

# The java implementation to use.  Java 1.6 required.export JAVA_HOME=/usr/local/java
# Tell HBase whether it should manage it's own instance of Zookeeper or not.export HBASE_MANAGES_ZK=false
hbase-site.xml

<configuration><property>     <name>hbase.rootdir</name>     <value>hdfs://master:9000/hbase</value></property><property>      <name>hbase.zookeeper.quorum</name>      <value>master,slave1,slave2</value></property><property>      <name>hbase.cluster.distributed</name>      <value>true</value>    </property><property>      <name>hbase.zookeeper.property.clientPort</name>      <value>2181</value>      <description>Property from ZooKeeper's config zoo.cfg. The port at which the clients will connect.     </description></property></configuration>
regionservers

masterslave1slave2


backup-masters

slave1slave2


4.3 把hbase文件夹传给子节点

scp -r /xxx/hbase  slave1:/xxx/


4.4启动hbase

在主节点运行start-hbase.sh



原创粉丝点击