Hbase-site.xml

Hbase-site.xml

标签(空格分隔): Hbase

生产环境Hbase-site.xml 优化后配置。无安全版本

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
/**
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-->
<configuration>
  <property>
    <name>hbase.rest.port</name>
    <value>60050</value>
  </property>
  <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
  </property>
  <property>
    <name>hbase.rootdir</name>
    <value>hdfs://hbaseHadoopdc/hbase</value>
  </property>
  <property>
    <name>hbase.zookeeper.quorum</name>
    <value>VECS00994:2181,VECS00995:2181,VECS00996:2181,VECS00997:2181,VECS00998:2181</value>
  </property>
  <property>
    <name>zookeeper.session.timeout</name>
    <value>120000</value>
  </property>
  <!-- replication -->
  <property>
    <name>hbase.replication</name>
    <value>true</value>
  </property>
  <property>
    <name>replication.source.ratio</name>
    <value>1</value>
  </property>
  <property>
    <name>hbase.regionserver.handler.count</name>
    <value>200</value>
  </property>
  <property>
    <name>hbase.hregion.majorcompaction</name>
    <value>0</value>
  </property>
  <property>
    <name>hbase.hstore.compactionThreshold</name>
    <value>6</value>
  </property>
  <property>
    <name>hbase.hstore.blockingStoreFiles</name>
    <value>100</value>
  </property>
  <property>
    <name>hbase.hregion.memstore.block.multiplier</name>
    <value>4</value>
  </property>
  <property>
    <name>hbase.hregion.max.filesize</name>
    <value>21474836480</value>
  </property>
  <property>
    <name>hbase.hregion.memstore.flush.size</name>
    <value>134217728</value>
  </property>
  <property>
    <name>dfs.datanode.handler.count</name>
    <value>8</value>
  </property>
  <property>
    <name>hbase.regionserver.maxlogs</name>
    <value>256</value>
  </property>
  <property>
    <name>hbase.regionserver.hlog.splitlog.writer.threads</name>
    <value>10</value>
  </property>

  <!-- Memstore tuning-->
  <property>
    <name>hbase.regionserver.global.memstore.size</name>
    <value>0.50</value>
  </property>
  <property>
    <name>hbase.regionserver.global.memstore.size.lower.limit</name>
    <value>0.90</value>
  </property>

<!--Flush All memstore  bofore 5 h-->
  <property>  
    <name>hbase.regionserver.optionalcacheflushinterval</name>  
    <value>36000000</value>  
  </property>
<!--Set Major Minor thread -->  
  <property>  
    <name>hbase.regionserver.thread.compaction.small</name>  
    <value>5</value>  
  </property> 
  <property>  
    <name>hbase.regionserver.thread.compaction.large</name>  
    <value>5</value>  
  </property> 

  <property>
    <name>hbase.bucketcache.ioengine</name>
    <value>offheap</value>
  </property>
  <!-- Blockcache M 20G-->
  <property>
    <name>hbase.bucketcache.size</name>
    <value>20480</value>
  </property>
  <property>
    <name>hfile.block.cache.size</name>
    <value>0.30</value>
  </property>
  <!-- 开启Heged Read -->
  <property>
    <name>dfs.client.hedged.read.threadpool.size</name>
    <value>10</value>
  </property>
  <property>
    <name>dfs.client.hedged.read.threshold.millis</name>
    <value>500</value>
  </property>
  <property>
    <name>hbase.ipc.server.max.callqueue.size</name>
    <value>2147483647</value>
  </property>
  <property>
    <name>hbase.regionserver.region.split.policy</name>
    <value>org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy</value>
    <description>
      A split policy determines when a region should be split. The various other split policies that
      are available currently are ConstantSizeRegionSplitPolicy, DisabledRegionSplitPolicy,
      DelimitedKeyPrefixRegionSplitPolicy, KeyPrefixRegionSplitPolicy etc.
    </description>
</property>
<property>
        <name>hbase.coprocessor.master.classes</name>
        <value>org.apache.hadoop.hbase.group.GroupAdminEndpoint</value>
    </property>
    <property>
        <name>hbase.master.loadbalancer.class</name>
        <value>org.apache.hadoop.hbase.group.GroupBasedLoadBalancer</value>
</property>
    原文作者:hbase
    原文地址: https://www.cnblogs.com/hit-zb/p/10438570.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞