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上用户应该具备写权限,而从报错可以看出

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

  • 相关阅读:
    WPF中调用资源字典的方法
    DataGridView控制单元格修改的输入规则
    将dataGridView数据转成DataTable
    窗体打开后设置某个控件为默认的焦点
    自定义控件属性英文类别
    VMWare虚拟机与主机建立共享文件夹
    与.Net大师Jeffrey Richter面对面交流——TUP对话大师系列活动回顾(多图配详细文字)
    一个编程小题目引发的思考(下)
    一个Quicksort究竟可以写到多么短
    我是如何设计并实现一门程序设计语言——一门函数式编程语言Lucida的诞生
  • 原文地址:https://www.cnblogs.com/wangzhaoshuang/p/7412740.html
Copyright © 2011-2022 走看看