def __setup_hawq_user_profile(): """ Sets up the ENV variables for hawq_user as a convenience for the command line users """ hawq_profile_file = os.path.join(os.path.expanduser("~{0}".format(hawq_constants.hawq_user)), ".hawq-profile.sh") File(hawq_profile_file, content=Template("hawq-profile.sh.j2"), owner=hawq_constants.hawq_user, group=hawq_constants.hawq_group) common.update_bashrc(hawq_profile_file, hawq_constants.hawq_user_bashrc_file)
def configure(self, env): import params env.set_params(params) env.set_params(hawq_constants) common.setup_user() common.setup_common_configurations() common.update_bashrc(hawq_constants.hawq_greenplum_path_file, hawq_constants.hawq_user_bashrc_file)
def configure(self, env): import params env.set_params(params) env.set_params(hawqconstants) common.setup_user() common.setup_common_configurations() common.update_bashrc(hawqconstants.hawq_greenplum_path_file, hawqconstants.hawq_user_bashrc_file)