简体   繁体   English

HCatalog多个SLF4J绑定错误消息

[英]HCatalog multiple SLF4J bindings error message

as Im following a tutorial on hadoop ( http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/ ) I cannot create a table using a downloaded data file as I get this error message: 作为我遵循有关hadoop的教程( http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/ )的指导,我无法使用下载的数据创建表我收到此错误消息时文件:

HCatClient error on create table: {"statement":"use default; create table nyse_stocks( exchange string, stock_symbol string, date string, stock_price_open float, stock_price_high float, stock_price_low float, stock_price_close float, stock_volume bigint, stock_price_adj_close float) row format delimited fields terminated by '\\t';","error":"unable to create table: nyse_stocks","exec":{"stdout":"","stderr":"SLF4J: Class path contains multiple SLF4J bindings.\\nSLF4J: Found binding in [jar:file:/usr/hdp/2.2.0.0-913/hadoop/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]\\nSLF4J: Found binding in [jar:file:/usr/hdp/2.2.0.0-913/hive/lib/hive-jdbc-0.14.0.2.2.0.0-913-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]\\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\\nSLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]\\n Command was terminated due to timeout(60000ms). See templeton.exec.timeout property","exitcode":143}} HCatClient在创建表时出错:{“ statement”:“使用默认值;创建表nyse_stocks( exchange字符串, stock_symbol字符串, date字符串, stock_price_open浮动, stock_price_high浮动, stock_price_low浮动, stock_price_close浮动, stock_volume bigint, stock_price_adj_close浮动)行格式分隔字段以'\\ t';;“,”错误“:”无法创建表:nyse_stocks“,” exec“:{” stdout“:”“,” stderr“:” SLF4J:类路径包含多个SLF4J绑定。\\ nSLF4J :在[jar:file:/usr/hdp/2.2.0.0-913/hadoop/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]中找到绑定\\ nSLF4J:找到绑定在[jar:file:/usr/hdp/2.2.0.0-913/hive/lib/hive-jdbc-0.14.0.2.2.0.0-913-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]中\\ nSLF4J:有关说明,请参见http://www.slf4j.org/codes.html#multiple_bindings。\\nSLF4J :实际绑定的类型为[org.slf4j.impl.Log4jLoggerFactory] ​​\\ n由于超时(60000ms,命令已终止) )。参见Templeton.exec.timeout属性“,” exitcode“:143}} (error 500) (错误500)

could someone please help me out in easy language and bear with me that I am a beginner, 有人可以用简单的语言帮助我,并让我相信我是一个初学者,

thanks in advance! 提前致谢!

Of the 2 SLF4J bindings being listed in the warning you'll need to exclude one of them from the classpath. 警告中列出的2个SLF4J绑定中,您需要从类路径中排除其中之一。

Even though this is a warning SLF4J will pick one logging framework/implementation and bind with it - binding is determined by the JVM and is mostly considered a random function. 即使这是一个警告,SLF4J也会选择一个日志记录框架/实现并与之绑定-绑定由JVM确定,通常被认为是随机函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM