• hive metastore && hiveserver2 . 基本配置


    # hiveserver2 && metastore 配置

    标签(空格分隔): Hive

    ---

    基本配置:

    ```
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <?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>
    <!-- WARNING!!! This file is auto generated for documentation purposes ONLY! -->
    <!-- WARNING!!! Any changes you make to this file will be ignored by Hive. -->
    <!-- WARNING!!! You must make your changes in hive-site.xml instead. -->
    <!-- Hive Execution Parameters -->

    <!-- Hive Metastore Setting Turning Begin-->

    <property>
    <name>hive.metastore.server.max.threads</name>
    <value>3000</value>
    </property>

    <property>
    <name>hive.metastore.server.min.threads</name>
    <value>50</value>
    </property>

    <property>
    <name>datanucleus.connectionPool.maxPoolSize</name>
    <value>50</value>
    </property>

    <property>
    <name>hive.metastore.server.max.message.size</name>
    <value>500</value>
    </property>
    <!-- metastore - mysql-->
    <property>
    <name>javax.jdo.option.ConnectionURL</name>
    <value>jdbc:mysql://10.111.50.227:3306/hivetest?createDatabaseIfNotExist=true&amp;characterEncoding=UTF-8&amp;useSSL=false</value>
    <description></description>
    </property>
    <property>
    <name>javax.jdo.option.ConnectionDriverName</name>
    <value>com.mysql.jdbc.Driver</value>
    <description></description>
    </property>
    <property>
    <name>javax.jdo.option.ConnectionUserName</name>
    <value>hive</value>
    <description></description>
    </property>
    <property>
    <name>javax.jdo.option.ConnectionPassword</name>
    <value>Hive.123</value>
    <description></description>
    </property>

    <!-- Hive Metastore Setting Turning End-->


    <!-- Hive HiveServer2 Setting Turning -->
    <property>
    <name>hive.metastore.uris</name>
    <value>thrift://VECS00542:9083</value>
    <description>Thrift URI for the remote metastore. Used by metastore client to connect to remote metastore.</description>
    </property>
    <property>
    <name>hive.exec.scratchdir</name>
    <value>/tmp/hive-staging</value>
    </property>
    <property>
    <name>hive.metastore.warehouse.dir</name>
    <value>hdfs://flashHadoop/user/hive/warehouse</value>
    </property>
    <property>
    <name>hive.querylog.location</name>
    <value>/data1/data/hive</value>
    </property>
    <property>
    <name>hive.metastore.schema.verification</name>
    <value>false</value>
    <description>
    </description>
    </property>
    <property>
    <name>hive.async.log.enabled</name>
    <value>false</value>
    <description>
    </description>
    </property>
    <property>
    <name>hive.server2.support.dynamic.service.discovery</name>
    <value>true</value>
    <description>
    </description>
    </property>
    <property>
    <name>hive.server2.zookeeper.namespace</name>
    <value>hiveserver2</value>
    <description>The parent node in ZooKeeper used by HiveServer2 when supporting dynamic service discovery.</description>
    </property>
    <property>
    <name>hive.zookeeper.quorum</name>
    <value>host1:2181,host1:2181,host1:2181,host1:2181,host1:2181</value>
    <description>
    </description>
    </property>
    <property>
    <name>hive.zookeeper.client.port</name>
    <value>2181</value>
    <description>
    </description>
    </property>
    <property>
    <name>hive.server2.thrift.port</name>
    <value>10000</value>
    </property>
    <property>
    <name>hive.server2.thrift.bind.host</name>
    <value>0.0.0.0</value>
    </property>
    <property>
    <name>hive.server2.enable.doAs</name>
    <value>false</value>
    </property>
    <property>
    <name>hive.server2.session.check.interval</name>
    <value>900000</value>
    </property>
    <property>
    <name>hive.server2.idle.session.timeout</name>
    <value>43200000</value>
    </property>
    <property>
    <name>hive.server2.idle.session.timeout_check_operation</name>
    <value>true</value>
    </property>
    <property>
    <name>hive.server2.idle.operation.timeout</name>
    <value>21600000</value>
    </property>
    <property>
    <name>hive.server2.webui.host</name>
    <value>0.0.0.0</value>
    </property>
    <property>
    <name>hive.server2.webui.port</name>
    <value>10002</value>
    </property>
    <property>
    <name>hive.server2.webui.max.threads</name>
    <value>50</value>
    </property>
    <property>
    <name>hive.server2.webui.use.ssl</name>
    <value>false</value>
    </property>

    </configuration>
    ```

  • 相关阅读:
    mybatis3这个问题我晕为什么对于配置信息的节点放的位置也会报错
    QTP的那些事增删改查中的增加操作的测试用例及其脚本设计思路
    QTP的那些事importsheet注意的一些事情
    mybatis3中的结果集
    QTP的那些事终极项目脚本设计思路及其测试查询功能的一些实际项目体会
    mybatis+spring整合的几个好的例子
    QTP的那些事操作excel数据需要注意的事
    hibernate4的使用第一步环境搭建
    项目中关于IFRAME引发的问题【出现率很高】
    oracle直接sql语句后台递归查询返回一个树
  • 原文地址:https://www.cnblogs.com/hit-zb/p/9637636.html
Copyright © 2020-2023  润新知