HiveMetaStore高可用性(HA)配置

  • 软件环境

    Hadoop 2.6.0-cdh5.9.0

    Hive 1.1.0-cdh5.9.0

    Zookeeper 3.4.5-cdh5.9.0

  • 工作原理

    常规连接
    HiveMetaStore高可用性(HA)配置_第1张图片

MetaStore HA
HiveMetaStore高可用性(HA)配置_第2张图片

  • 前置条件

    Hadoop、Zookeeper、Hive是可用的前提

  • Hive Server MetaStore启动

    跟单节点配置一样,只不过在多台服务器上启动MetaSotre

    启动:nohup $HIVE_HOME/bin/hive –metastore &

  • 配置Hive Client HA

    vi $HIVE_HOME/conf/hive-site.xml

    添加配置如下:

<property>
 <name>hive.metastore.urisname>
 <value>thrift://dw1:9083,thrift://dw2:9083value>
 <description>A comma separated list of metastore uris on which metastore service is runningdescription>
property>
<property>
 <name>hive.cluster.delegation.token.store.classname>
 <value>org.apache.hadoop.hive.thrift.MemoryTokenStorevalue>
 <description>Hive defaults to MemoryTokenStore, or ZooKeeperTokenStoredescription>
property>
  • 文章参考
    https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_hadoop-ha/content/ch_HA-Hive.html

HiveServerHA配置


HiveMetaStore高可用性(HA)配置_第3张图片

你可能感兴趣的:(Hive)