1. download http://124.202.164.13/files/1244000005C563FC/www.eu.apache.org/dist/hbase/stable/hbase-0.98.9-hadoop2-bin.tar.gz

2. copy to /opt

3. cp /opt

    tar -zxvf hbase-0.98.9-hadoop2-bin.tar.gz

4. edit conf/hbase-site.xml

 

<configuration>
      <property>
        <name>hbase.rootdir</name>
        <!--value>file:///opt/hbase/testdata</value-->
        <value>hdfs://localhost:9000/hbase</value>
      </property>
      <property>
       <name>hbase.zookeeper.property.dataDir</name>
       <value>/opt/hbase/testdata/zookeeper</value>
      </property>
      <property>
        <name>hbase.cluster.distributed</name>
        <value>true</value>
      </property>
</configuration>

  

5. edit conf/hbase-env.sh

export JAVA_HOME=/opt/jdk17

6. start hbase

bin/start-hbase.sh

  

 

相关文章:

  • 2022-02-12
  • 2022-12-23
  • 2021-07-24
  • 2021-11-19
  • 2021-11-20
  • 2022-01-01
  • 2021-05-01
  • 2021-10-16
猜你喜欢
  • 2021-11-25
  • 2021-08-09
  • 2021-10-30
  • 2021-04-19
  • 2021-07-14
  • 2021-07-23
  • 2021-11-25
相关资源
相似解决方案