[ 
https://issues.apache.org/jira/browse/AMBARI-26144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jialiang Cai resolved AMBARI-26144.
-----------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

> HS2 start failed with java.lang.NumberFormatException: For input string
> -----------------------------------------------------------------------
>
>                 Key: AMBARI-26144
>                 URL: https://issues.apache.org/jira/browse/AMBARI-26144
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: trunk
>            Reporter: Basapuram Kumar
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When trying Ambari with Python3  env, HiveServer2 start is failed with the 
> below error.
>  
>  
> {code:java}
> 2024-09-24T09:39:36,536 INFO  [main]: server.HiveServer2 
> (HiveServer2.java:stopOrDisconnectTezSessions(885)) - Stopping/Disconnecting 
> tez sessions.
> 2024-09-24T09:39:36,537 ERROR [main]: server.HiveServer2 
> (HiveServer2.java:execute(1356)) - Error starting HiveServer2
> java.lang.Error: Max start attempts 5 exhausted
>         at 
> org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:1093)
>  ~[hive-service-3.1.4.3.2.3.2-3.jar:3.1.4.3.2.3.2-3]
>         at 
> org.apache.hive.service.server.HiveServer2.access$1500(HiveServer2.java:142) 
> ~[hive-service-3.1.4.3.2.3.2-3.jar:3.1.4.3.2.3.2-3]
>         at 
> org.apache.hive.service.server.HiveServer2$StartOptionExecutor.execute(HiveServer2.java:1354)
>  [hive-service-3.1.4.3.2.3.2-3.jar:3.1.4.3.2.3.2-3]
>         at 
> org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:1192) 
> [hive-service-3.1.4.3.2.3.2-3.jar:3.1.4.3.2.3.2-3]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_422]
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:1.8.0_422]
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[?:1.8.0_422]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_422]
>         at org.apache.hadoop.util.RunJar.run(RunJar.java:323) 
> [hadoop-common-3.2.3.3.2.3.2-3.jar:?]
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:236) 
> [hadoop-common-3.2.3.3.2.3.2-3.jar:?]
> Caused by: java.lang.RuntimeException: java.lang.NumberFormatException: For 
> input string: "2.5"
>         at 
> org.apache.hive.service.server.HiveServer2.init(HiveServer2.java:324) 
> ~[hive-service-3.1.4.3.2.3.2-3.jar:3.1.4.3.2.3.2-3]
>         at 
> org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:1067)
>  ~[hive-service-3.1.4.3.2.3.2-3.jar:3.1.4.3.2.3.2-3]
>         ... 9 more
> Caused by: java.lang.NumberFormatException: For input string: "2.5"
>         at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
> ~[?:1.8.0_422]
>         at java.lang.Long.parseLong(Long.java:589) ~[?:1.8.0_422]
>         at java.lang.Long.parseLong(Long.java:631) ~[?:1.8.0_422]
>         at 
> org.apache.hadoop.conf.Configuration.getLong(Configuration.java:1539) 
> ~[hadoop-common-3.2.3.3.2.3.2-3.jar:?]
>         at 
> org.apache.hadoop.hive.metastore.conf.MetastoreConf.getLongVar(MetastoreConf.java:2137)
>  ~[hive-exec-3.1.4.3.2.3.2-3.jar:3.1.4.3.2.3.2-3]
>         at 
> org.apache.hadoop.hive.metastore.conf.MetastoreConf.getIntVar(MetastoreConf.java:2123)
>  ~[hive-exec-3.1.4.3.2.3.2-3.jar:3.1.4.3.2.3.2-3]
>         at 
> org.apache.hive.service.server.HiveServer2.logCompactionParameters(HiveServer2.java:456)
>  ~[hive-service-3.1.4.3.2.3.2-3.jar:3.1.4.3.2.3.2-3]
>         at 
> org.apache.hive.service.server.HiveServer2.init(HiveServer2.java:321) 
> ~[hive-service-3.1.4.3.2.3.2-3.jar:3.1.4.3.2.3.2-3]
>         at 
> org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:1067)
>  ~[hive-service-3.1.4.3.2.3.2-3.jar:3.1.4.3.2.3.2-3]
>         ... 9 more {code}
>  
>  
> As a workaround added the round() to convert it to integer as it expects 
> integer value.
> Refernce is [here| 
> https://github.com/apache/ambari/blob/5d1e4e872f04d9240ad8f4d57aad325bf101136c/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/service_advisor.py#L260C5-L260C85
> ]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to