随笔分类 -  hive相关报错

未解决-hive之drop 表分区失败
摘要:报错如下: 报错说root也没有权限,可能是当初建表的时候问题?还是hive 元数据库中的权限问题? 求解答 阅读全文
posted @ 2017-04-05 20:23 流浪在伯纳乌 阅读(313) 评论(0) 推荐(0)
hive 之简单查询报错
摘要:报错如下: 查看表数据存储的位置,文件情况发现hdfs 下该.gz压缩文件出现问题 重新导入 load data local inpath '/home/dp/db_apptrack_mobile_product.csv' overwrite into table stage.mobile_prod 阅读全文
posted @ 2017-04-05 20:17 流浪在伯纳乌 阅读(329) 评论(0) 推荐(0)
hive 之start hiveServer2 ,thriftServer失败
摘要:报错信息如下: ERROR org.apache.hive.service.cli.thrift.ThriftCLIService: [Thread-11]: Error starting HiveServer2: could not start ThriftBinaryCLIService org 阅读全文
posted @ 2017-04-05 20:14 流浪在伯纳乌 阅读(3936) 评论(0) 推荐(0)
hive metastore Server 出现异常
摘要:报错信息: 常见问题分析: 1 hive metastore 数据库中用户名或者密码出现更改,并且重启了hive,导致生效但是CDH下没有及时更改hive metastore设置密码 2 Mysql 的连接驱动“ mysql-connector-java-5.1.26-bin.jar ”缺失。该驱动 阅读全文
posted @ 2017-04-05 20:01 流浪在伯纳乌 阅读(1288) 评论(0) 推荐(0)
hiveF 函数解析时间问题
摘要:#!/bin/bashsource /etc/profileupdatetime=`date --date='0 days ago' +“%Y-%m-%d %H:%M:%S"`echo "updatetime: "${updatetime}hiveF /auto_cron/cron-running/ 阅读全文
posted @ 2017-04-05 19:56 流浪在伯纳乌 阅读(379) 评论(0) 推荐(0)
hive 动态分区数设置
摘要:当对hive分区未做设置时,报错如下: Caused by: org.apache.hadoop.hive.ql.metadata.HiveFatalException: [Error 20004]: Fatal error occurred when node tried to create to 阅读全文
posted @ 2017-04-05 19:49 流浪在伯纳乌 阅读(7135) 评论(0) 推荐(0)
hive 锁表问题
摘要:报错如下: Unable to acquire IMPLICIT, EXCLUSIVE lock dms@pc_user_msg@month=201611 after 100 attempts. 显示dms库下的pc_user_msg表分区month=201611被锁住了, 查看是否被锁: show 阅读全文
posted @ 2017-04-05 19:36 流浪在伯纳乌 阅读(8494) 评论(0) 推荐(0)
在hive中直接对timestamp类型取max报错
摘要:之前直接对timestamp类型做max操作, select id,max(updatetime) updatetime from his.tag group by id; 结果查询的结果有的显示为1970-01-01,如下图: 解决办法: 先将timestamp类型用unix_timestamp函 阅读全文
posted @ 2017-04-05 19:21 流浪在伯纳乌 阅读(1803) 评论(0) 推荐(0)