Browse Source

AMBARI-15389 Intermittent YARN service check failures during and post EU (dlysnichenko)

Lisnichenko Dmitro 9 years ago
parent
commit
ba58ad1c20

+ 4 - 1
ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/service_check.py

@@ -91,7 +91,10 @@ class ServiceCheckDefault(ServiceCheck):
       path_to_distributed_shell_jar = "/usr/lib/hadoop-yarn/hadoop-yarn-applications-distributedshell*.jar"
 
     yarn_distrubuted_shell_check_cmd = format("yarn org.apache.hadoop.yarn.applications.distributedshell.Client "
-                                              "-shell_command ls -num_containers {number_of_nm} -jar {path_to_distributed_shell_jar}")
+                                              "-shell_command ls "
+                                              "-num_containers {number_of_nm} "
+                                              "-jar {path_to_distributed_shell_jar} "
+                                              "-timeout 30000")
 
     if params.security_enabled:
       kinit_cmd = format("{kinit_path_local} -kt {smoke_user_keytab} {smokeuser_principal};")