Exemplo n.º 1
0
    def start(self, env, rolling_restart=False):
        import params

        env.set_params(params)
        self.configure(env)  # for security
        setup_ranger_hbase(rolling_upgrade=rolling_restart)
        hbase_service("master", action="start")
Exemplo n.º 2
0
  def start(self, env, upgrade_type=None):
    import params
    env.set_params(params)
    self.configure(env) # for security
    setup_ranger_hbase(upgrade_type=upgrade_type, service_name="hbase-regionserver")

    hbase_service('regionserver', action='start')
Exemplo n.º 3
0
 def start(self, env, rolling_restart=False):
   import params
   env.set_params(params)
   self.configure(env) # for security
   setup_ranger_hbase()  
   hbase_service( 'regionserver',
     action = 'start'
   )
 def start(self, env, upgrade_type=None):
   import params
   env.set_params(params)
   self.configure(env) # for security
   setup_ranger_hbase(upgrade_type=upgrade_type)
   hbase_service( 'regionserver',
     action = 'start'
   )
Exemplo n.º 5
0
  def start(self, env, rolling_restart=False):
    import params
    env.set_params(params)
    self.configure(env) # for security
    setup_ranger_hbase()  
    hbase_service( 'master',
      action = 'start'
    )

    Links(params.new_hbase_log_path, params.hbase_log_path)
Exemplo n.º 6
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)

        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
Exemplo n.º 7
0
 def start(self, env, upgrade_type=None):
     import params
     env.set_params(params)
     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')
Exemplo n.º 8
0
 def start(self, env, upgrade_type=None):
     import params
     env.set_params(params)
     self.configure(env)  # for security
     setup_ranger_hbase(upgrade_type=upgrade_type)
     hbase_service('master', action='start')