不多说,直接上干货

 

 

 问题详情

执行Hive时出现org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.NumberFormatExcept...

执行Hive时出现org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.NumberFormatExcept...
[[email protected] 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"
执行Hive时出现org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.NumberFormatExcept...

 

 

 

 

 

 解决办法

    网上查了说改,

执行Hive时出现org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.NumberFormatExcept...

 

 

 

     也许,你改完之后,依然还是如此。

   Caused by: java.lang.NumberFormatException: For input string: "1s"还是这样
 
     我换其他版本,1.0.0没毛病。
执行Hive时出现org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.NumberFormatExcept...

 

 
 
     归结为,比如你是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,如需转载请自行联系原作者

相关文章:

  • 2021-08-21
  • 2021-10-08
  • 2022-01-18
  • 2021-11-01
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-14
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-06-26
  • 2022-02-05
  • 2021-07-25
相关资源
相似解决方案