def stop(self, env): import params env.set_params(params) accumulo_service( self.component, action = 'stop' )
def start(self, env, upgrade_type=None): import params env.set_params(params) install_accumulo() self.configure(env) # for security accumulo_service(self.component, action='start')
def start(self, env): import params env.set_params(params) self.configure(env) # for security if self.component == 'master': Execute(format( "{daemon_script} init --instance-name {accumulo_instance_name} --password {accumulo_root_password} --clear-instance-name" ), not_if=format("hadoop fs -stat {accumulo_hdfs_root_dir}"), user=params.accumulo_user) accumulo_service(self.component, action='start')
def start(self, env): import params env.set_params(params) self.configure(env) # for security if self.component == 'master': Execute( format("{daemon_script} init --instance-name {accumulo_instance_name} --password {accumulo_root_password} --clear-instance-name"), not_if=format("hadoop fs -stat {accumulo_hdfs_root_dir}"), user=params.accumulo_user) accumulo_service( self.component, action = 'start' )
class AccumuloScript(Script): def __init__(self, component): self.component = component def install(self, env): self.install_packages(env) def configure(self, env): import params env.set_params(params) setup_conf_dir(name=self.component) def start(self, env): import params env.set_params(params) self.configure(env) # for security if self.component == 'master': try: Execute( format("{daemon_script} init --instance-name {accumulo_instance_name} --password {accumulo_root_password} --clear-instance-name >{log_dir}/accumulo-{accumulo_user}-init.out 2>{log_dir}/accumulo-{accumulo_user}-init.err"), not_if=format("{hadoop_prefix}/bin/hadoop fs -stat {accumulo_hdfs_root_dir}"), user=params.accumulo_user) except Exception, e: try: Execute( format("{hadoop_prefix}/bin/hadoop fs -rm -R {accumulo_hdfs_root_dir}"), user=params.accumulo_user) except: pass raise e accumulo_service( self.component, action = 'start' )
def stop(self, env, upgrade_type=None): import params env.set_params(params) accumulo_service(self.component, action='stop')
def stop(self, env, rolling_restart=False): import params env.set_params(params) accumulo_service( self.component, action = 'stop')
def start(self, env, rolling_restart=False): import params env.set_params(params) self.configure(env) # for security accumulo_service( self.component, action = 'start')
def start(self, env): import params env.set_params(params) self.configure(env) # for security accumulo_service(self.component, action='start')
def stop(self, env, rolling_restart=False): import params env.set_params(params) accumulo_service(self.component, action='stop')