This is an automated email from the ASF dual-hosted git repository.

jialiang pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 7182923813 AMBARI-26144: handling java.lang.NumberFormatException for 
input string (#3838)
7182923813 is described below

commit 7182923813b6f6084ab2ee5b79664b83dab71a0a
Author: basapuram-kumar <[email protected]>
AuthorDate: Wed Sep 25 06:25:54 2024 +0530

    AMBARI-26144: handling java.lang.NumberFormatException for input string 
(#3838)
---
 .../main/resources/stacks/BIGTOP/3.2.0/services/HIVE/service_advisor.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/service_advisor.py
 
b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/service_advisor.py
index e7b28670e4..83b192fca0 100644
--- 
a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/service_advisor.py
+++ 
b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HIVE/service_advisor.py
@@ -257,7 +257,7 @@ class HiveRecommender(service_advisor.ServiceAdvisor):
     cpu_count = 0
     for hostData in hive_server_hosts:
       cpu_count = max(cpu_count, hostData["Hosts"]["cpu_count"])
-    putHiveSiteProperty("hive.compactor.worker.threads", str(max(cpu_count / 
8, 1)))
+    putHiveSiteProperty("hive.compactor.worker.threads", 
str(round(max(cpu_count / 8, 1))))
 
     hiveMetastoreHost = self.getHostWithComponent("HIVE", "HIVE_METASTORE", 
services, hosts)
     if hiveMetastoreHost is not None and len(hiveMetastoreHost) > 0:


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

Reply via email to