2019独角兽企业重金招聘Python工程师标准>>> hot3.png

下午配置hive的时候,cp hive-default.xml.tmplate hive-dfault.xml。更改里面的各种配置,其中有一个meta配置项,改为了本地mysql。但是在执行./bin/schematool -dbType mysql -initSchema。一直配置不生效,还是去读取jdbc:derby,不回去读取mysql配置,google,baidu了半天。说版本不对的,有说HIVE_CONF_DIR配置的等好多。

错误消息如下,errorcode2;

SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Metastore connection URL:    jdbc:derby:;databaseName=metastore_db;create=true
Metastore Connection Driver :    org.apache.derby.jdbc.EmbeddedDriver
Metastore connection User:   APP
Starting metastore schema initialization to 2.1.0
Initialization script hive-schema-2.1.0.mysql.sql
Error: Syntax error: Encountered "<EOF>" at line 1, column 64. (state=42X01,code=30000)
org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent !!
Underlying cause: java.io.IOException : Schema script failed, errorcode 2
Use --verbose for detailed stacktrace.
*** schemaTool failed ***

最后打开默认的template看到前几行的warning。瞬间泪崩啊。。。

新版本的hive配置文件太坑爹啊。“You must make your changes in hive-site.xml instead.”你说你为啥不叫hive-site.xml.template呢???

<!-- 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.         -->

用红色标记处理。长点心了。

转载于:https://my.oschina.net/xiaopei/blog/1599830

Hive2.1.1执行initSchema报错相关推荐

  1. HQL语句中数据类型转换,及hibernate中createQuery执行hql报错

    一.HQL语句中数据类型转换: 我们需要从数据库中取出序号最大的记录,想到的方法就是使用order by子句进行排序(desc倒序),然后取出第一个对象,可是当初设计数据库时(我们是在原来的数据库的基 ...

  2. 在Linux执行命令报错”Arg list too long”的原因分析

    http://www.yunweipai.com/archives/558.html 在Linux执行命令报错"Arg list too long"的原因分析 吞拿鱼手卷 于 3 ...

  3. 数据库执行sql报错Got a packet bigger than 'max_allowed_packet' bytes及重启mysql

    准备在mysql上使用数据库A,但mysql5经过重装后,上面的数据库已丢失,只得通过之前备份的A.sql重新生成数据库A. 1.执行sql报错 在执行A.sql的过程中,出现如下错误:Got a p ...

  4. Ubuntu执行脚本报错-bash: ./send.py: /usr/bin/python: bad interpreter: Permission denied

    在Ubuntu系统终端中,使用命令行如下命令行运行*.py文件: 执行脚本报错 root@ubuntu:/usr/bin/python# chmod a+x send.py root@ubuntu:/ ...

  5. linux执行sudo报错【/etc/sudo.conf is owned by uid 994, should be 0】

    linux执行sudo报错[/etc/sudo.conf is owned by uid 994, should be 0] 错误描述 如下图: 案例一 案例二 解决办法: 执行命令 pkexec c ...

  6. tomcat执行shutdown报错Could not contact [localhost:8005] (base port [8005] and offset [0]). Tomcat may n

    学习笔记 困扰了好久的问题,每次重启tomcat执行shutdown就报错Could not contact [localhost:8005] (base port [8005] and offset ...

  7. 解决执行Command报错exit status 255

    背景:go  exec.Command 以前从未遇到过err报错255的,这次算是踩了一次坑. 出现这种情况,可将命令本身组装起来在环境上直接执行(用和代码中完全一样的参数),用$?查看结果状态看是否 ...

  8. 立即执行函数报错Uncaught TypeError: (intermediate value) is not a function.

    立即执行函数报错Uncaught TypeError: (intermediate value) is not a function. 文章目录 立即执行函数报错Uncaught TypeError: ...

  9. linux下执行ffmpeg报错无法操作https资源的问题https protocol not found, recompile FFmpeg with openssl, gnutls

    linux下执行ffmpeg报错无法操作https资源的问题https protocol not found, recompile FFmpeg with openssl, gnutls 报错 解决 ...

最新文章

  1. 模型不work怎么办?141页PPT告诉你怎么改模型
  2. 李志飞:想在中国复制 Echo 的成功,肯定都不靠谱
  3. plsql developer的一些使用
  4. servlet生命周期
  5. 帆软填报提交显示违反唯一约束_贵州2020年高考网上填报志愿时间确定!这些事项需要注意...
  6. python适合零基础学习吗-零基础能学好Python吗?哪些人更适合学习?
  7. 【开源】WeChatRobot+WeChatHelper 制作自己的微信机器人
  8. Qt Creator检查代码语法
  9. 代码合并工具_合并上千个Excel表格,1秒就能完成
  10. 论一切都是文件之匿名 inode
  11. HTML下的list w3c,W3.CSS Lists (列表)
  12. android UI设计属性中英对照表(未修订)
  13. Max 缩放代码 获取2点直接的距离
  14. WinDbg分析蓝屏dump教程
  15. 内存带宽测试与AVX指令集读写内存
  16. 什么是自媒体、自媒体平台???
  17. linux 修改文件内容命令
  18. MS-DOS系统下的autoexec.bat
  19. 【运筹优化】元启发式算法详解:模拟退火算法(Simulated Annealing,SA)+ 案例讲解代码实战
  20. 【安全攻防系列 Windows实战】教你如何 FTP暴力破解、四大病毒勒索病毒、蠕虫病毒、ARP病毒、挖矿病毒,怎么处理应急场景

热门文章

  1. redis数据库的基础
  2. System.out.printf()的使用方法
  3. java中的interface
  4. 测试用例--因果图、判定表法
  5. 世事无常,深信服及其他
  6. SpringBoot私人学习笔记
  7. 使用 SignalR 实现推送功能
  8. Python静态方法 类方法
  9. 2015 圣诞 限免软件分享
  10. isnan 函数 -javascript1.1