Beispiel #1
0
 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')
Beispiel #2
0
 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)
Beispiel #3
0
 def start(self, env):
     import params
     env.set_params(params)
     install_spark()
     self.configure(env)
     spark_service('sparkthriftserver', action='start')
Beispiel #4
0
    def install(self, env):
        import params
        env.set_params(params)

        self.install_packages(env)
        install_spark()
Beispiel #5
0
    def install(self, env):
        import params
        env.set_params(params)

        install_spark()
Beispiel #6
0
 def install(self, env):
     install_spark()
     self.configure(env)
Beispiel #7
0
 def install(self, env):
     self.install_packages(env)
     install_spark()
     self.configure(env)
Beispiel #8
0
 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')