def install(self, env): import params if not params.license_accepted: sys.exit("Installation failed, license agreement not accepted.") if os.path.exists(params.master_data_segment_directory): Logger.info("Found master data directory. Assuming Greenplum already installed.") return self.install_packages(env) greenplum.preinstallation_configure(env) greenplum.create_master_data_directory() greenplum.create_gpinitsystem_config(params.admin_user, params.greenplum_initsystem_config_file) greenplum.add_psql_variables() greenplum.master_install(env) # Ambari requires service to be in a stopped state after installation try: self.status(env) self.stop(env) except ComponentIsNotRunning: pass
def install(self, env): import params env.set_params(params) self.install_packages(env) greenplum.preinstallation_configure(env) # Create data directories, mirror directories Directory(params.data_directories + params.mirror_data_directories, recursive=True, owner=params.admin_user, mode=0755)
def install(self, env): import params if not params.license_accepted: sys.exit("Installation failed, license agreement not accepted.") env.set_params(params) greenplum.preinstallation_configure(env) greenplum.create_master_data_directory() greenplum.add_psql_variables() self.install_packages(env)
def configure(self, env): import params greenplum.create_host_files() greenplum.preinstallation_configure(env) greenplum.refresh_pg_hba_file()
def install(self, env): import params import time if not params.license_accepted: sys.exit("Installation failed, license agreement not accepted.") if os.path.exists(params.master_data_segment_directory): Logger.info( "Found master data directory. Assuming Greenplum already installed." ) return env.set_params(params) self.install_packages(env) time.sleep(200) greenplum.preinstallation_configure(env) greenplum.create_master_data_directory() greenplum.create_gpinitsystem_config( params.admin_user, params.greenplum_initsystem_config_file) greenplum.add_psql_variables() greenplum.master_install(env) ## gpmon requires gpdb to be in a running state when installing time.sleep(30) try: Execute(params.source_cmd + format( " gpperfmon_install --enable --password {params.gpmon_password} --port {params.master_port}" ), user=params.admin_user) Execute(params.source_cmd + "gpstop -u", user=params.admin_user) except Fail as exception: Logger.error("Due to above errors Greenplum gpmon marked failed.") raise exception webcc_zippath = "/tmp/greenplum-cc-web.zip" # Attempt to locate locallay if not os.path.exists(webcc_zippath): # Attempt to download URL try: Logger.info('Downloading Greenplum from %s to %s.' % (params.webcc_installer_location, webcc_zippath)) urllib.urlretrieve(params.webcc_installer_location, webcc_zippath) except IOError: pass webcc_installer = greenplum_webcc_installer.GreenplumWebCCInstaller( webcc_zippath) webcc_installer.unzip_web_package() Execute("expect " + webcc_installer.install_webcc_cmd(), user="******") Execute(format( "chown -R {params.admin_user}.{params.admin_group} /usr/local/greenplum*" ), user="******") Execute(format("chmod u+x -R /usr/local/greenplum*"), user=params.admin_user) ## restart gpdb for setup web-cc try: Execute(params.source_cmd + "gpstop -a -M smart -v;gpstart -a -v", user=params.admin_user) except ComponentIsNotRunning: pass webcc_setup = webcc_installer.setup_webcc_cmd(params.webcc_port) Execute(format("chmod 744 {webcc_setup}"), user="******") Execute(params.source_cc_cmd + "expect " + webcc_setup, user=params.admin_user) time.sleep(5) # Ambari requires service to be in a stopped state after installation try: self.status(env) self.forcestop(env) except ComponentIsNotRunning: pass
def configure(self, env): greenplum.create_host_files() greenplum.preinstallation_configure(env)