执行Hive时出现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.NumberFormatException: For input string: "1s"错误的解决办法(图文详解)

执行Hive时出现org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.NumberFormatException: For input string: "1s"错误的解决办法(图文详解)
[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"
执行Hive时出现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.NumberFormatException: For input string: "1s"错误的解决办法(图文详解)

 

 

 

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

   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.NumberFormatException: For input string: "1s"错误的解决办法(图文详解)

 

 
 
     归结为,比如你是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,如需转载请自行联系原作者
上一篇:struts2的result的type属性


下一篇:使用LoadRunner监测MySQL数据库的性能