def start(self, env, upgrade_type=None): import params env.set_params(params) install_spark() self.configure(env) spark_service( 'sparkthriftserver', upgrade_type=upgrade_type, action='start')
def configure(self, env, config_dir=None, upgrade_type=None): """ :param env: Python environment :param config_dir: During rolling upgrade, which config directory to save configs to. :param upgrade_type: If in the middle of a stack upgrade, whether rolling or non-rolling """ import params env.set_params(params) install_spark() setup_spark(env, 'client', upgrade_type=upgrade_type, action='config', config_dir=config_dir)
def start(self, env): import params env.set_params(params) install_spark() self.configure(env) spark_service('sparkthriftserver', action='start')
def install(self, env): import params env.set_params(params) self.install_packages(env) install_spark()
def install(self, env): import params env.set_params(params) install_spark()
def install(self, env): install_spark() self.configure(env)
def install(self, env): self.install_packages(env) install_spark() self.configure(env)
def configure(self, env, upgrade_type=None, config_dir=None): import params env.set_params(params) install_spark() setup_spark(env, 'client', upgrade_type=upgrade_type, action='config')