zoukankan      html  css  js  c++  java
  • 安装hive 个人遇到的问题小问题

                               仅供个人学习记录。

    1. 异常错误信息:java.io.exception : Filesystem closed.

      解决方法:

      进入所安装的Hive的conf目录,找到hive-site.xml,(若没修改,则是hive-default.xml.template)。

      <property>

         <name>hive.metastore.schema.verification</name>

          <value>true</value>

           <description>

           Enforce metastore schema version consistency.

           True: Verify that version information stored in metastore matches with one from Hive jars.  Also disable automatic

                 schema migration attempt. Users are required to manully migrate schema after Hive upgrade which ensures

                 proper metastore schema migration. (Default)

           False: Warn if the version information stored in metastore doesn't match with one from in Hive jars.

           </description>

      </property>

       改为

      <property>

          <name>hive.metastore.schema.verification</name>

          <value>false</value>

           <description>

           Enforce metastore schema version consistency.

           True: Verify that version information stored in metastore matches with one from Hive jars.  Also disable automatic

                schema migration attempt. Users are required to manully migrate schema after Hive upgrade which ensures

                proper metastore schema migration. (Default)

           False: Warn if the version information stored in metastore doesn't match with one from in Hive jars.

           </description>

      </property>

      hive.metastore.schema.verification:强制metastore的schema一致性,开启的话会校验在metastore中存储的信息的版本和hive的jar包中的版本一致性,并且关闭自动schema

      迁移,用户必须手动的升级hive并且迁移schema,关闭的话只会在版本不一致时给出警告,默认是false不开启;

    2. the root scratch dir : /tmp/hive in hdfs should be writable. current permissions are : rwx--x--x

      解决方法:

      hadoop fs -chmod -R 777 /tmp

      原因:从The root scratch dir: /tmp/hive on HDFS should be writable. Currentpermissions are: rwxr-xr-x可以看出。系统要求在hdfs上用户应该具备写权限,而从报错可以看出

      只有所有者具有写权限,所有组合其他用户不具备。

  • 相关阅读:
    Java中的接口回调
    java中使用String的replace方法替换html模板保存文件
    overflow:解决 div的高度塌陷问题
    鼠标单击到 img行的时候图片隐藏方案
    HTML中的行级标签和块级标签 《转换》
    Java中的异常注意点
    oracle数据库忘记用户名和密码莫着急
    Log4j记录日志使用方法
    Java中的overload(方法的覆写)
    jdk和tomcat环境配置
  • 原文地址:https://www.cnblogs.com/wangzhaoshuang/p/7412740.html
Copyright © 2011-2022 走看看