zoukankan      html  css  js  c++  java
  • hiveserver2不能启动

    我的hiveserver2一直不能启动,命令行一直卡住不动,然后我就想是不是配置文件没有配置相关的参数,然后就来修改hive-site.xml

    最终修改完后的hive-site.xml:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
    <configuration>
        <property>
        <name>javax.jdo.option.ConnectionURL</name>
            <value>jdbc:mysql://**.**.**.**(你的地址):3306/hive?createDatabaseIfNotExist=true</value>
            </property>
        <property>
            <name>javax.jdo.option.ConnectionDriverName</name>
            <value>com.mysql.jdbc.Driver</value>
        </property>
        <property>
            <name>javax.jdo.option.ConnectionUserName</name>
            <value>root</value>
        </property>
        <property>
            <name>javax.jdo.option.ConnectionPassword</name>
            <value>123456</value>
        </property>
    
    	<property>
    	  <name>hive.metastore.warehouse.dir</name>
    	  <value>/soft/hive/warehouse</value>    //(hive所在集群的IP地址)           
    	  <description>location of default database for the warehouse</description>
    	</property>
    	<property>
    	  <name>hive.server2.thrift.port</name>
    	  <value>10000</value>                               
    	  <description>Port number of HiveServer2 Thrift interface.
    	  Can be overridden by setting $HIVE_SERVER2_THRIFT_PORT</description>
    	</property>
    	<property>
    	  <name>hive.server2.thrift.bind.host</name>
    	  <value>**.**.**.**</value>            //主机地址             
    	  <description>Bind host on which to run the HiveServer2 Thrift interface.
    	  Can be overridden by setting $HIVE_SERVER2_THRIFT_BIND_HOST</description>
    	</property>
    	<property>
    	  <name>hive.server2.long.polling.timeout</name>
    	  <value>5000</value>                                
    	  <description>Time in milliseconds that HiveServer2 will wait, before responding to asynchronous calls that use long polling</description>
    	</property>
    	
    </configuration>
    

      配置成功后,hiveserver2就能启动成功了。

  • 相关阅读:
    Hibernate Criteria用法大全
    hibernate数据库操作基础
    Hibernate中Session.get()方法和load()方法的详细比较
    3hibernate核心对象关系映射 xxx.hbm.xml
    2.Hibernate的主配置文件hibernate.cfg.xml
    PHP Switch 语句判断成绩
    PHP页面显示中文字符出现乱码
    windows7下GithubDesktop和极域学生客户端冲突导致无法正常打开解决方案
    关于js特效轮播图练习
    Docker报错总结
  • 原文地址:https://www.cnblogs.com/kangzhijia/p/9345895.html
Copyright © 2011-2022 走看看