欢迎投稿

今日深度:

hive 安装问题,

hive 安装问题,


1.目的:

      复习安装 hive 以便和 kettle 结合使用,安装 hive 出现的错误。

2.执行 sql 语句有警告,例如:show tables;报以下警告。

Tue Mar 05 14:37:52 CST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by 

   解决方案:在 hive-site.xml 中添加红色部分

                    <value>jdbc:mysql://192.168.18.10:3306/hive?createDatabaseIfNotExist=true&amp;characterEncoding=utf8&amp;useSSL=false<value>

3.执行 sql 语句报错,例如:show tables; 报错。

FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

   解决方案:

          ①.在 hive-site.xml 中添加添加以下部分

 <property>
    <name>datanucleus.schema.autoCreateAll</name>
    <value>true</value>
  </property>

         ②.删除 mysql 中存储 hive 元数据的数据库

         ③.在 hive 安装路径 $HIVE_HOME/conf 下执行:schematool -dbType mysql -initSchema

4.dbvisualizer 连接 hive 报以下错误:

Exception in thread "main" java.sql.SQLException: Could not establish connection to 192.168.1.100:10000/log: java.net.ConnectException: Connection refused: connect

    解决方案:

                 这是因为 dbvisualizer 使用的 hive-jdbc.jar 和 hive lib目录中 hive-jdbc.jar 不一致。把 hive lib 目录下的 hive-jdbc.jar                复制到  dbvisualizer jdbc目录下 hive 目录里。

5.启动 hive 服务方法:

       ①. 直接执行 hiveserver2 命令

       ②. hive --service hiveserver2

    参考文档https://blog.csdn.net/lblblblblzdx/article/details/79760959

 

www.htsjk.Com true http://www.htsjk.com/hive/35331.html NewsArticle hive 安装问题, 1.目的:       复习安装 hive 以便和 kettle 结合使用,安装 hive 出现的错误。 2.执行 sql 语句有警告,例如: show tables; 报以下警告。 Tue Mar 05 14:37:52 CST 2019 WARN: Establis...
相关文章
    暂无相关文章
评论暂时关闭