【发布时间】:2017-06-02 23:52:48
【问题描述】:
在 Hortonworks 沙盒(HDP2.3 Pig 和 Hive Rev6)中运行 Hive 查询时,我收到此警告。在此之后没有任何事情发生。 Hive 表也没有被创建。该怎么办?
[root@sandbox Lab7.1]# hive -f wh_visits.hive SLF4J:类路径 包含多个 SLF4J 绑定。 SLF4J:发现绑定 [jar:file:/usr/hdp/2.3.2.0-2950/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J:发现绑定 [jar:文件:/usr/hdp/2.3.2.0-2950/spark/lib/spark-assembly-1.4.1.2.3.2.0-2950-hadoop2.7.1.2.3.2.0-2950.jar!/org/slf4j /impl/StaticLoggerBinder.class] SLF4J:见http://www.slf4j.org/codes.html#multiple_bindings 解释。 SLF4J:实际绑定是类型 [org.slf4j.impl.Log4jLoggerFactory] 警告:使用“yarn jar”启动 纱线应用。 SLF4J:类路径包含多个 SLF4J 绑定。 SLF4J:发现绑定 [jar:file:/usr/hdp/2.3.2.0-2950/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J:发现绑定 [jar:文件:/usr/hdp/2.3.2.0-2950/spark/lib/spark-assembly-1.4.1.2.3.2.0-2950-hadoop2.7.1.2.3.2.0-2950.jar!/org/slf4j /impl/StaticLoggerBinder.class] SLF4J:见http://www.slf4j.org/codes.html#multiple_bindings 解释。 SLF4J:实际绑定是类型 [org.slf4j.impl.Log4jLoggerFactory]
使用文件中的配置初始化日志记录:/etc/hive/2.3.2.0-2950/0/hive-log4j.properties
【问题讨论】:
-
SLF4J 消息只是被忽略的垃圾。现在,如果“在此之后什么都没有发生”,我会猜测:Hive 正在尝试连接到 (a) Metastore 服务,但它没有启动/没有响应,或 (b) 直接到数据库服务器 (MySQL?) 但是 (...),和/或 (c) 到 YARN 时间线服务器但是 (. ..) >> AFAIK,在 Hive 报告超时之前,您必须等待很长时间,并让您知道根本原因是什么。
-
是的,你是对的。我忽略了警告。这不是表演的终结者。但我观察到有时需要很长时间才能完成工作或返回蜂巢提示。
标签: hadoop hive hortonworks-data-platform