timyuer commented on code in PR #3702:
URL: https://github.com/apache/ambari/pull/3702#discussion_r1247527157


##########
ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/HBASE/package/scripts/hbase_decommission.py:
##########
@@ -57,32 +69,65 @@ def hbase_decommission(env):
   if params.hbase_drain_only:
     for host in hosts:
       if host:
-        regiondrainer_cmd = format(
-          "{kinit_cmd} HBASE_SERVER_JAAS_OPTS=\"{master_security_config}\" 
{hbase_cmd} --config {hbase_conf_dir} {hbase_decommission_auth_config} 
org.jruby.Main {region_drainer} remove {host}")
-        Execute(regiondrainer_cmd,
-                user=params.hbase_user,
-                logoutput=True
-        )
-        pass
+        try:
+          regiondrainer_cmd = format(
+            "{kinit_cmd} HBASE_SERVER_JAAS_OPTS=\"{master_security_config}\" 
{hbase_cmd} --config {hbase_conf_dir} {hbase_decommission_auth_config} 
org.jruby.Main {region_drainer} remove {host}")
+          Execute(regiondrainer_cmd,
+                  user=params.hbase_user,
+                  logoutput=True
+                  )
+          pass

Review Comment:
   Same comment above.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to