hbase1.2安装配置

1)下载安装包,解压到合适位置
2)配置相关文件
1、配置hbase-env.sh文件。

# The java implementation to use.
export JAVA_HOME=/usr/java/jdk1.7.0/

# The maximum amount of heap to use. Default is left to JVM default.
export HBASE_HEAPSIZE=4G

2、配置 hbase-site.xml



<configuration>
  <property>
    <name>hbase.zookeeper.quorumname>
    <value>example1,example2,example3value>
    <description>The directory shared by RegionServers.
    description>
  property>
  <property>
    <name>hbase.zookeeper.property.dataDirname>
    <value>/export/zookeepervalue>
    <description>Property from ZooKeeper config zoo.cfg.
    The directory where the snapshot is stored.
    description>
  property>
  <property>
    <name>hbase.rootdirname>
    <value>hdfs://example0:8020/hbasevalue>
    <description>The directory shared by RegionServers.
    description>
  property>
  <property>
    <name>hbase.cluster.distributedname>
    <value>truevalue>
    <description>The mode the cluster will be in. Possible values are
      false: standalone and pseudo-distributed setups with managed ZooKeeper
      true: fully-distributed with unmanaged ZooKeeper Quorum (see hbase-env.sh)
    description>
  property>
configuration>

3、配置regionservers

example1
example2
example3
example4
example5
example6
example7
example8
example9

你可能感兴趣的:(hbase)