问题标签 [apache-hive]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
hadoop - Hive 联接查询
我在蜂巢中有两个表:
表 1:
表 2:
Hive 中是否有任何方法可以检索表 2 中不存在于表 1 中的新数据?
在其他数据库工具中,您将使用内部左/右。但是Hive 中不存在内部左/右,并建议如何实现?
hadoop - Hive:在分布式模式下在主节点上执行查询时执行错误
- 查询 ID = hdumer_20160523203816_0c2b2640-f711-41b9-81fd-5ee5d2af900a 总作业 = 1 正在启动作业 1 / 1 减少任务数设置为 0,因为没有减少操作员 作业在进程内运行(本地 Hadoop) 2016-05-23 20 :38:24,120 Stage-1 map = 0%, reduce = 0% 2016-05-23 20:38:30,147 Stage-1 map = 2%, reduce = 0% 2016-05-23 20:38:32,164 Stage- 1 地图 = 5%,减少 = 0% 2016-05-23 20:38:35,193 第一阶段地图 = 8%,减少 = 0% 2016-05-23 20:38:38,209 第一阶段地图 = 11%,减少 = 0% 2016-05-23 20:38:40,218 第一阶段地图 = 100%,减少 = 0% 2016-05-23 20:38:46,242 第一阶段地图 = 16%,减少 = 0% 2016- 05-23 20:38:49,253 Stage-1 map = 19%, reduce = 0% 2016-05-23 20:38:52,263 Stage-1 map = 20%, reduce = 0% 2016-05-23 20:38 :55,272 Stage-1 map = 22%, reduce = 0% 2016-05-23 20:38:58,291 第一阶段地图 = 24%,减少 = 0% 2016-05-23 20:38:59,298 第一阶段地图 = 100%,减少 = 0% 2016-05-23 20:39:05,314 第一阶段地图 = 30%,减少 = 0% 2016-05-23 20:39:07,320 第一阶段地图 = 31%,减少 = 0% 2016-05-23 20:39:29,383 第一阶段地图 = 35%,减少 = 0 % 2016-05-23 20:39:32,390 第一阶段地图 = 38%,减少 = 0% 2016-05-23 20:39:35,398 第一阶段地图 = 40%,减少 = 0% 2016-05-23 20:39:38,404 Stage-1 map = 42%, reduce = 0% 2016-05-23 20:39:39,407 Stage-1 map = 100%, reduce = 0% 2016-05-23 20:39:45,416 Stage -1 地图 = 49%,减少 = 0% 2016-05-23 20:39:48,423 第一阶段地图 = 50%,减少 = 0% 2016-05-23 20:39:51,430 第一阶段地图 = 53% , 减少 = 0% 2016-05-23 20:39:54,437 第一阶段地图 = 55%, 减少 = 0% 2016-05-23 20:39:55,438 第一阶段地图 = 100%, 减少 = 0% 2016 -05-23 20:40:01,450 Stage-1 map = 61%, reduce = 0% 2016-05-23 20:40:04,455 Stage-1 map = 64%, reduce = 0% 2016-05-23 20:40:07,464 Stage-1 map = 66%,减少 = 0% 2016-05-23 20:40:10,472 第一阶段地图 = 100%,减少 = 0% 2016-05-23 20:40:16,482 第一阶段地图 = 75%,减少 = 0 % 2016-05-23 20:40:19,487 第一阶段地图 = 78%,减少 = 0% 2016-05-23 20:40:22,493 第一阶段地图 = 79%,减少 = 0% 2016-05-23 20:40:24,498 Stage-1 map = 100%, reduce = 0% 2016-05-23 20:40:30,520 Stage-1 map = 81%, reduce = 0% Ended Job = job_local348040558_0001 with errors 作业期间出错,获取调试信息... FAILED:执行错误,从 org.apache.hadoop.hive.ql.exec.mr.MapRedTask 返回代码 2 MapReduce 作业已启动:Stage-Stage-1:HDFS 读取:8822964165 HDFS 写入:0 FAIL 总 MapReduce花费的 CPU 时间:0 毫秒减少 = 0% 2016-05-23 20:40:04,455 第一阶段地图 = 64%,减少 = 0% 2016-05-23 20:40:07,464 第一阶段地图 = 66%,减少 = 0% 2016- 05-23 20:40:10,472 Stage-1 map = 100%, reduce = 0% 2016-05-23 20:40:16,482 Stage-1 map = 75%, reduce = 0% 2016-05-23 20:40 :19,487 Stage-1 map = 78%, reduce = 0% 2016-05-23 20:40:22,493 Stage-1 map = 79%, reduce = 0% 2016-05-23 20:40:24,498 Stage-1 map = 100%, reduce = 0% 2016-05-23 20:40:30,520 Stage-1 map = 81%, reduce = 0% Ended Job = job_local348040558_0001 with errors 作业期间出错,获取调试信息... FAILED: Execution Error ,从 org.apache.hadoop.hive.ql.exec.mr.MapRedTask 返回代码 2 启动 MapReduce 作业:Stage-Stage-1:HDFS 读取:8822964165 HDFS 写入:0 FAIL MapReduce CPU 总花费时间:0 毫秒减少 = 0% 2016-05-23 20:40:04,455 第一阶段地图 = 64%,减少 = 0% 2016-05-23 20:40:07,464 第一阶段地图 = 66%,减少 = 0% 2016- 05-23 20:40:10,472 Stage-1 map = 100%, reduce = 0% 2016-05-23 20:40:16,482 Stage-1 map = 75%, reduce = 0% 2016-05-23 20:40 :19,487 Stage-1 map = 78%, reduce = 0% 2016-05-23 20:40:22,493 Stage-1 map = 79%, reduce = 0% 2016-05-23 20:40:24,498 Stage-1 map = 100%, reduce = 0% 2016-05-23 20:40:30,520 Stage-1 map = 81%, reduce = 0% Ended Job = job_local348040558_0001 with errors 作业期间出错,获取调试信息... FAILED: Execution Error ,从 org.apache.hadoop.hive.ql.exec.mr.MapRedTask 返回代码 2 启动 MapReduce 作业:Stage-Stage-1:HDFS 读取:8822964165 HDFS 写入:0 FAIL MapReduce CPU 总花费时间:0 毫秒0 毫秒0 毫秒455 Stage-1 map = 64%, reduce = 0% 2016-05-23 20:40:07,464 Stage-1 map = 66%, reduce = 0% 2016-05-23 20:40:10,472 Stage-1 map = 100%,减少 = 0% 2016-05-23 20:40:16,482 第一阶段地图 = 75%,减少 = 0% 2016-05-23 20:40:19,487 第一阶段地图 = 78%,减少 = 0 % 2016-05-23 20:40:22,493 第一阶段地图 = 79%,减少 = 0% 2016-05-23 20:40:24,498 第一阶段地图 = 100%,减少 = 0% 2016-05-23 20:40:30,520 Stage-1 map = 81%, reduce = 0% Ended Job = job_local348040558_0001 with errors 作业期间出错,获取调试信息...失败:执行错误,从 org.apache.hadoop.hive 返回代码 2。 ql.exec.mr.MapRedTask MapReduce 作业启动:Stage-Stage-1:HDFS 读取:8822964165 HDFS 写入:0 FAIL MapReduce CPU 总时间花费:0 毫秒455 Stage-1 map = 64%, reduce = 0% 2016-05-23 20:40:07,464 Stage-1 map = 66%, reduce = 0% 2016-05-23 20:40:10,472 Stage-1 map = 100%,减少 = 0% 2016-05-23 20:40:16,482 第一阶段地图 = 75%,减少 = 0% 2016-05-23 20:40:19,487 第一阶段地图 = 78%,减少 = 0 % 2016-05-23 20:40:22,493 第一阶段地图 = 79%,减少 = 0% 2016-05-23 20:40:24,498 第一阶段地图 = 100%,减少 = 0% 2016-05-23 20:40:30,520 Stage-1 map = 81%, reduce = 0% Ended Job = job_local348040558_0001 with errors 作业期间出错,获取调试信息...失败:执行错误,从 org.apache.hadoop.hive 返回代码 2。 ql.exec.mr.MapRedTask MapReduce 作业启动:Stage-Stage-1:HDFS 读取:8822964165 HDFS 写入:0 FAIL MapReduce CPU 总时间花费:0 毫秒减少 = 0% 2016-05-23 20:40:10,472 第一阶段地图 = 100%,减少 = 0% 2016-05-23 20:40:16,482 第一阶段地图 = 75%,减少 = 0% 2016- 05-23 20:40:19,487 Stage-1 map = 78%, reduce = 0% 2016-05-23 20:40:22,493 Stage-1 map = 79%, reduce = 0% 2016-05-23 20:40 :24,498 Stage-1 map = 100%, reduce = 0% 2016-05-23 20:40:30,520 Stage-1 map = 81%, reduce = 0% Ended Job = job_local348040558_0001 with errors 作业期间出错,获取调试信息。 .. 失败:执行错误,从 org.apache.hadoop.hive.ql.exec.mr.MapRedTask 返回代码 2 MapReduce 作业已启动:Stage-Stage-1:HDFS 读取:8822964165 HDFS 写入:0 FAIL MapReduce CPU 总花费时间: 0 毫秒减少 = 0% 2016-05-23 20:40:10,472 第一阶段地图 = 100%,减少 = 0% 2016-05-23 20:40:16,482 第一阶段地图 = 75%,减少 = 0% 2016- 05-23 20:40:19,487 Stage-1 map = 78%, reduce = 0% 2016-05-23 20:40:22,493 Stage-1 map = 79%, reduce = 0% 2016-05-23 20:40 :24,498 Stage-1 map = 100%, reduce = 0% 2016-05-23 20:40:30,520 Stage-1 map = 81%, reduce = 0% Ended Job = job_local348040558_0001 with errors 作业期间出错,获取调试信息。 .. 失败:执行错误,从 org.apache.hadoop.hive.ql.exec.mr.MapRedTask 返回代码 2 MapReduce 作业已启动:Stage-Stage-1:HDFS 读取:8822964165 HDFS 写入:0 FAIL MapReduce CPU 总花费时间: 0 毫秒减少 = 0% 2016-05-23 20:40:19,487 第一阶段地图 = 78%,减少 = 0% 2016-05-23 20:40:22,493 第一阶段地图 = 79%,减少 = 0% 2016- 05-23 20:40:24,498 Stage-1 map = 100%, reduce = 0% 2016-05-23 20:40:30,520 Stage-1 map = 81%, reduce = 0% Ended Job = job_local348040558_0001 期间出现错误错误作业,获取调试信息...失败:执行错误,从 org.apache.hadoop.hive.ql.exec.mr.MapRedTask 返回代码 2 MapReduce 作业已启动:Stage-Stage-1:HDFS 读取:8822964165 HDFS 写入:0 FAIL 总 MapReduce CPU 时间花费:0 毫秒减少 = 0% 2016-05-23 20:40:19,487 第一阶段地图 = 78%,减少 = 0% 2016-05-23 20:40:22,493 第一阶段地图 = 79%,减少 = 0% 2016- 05-23 20:40:24,498 Stage-1 map = 100%, reduce = 0% 2016-05-23 20:40:30,520 Stage-1 map = 81%, reduce = 0% Ended Job = job_local348040558_0001 期间出现错误错误作业,获取调试信息...失败:执行错误,从 org.apache.hadoop.hive.ql.exec.mr.MapRedTask 返回代码 2 MapReduce 作业已启动:Stage-Stage-1:HDFS 读取:8822964165 HDFS 写入:0 FAIL 总 MapReduce CPU 时间花费:0 毫秒reduce = 0% Ended Job = job_local348040558_0001 with errors 作业期间出错,正在获取调试信息... FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask MapReduce Jobs Launched: Stage-阶段 1:HDFS 读取:8822964165 HDFS 写入:0 FAIL 总 MapReduce CPU 花费时间:0 毫秒reduce = 0% Ended Job = job_local348040558_0001 with errors 作业期间出错,正在获取调试信息... FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask MapReduce Jobs Launched: Stage-阶段 1:HDFS 读取:8822964165 HDFS 写入:0 FAIL 总 MapReduce CPU 花费时间:0 毫秒
2:Hive日志文件;
2016-05-24 22:04:07,489 错误 [main]: exec.Task (SessionState.java:printError(960)) - 结束作业 = job_local932151035_0001 错误 2016-05-24 22:04:07,507 错误 [Thread-65 ]: exec.Task (SessionState.java:printError(960)) - 作业期间出错,获取调试信息... 2016-05-24 22:04:07,507 INFO [Thread-65]: Configuration.deprecation (Configuration.java :warnOnceIfDeprecated(1173)) - mapred.job.tracker 已弃用。相反,使用 mapreduce.jobtracker.address 2016-05-24 22:04:07,752 ERROR [main]: ql.Driver (SessionState.java:printError(960)) - FAILED: Execution Error, return code 2 from org.apache。 hadoop.hive.ql.exec.mr.MapRedTask 2016-05-24 22:04:07,752 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 2016-05-24 22:04:07,752 INFO [main]: ql.Driver (SessionState.java:printInfo(951)) - MapReduce 作业启动:2016-05-24 22:04:07,753 INFO [main]: ql.Driver (SessionState.java:printInfo(951)) - Stage-Stage-1:HDFS 读取:13499720788 HDFS 写入:0 FAIL 2016-05-24 22 :04:07,753 INFO [main]: ql.Driver (SessionState.java:printInfo(951)) - MapReduce CPU 总时间花费:0 毫秒 2016-05-24 22:04:07,753 INFO [main]: log.PerfLogger ( PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,753 信息 [主要]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 2016-05-24 22:04:07,764 信息[main]: exec.ListSinkOperator (Operator.java:close(612)) - 3 完成。关闭... 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(634)) - 3 关闭完成 2016-05-24 22:04:07,765 INFO [main] : log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,765 信息 [主要]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 753 INFO [main]:ql.Driver (SessionState.java:printInfo(951)) - Stage-Stage-1:HDFS 读取:13499720788 HDFS 写入:0 FAIL 2016-05-24 22:04:07,753 INFO [main]: ql.Driver (SessionState.java:printInfo(951)) - MapReduce CPU 总时间花费:0 毫秒 2016-05-24 22:04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator .java:close(612)) - 3 完成。关闭... 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(634)) - 3 关闭完成 2016-05-24 22:04:07,765 INFO [main] : log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,765 信息 [主要]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 753 INFO [main]:ql.Driver (SessionState.java:printInfo(951)) - Stage-Stage-1:HDFS 读取:13499720788 HDFS 写入:0 FAIL 2016-05-24 22:04:07,753 INFO [main]: ql.Driver (SessionState.java:printInfo(951)) - MapReduce CPU 总时间花费:0 毫秒 2016-05-24 22:04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator .java:close(612)) - 3 完成。关闭... 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(634)) - 3 关闭完成 2016-05-24 22:04:07,765 INFO [main] : log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,765 信息 [主要]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 驱动程序 (SessionState.java:printInfo(951)) - Stage-Stage-1: HDFS 读取: 13499720788 HDFS 写入: 0 FAIL 2016-05-24 22:04:07,753 INFO [main]: ql.Driver (SessionState.java: printInfo(951)) - MapReduce CPU 总时间花费:0 毫秒 2016-05-24 22:04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22: 04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(612)) - 3 完成。关闭... 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(634)) - 3 关闭完成 2016-05-24 22:04:07,765 INFO [main] : log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,765 信息 [主要]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 驱动程序 (SessionState.java:printInfo(951)) - Stage-Stage-1: HDFS 读取: 13499720788 HDFS 写入: 0 FAIL 2016-05-24 22:04:07,753 INFO [main]: ql.Driver (SessionState.java: printInfo(951)) - MapReduce CPU 总时间花费:0 毫秒 2016-05-24 22:04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22: 04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(612)) - 3 完成。关闭... 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(634)) - 3 关闭完成 2016-05-24 22:04:07,765 INFO [main] : log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,765 信息 [主要]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 13499720788 HDFS 写入:0 FAIL 2016-05-24 22:04:07,753 INFO [main]: ql.Driver (SessionState.java:printInfo(951)) - MapReduce CPU 总时间花费:0 毫秒 2016-05-24 22: 04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 2016-05-24 22:04:07,764 信息 [main]: exec.ListSinkOperator (Operator.java:close(612)) - 3 完成。关闭... 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(634)) - 3 关闭完成 2016-05-24 22:04:07,765 INFO [main] : log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,765 信息 [主要]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 13499720788 HDFS 写入:0 FAIL 2016-05-24 22:04:07,753 INFO [main]: ql.Driver (SessionState.java:printInfo(951)) - MapReduce CPU 总时间花费:0 毫秒 2016-05-24 22: 04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 2016-05-24 22:04:07,764 信息 [main]: exec.ListSinkOperator (Operator.java:close(612)) - 3 完成。关闭... 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(634)) - 3 关闭完成 2016-05-24 22:04:07,765 INFO [main] : log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,765 信息 [主要]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - printInfo(951)) - MapReduce CPU 总时间花费:0 毫秒 2016-05-24 22:04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22: 04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(612)) - 3 完成。关闭... 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(634)) - 3 关闭完成 2016-05-24 22:04:07,765 INFO [main] : log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,765 信息 [主要]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - printInfo(951)) - MapReduce CPU 总时间花费:0 毫秒 2016-05-24 22:04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22: 04:07,753 INFO [main]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(612)) - 3 完成。关闭... 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(634)) - 3 关闭完成 2016-05-24 22:04:07,765 INFO [main] : log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,765 信息 [主要]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(612)) - 3 完成。关闭... 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(634)) - 3 关闭完成 2016-05-24 22:04:07,765 INFO [main] : log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,765 信息 [主要]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) - 07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(612)) - 3 完成。关闭... 2016-05-24 22:04:07,764 INFO [main]: exec.ListSinkOperator (Operator.java:close(634)) - 3 关闭完成 2016-05-24 22:04:07,765 INFO [main] : log.PerfLogger (PerfLogger.java:PerfLogBegin(121)) - 2016-05-24 22:04:07,765 信息 [主要]: log.PerfLogger (PerfLogger.java:PerfLogEnd(148)) -
谁能帮我解决这个问题:)提前谢谢
hadoop - Hive 中的外部表
我使用 R 脚本在 HDFS 中添加了一个 CSV 文件。
我用新的 CSV/追加数据更新这个 CSV
在此 CSV 上使用 Hive 中的色调创建表。
将其更改为外部表。
现在,如果在 hdfs 位置更改数据时,hive 表中的数据会自动更新吗?
hive - 有没有办法跟踪 Hive 元存储中的模式更改?
我正在寻找一种可能的解决方案来跟踪 Hive 元存储中的所有架构更改,例如创建新表、添加/删除列、更改列类型等。到目前为止我还没有找到任何解决方案。我应该只监视存储元信息的 MySQL 数据库吗?
hive - Hive 1.2 中 BINARY 数据类型的限制是什么?
BINARY
我在 apache 文档中没有找到太多关于数据类型的信息: https ://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types
我创建了一个带有BINARY
列的表,使用 -
通过 JDBC 获取元数据后,我发现,
列大小:2147483647
有这方面的官方文件吗?
hadoop - 在 Hive 的 case 语句中插入数据
是否可以在 Hive 的 case 语句中插入新的数据行。
我有一个基本的“团队”表,其中包含以下字段(team_id、fname、lname)。
这就是我想要运行的,
错误 ParseException line 2:29 Failed to recognize predicate 'insert'. Failed rule: 'identifier' in table or column identifier
如果有人可以提供信息或解决方案,那将是很棒的
Frostie
hadoop - 将时间戳插入 Hive
嗨,我是 Hive 的新手,我想将当前时间戳与一行数据一起插入到我的表中。
这是我的团队表的示例:
我看过其他一些例子,如何将时间戳插入 Hive 表?,如何在 hive 中添加时间戳列,但似乎无法使其正常工作。这就是我正在尝试的:
我得到的错误是:
如果有人可以提供帮助,那就太好了,非常感谢frostie
string - apache hive中变量值和字符串的连接
在 apache Hive CLI 或 Beeline CLI 中,我需要将变量的值与字符串连接起来。有可能这样做吗?
示例:设置 path_on_hdfs="/apps/hive/warehouse/my_db.db";
如何获得类似'${hivevar:path_on_hdfs}/myTableName'的东西?
hadoop - Apache Hive - 单次插入日期值
我正在尝试使用 Hive 将日期插入日期列。到目前为止,这是我尝试过的
和
和
但我仍然得到
或者
Hive ACID 已在基于 ORC 的表上启用,并且没有日期的简单插入正在工作。
我想我错过了一些非常简单的东西。但不能把我的手指放在它上面。
hive - 在 hive 中将字符串转换为 bigint 会返回不完整的数据
如何获得蜂巢的全部价值?即cast('0024' as bigint)
只会给出24
,但我需要完整0024
的作为我的输出。
知道怎么做吗?