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

        self.install_packages(env)
        install_spark()
コード例 #5
0
    def install(self, env):
        import params
        env.set_params(params)

        install_spark()
コード例 #6
0
 def install(self, env):
     install_spark()
     self.configure(env)
コード例 #7
0
 def install(self, env):
     self.install_packages(env)
     install_spark()
     self.configure(env)
コード例 #8
0
ファイル: spark_client.py プロジェクト: tsingfu/bigdata
 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')