Esempio n. 1
0
 def start(self, env, upgrade_type=None):
     import params
     env.set_params(params)
     install_hbase()
     self.configure(env)  # for security
     setup_ranger_hbase(upgrade_type=upgrade_type,
                        service_name="hbase-master")
     hbase_service('master', action='start')
Esempio n. 2
0
 def start(self, env, upgrade_type=None):
     import params
     env.set_params(params)
     install_hbase()
     self.configure(env)  # for security
     setup_ranger_hbase(upgrade_type=upgrade_type,
                        service_name="hbase-regionserver",
                        only_download=True)
     hbase_service('regionserver', action='start')
    def start(self, env, upgrade_type=None):
        import params
        env.set_params(params)
        install_hbase()
        self.configure(env)  # for security
        setup_ranger_hbase(upgrade_type=upgrade_type,
                           service_name="hbase-regionserver",
                           only_download=True)

        try:
            Execute('source ' + params.hbase_conf_dir + '/hbase-env.sh; ' +
                    params.hbase_conf_dir + '/hbase-regionserver restart 1 2 ')
        except:
            show_logs(params.log_dir, params.hbase_user)
            raise
Esempio n. 4
0
 def start(self, env, upgrade_type=None):
     import params
     env.set_params(params)
     install_hbase()
     self.configure(env)  # for security
     setup_ranger_hbase(upgrade_type=upgrade_type,
                        service_name="hbase-master")
     if params.enable_hbase_atlas_hook:
         Logger.info(
             "Hbase Atlas hook is enabled, configuring Atlas HBase Hook.")
         hbase_atlas_hook_file_path = os.path.join(
             params.hbase_conf_dir, params.atlas_hook_filename)
         setup_atlas_hook(SERVICE.HBASE, params.hbase_atlas_hook_properties,
                          hbase_atlas_hook_file_path, params.hbase_user,
                          params.user_group)
     else:
         Logger.info(
             "Hbase Atlas hook is disabled, skippking Atlas configurations."
         )
     hbase_service('master', action='start')
Esempio n. 5
0
 def start(self, env):
     import params
     env.set_params(params)
     install_hbase()
     self.configure(env)
     hbase_service('zookeeper', action='start')
Esempio n. 6
0
 def pre_upgrade_thriftart(self):
     install_hbase()
Esempio n. 7
0
 def install(self, env):
     import params
     env.set_params(params)
     install_hbase()
Esempio n. 8
0
 def pre_upgrade_restart(self, env, upgrade_type=None):
     install_hbase()
Esempio n. 9
0
 def install(self, env):
     import params
     env.set_params(params)
     self.install_packages(env)
     install_hbase()
Esempio n. 10
0
 def configure(self, env):
     import params
     env.set_params(params)
     install_hbase()
     hbase(name='client')
Esempio n. 11
0
 def install(self, env):
     import params
     env.set_params(params)
     install_hbase()
     self.configure(env)
Esempio n. 12
0
 def pre_upgrade_restart(self):
     install_hbase()