Beispiel #1
0
    def activate_hawq_standby(self, env):
        import utils
        Logger.info("Activating HAWQ standby...")
        utils.exec_hawq_operation(
            hawq_constants.ACTIVATE,
            "{0} -a -M {1} -v --ignore-bad-hosts".format(
                hawq_constants.STANDBY, hawq_constants.FAST))

        # Stop the newly become master as the process might be running with an old port,
        # which would cause a failure Start HAWQ Service step in Activate HAWQ Standby Master Wizard
        common.stop_component(hawq_constants.MASTER, hawq_constants.FAST)
Beispiel #2
0
    def activate_hawq_standby(self, env):
        import params
        import utils
        Logger.info("Activating HAWQ standby...")
        params.XmlConfig(
            "hawq-site.xml",
            configurations=params.hawq_site,
            configuration_attributes=params.config_attrs['hawq-site'])
        utils.exec_hawq_operation(
            hawq_constants.ACTIVATE,
            "{0} -a -M {1} -v --ignore-bad-hosts".format(
                hawq_constants.STANDBY, hawq_constants.FAST))

        # Stop the new HAWQMASTER as the process might be running at an old port,
        # which might cause a failure in Start HAWQ Service step in the Activate HAWQ Standby Master Wizard
        common.stop_component(hawq_constants.MASTER, hawq_constants.FAST)
Beispiel #3
0
 def immediate_stop_hawq_service(self, env):
   import params
   common.stop_component(hawq_constants.CLUSTER, hawq_constants.IMMEDIATE)
Beispiel #4
0
 def stop(self, env):
   import params
   common.stop_component(hawq_constants.MASTER, hawq_constants.FAST)
Beispiel #5
0
 def stop(self, env, mode=hawq_constants.FAST):
     import params
     common.stop_component(hawq_constants.SEGMENT, mode)
Beispiel #6
0
 def stop(self, env):
     import params
     common.stop_component(hawq_constants.STANDBY,
                           params.hawq_master_address_port,
                           hawq_constants.FAST)
Beispiel #7
0
 def stop(self, env, mode=hawq_constants.FAST):
     import params
     common.stop_component(hawq_constants.SEGMENT,
                           params.hawq_segment_address_port, mode)
Beispiel #8
0
 def immediate_stop_hawq_service(self, env):
     import params
     common.stop_component(hawq_constants.CLUSTER,
                           params.hawq_master_address_port,
                           hawq_constants.IMMEDIATE)
Beispiel #9
0
 def stop(self, env):
     common.stop_component(hawq_constants.STANDBY, hawq_constants.FAST)