Welcome to Apache HBase( 八,habse》基本分布式HBase安装)

8.1。基本分布式HBase安装

下面是一个分布式10节点的群集的基本配置示例:*的节点命名example0example1等,通过节点example9在这个例子。* HBase Master和HDFS NameNode正在节点上运行example0。* RegionServers在节点上运行example1example9。* A 3节点动物园管理员合奏运行在example1example2以及example3在默认端口上。* ZooKeeper数据持久保存到目录/ export / zookeeper

下面我们将展示 在HBase conf目录中找到的主要配置文件 -  hbase-site.xmlregionservershbase-env.sh

8.1.1。HBase的-site.xml中

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
  <property>
    <name>hbase.zookeeper.quorum</name>
    <value>example1,example2,example3</value>
    <description>The directory shared by RegionServers.
    </description>
  </property>
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/export/zookeeper</value>
    <description>Property from ZooKeeper config zoo.cfg.
    The directory where the snapshot is stored.
    </description>
  </property>
  <property>
    <name>hbase.rootdir</name>
    <value>hdfs://example0:8020/hbase</value>
    <description>The directory shared by RegionServers.
    </description>
  </property>
  <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
    <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>

8.1.2。regionservers

在此文件中,列出将运行RegionServers的节点。在我们的例子中,这些节点是example1example9

example1
example2
example3
example4
example5
example6
example7
example8
example9

8.1.3。hbase-env.sh

hbase-env.sh文件中的以下行显示如何设置JAVA_HOME环境变量(HBase所需)并将堆设置为4 GB(而不是默认值1 GB)。如果您复制并粘贴此示例,请务必调整JAVA_HOME以适合您的环境。

#要使用的java实现。
export JAVA_HOME = / usr / java / jdk1.8.0 /

#要使用的最大堆数。默认保留为JVM默认值。
export HBASE_HEAPSIZE = 4G

使用rsync将conf目录的内容复制到群集的所有节点。

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值