Browse Source

AMBARI-19016 - RegionServer Restart During Upgrade Fails Because of Missing Import When Formatting PID (jonathanhurley)

Jonathan Hurley 8 years ago
parent
commit
6f4055fa11

+ 2 - 1
ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/upgrade.py

@@ -29,8 +29,10 @@ from resource_management.libraries.functions import conf_select, stack_select
 from resource_management.libraries.functions.constants import StackFeature
 from resource_management.libraries.functions.constants import StackFeature
 from resource_management.libraries.functions.stack_features import check_stack_feature
 from resource_management.libraries.functions.stack_features import check_stack_feature
 from resource_management.libraries.functions.decorator import retry
 from resource_management.libraries.functions.decorator import retry
+from resource_management.libraries.functions.format import format
 from resource_management.libraries.functions import check_process_status
 from resource_management.libraries.functions import check_process_status
 
 
+
 def prestart(env, stack_component):
 def prestart(env, stack_component):
   import params
   import params
 
 
@@ -63,7 +65,6 @@ def is_regionserver_registered(cmd, user, hostname, regex_search_flags):
   Queries HBase through the HBase shell to see which servers have successfully registered. This is
   Queries HBase through the HBase shell to see which servers have successfully registered. This is
   useful in cases, such as upgrades, where we must ensure that a RegionServer has not only started,
   useful in cases, such as upgrades, where we must ensure that a RegionServer has not only started,
   but also completed it's registration handshake before moving into upgrading the next RegionServer.
   but also completed it's registration handshake before moving into upgrading the next RegionServer.
-
   The hbase shell is used along with the "show 'simple'" command in order to determine if the
   The hbase shell is used along with the "show 'simple'" command in order to determine if the
   specified host has registered.
   specified host has registered.
   :param cmd:
   :param cmd: