def __init_segment(): import params common.create_master_dir(params.hawq_segment_dir) # Initialize hawq segment utils.exec_hawq_operation(hawq_constants.INIT, "{0} -a -v".format(hawq_constants.SEGMENT))
def configure(self, env): import params env.set_params(params) env.set_params(hawq_constants) common.setup_user() common.setup_common_configurations() common.create_master_dir(params.hawq_segment_dir) common.create_temp_dirs(params.hawq_segment_temp_dirs)
def configure_master(): """ Configures the master node after rpm install """ import params common.setup_user() common.setup_common_configurations() __setup_master_specific_conf_files() common.create_master_dir(params.hawq_master_dir) common.create_temp_dirs(params.hawq_master_temp_dirs)
def configure(self, env): import params env.set_params(params) env.set_params(hawq_constants) common.setup_user() common.setup_common_configurations() common.create_master_dir(params.hawq_segment_dir) # temp directories are stateless and they should be recreated when configured (started) common.create_temp_dirs(params.hawq_segment_temp_dirs)