不多说,直接上干货
问题详情
[kfk@bigdata-pro01 apache-hive-0.13.1-bin]$ bin/hive Logging initialized using configuration in file:/opt/modules/apache-hive-1.0.0-bin/conf/hive-log4j.properties Exception in thread "main" java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "1s" at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:346) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.NumberFormatException: For input string: "1s"
解决办法
网上查了说改,
也许,你改完之后,依然还是如此。
Caused by: java.lang.NumberFormatException: For input string: "1s"还是这样
我换其他版本,1.0.0没毛病。
归结为,比如你是apache-hadoop-2.5.0可以和apache-hive-0.13.1搭配
比如你是apache-hadoop-2.6.0可以和apache-hive-1.0.0 和 apache-hive-1.2.1搭配。
如果你遇到更多的Hive问题,见如下,也许能帮助到你
本文转自大数据躺过的坑博客园博客,原文链接:http://www.cnblogs.com/zlslch/p/8228448.html,如需转载请自行联系原作者