예제 #1
0
 def start(self, env):
     import params
     env.set_params(params)
     elasticsearch()
     print 'Install plugins'
     output = os.system(
         "/usr/share/elasticsearch/bin/plugin -DproxyHost= -DproxyPort=8080 --install mobz/elasticsearch-head"
     )
     print output
     output = os.system(
         "/usr/share/elasticsearch/bin/plugin -DproxyHost= -DproxyPort=8080 --install elasticsearch/elasticsearch-repository-hdfs/2.1.0.Beta4-hadoop2"
     )
     print output
     output = os.system(
         "/usr/share/elasticsearch/bin/plugin -DproxyHost= -DproxyPort=8080 --install royrusso/elasticsearch-HQ"
     )
     print output
     output = os.system("mkdir /mnt/es_data")
     print output
     output = os.system("chown elasticsearch:elasticsearch /mnt/es_data")
     print output
     cmd = format("/etc/init.d/elasticsearch start")
     Execute(cmd,
             user=params.es_user,
             path='/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin',
             logoutput=True)
예제 #2
0
 def start(self, env):
   import params
   env.set_params(params)
   if not params.is_es_master and not params.is_es_indexer:
     elasticsearch(action='config')
     self.configure(env)
     elasticsearch(action='start')
   kibana(action='start')
예제 #3
0
 def start(self, env):
     import params
     env.set_params(params)
     if not params.is_es_master and not params.is_es_indexer:
         elasticsearch(action='config')
         self.configure(env)
         elasticsearch(action='start')
     kibana(action='start')
    def start(self, env):
        import params
        env.set_params(params)
        elasticsearch()
        print 'Install plugins';
        output = os.system("/usr/share/elasticsearch/bin/plugin -DproxyHost= -DproxyPort=8080 --install mobz/elasticsearch-head")
        print output
        output = os.system("/usr/share/elasticsearch/bin/plugin -DproxyHost= -DproxyPort=8080 --install elasticsearch/elasticsearch-repository-hdfs/2.1.0.Beta4-hadoop2")
        print output
	output = os.system("/usr/share/elasticsearch/bin/plugin -DproxyHost= -DproxyPort=8080 --install royrusso/elasticsearch-HQ")
	print output
	output = os.system("mkdir /mnt/es_data")
	print output
	output = os.system("chown elasticsearch:elasticsearch /mnt/es_data")
	print output
        cmd = format("/etc/init.d/elasticsearch start")
        Execute(cmd,
                user=params.es_user,
                path='/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin',
                logoutput=True) 
예제 #5
0
 def start(self, env):
   import params
   env.set_params(params)
   self.configure(env)
   elasticsearch(action='start')
예제 #6
0
 def configure(self, env):
   import params
   env.set_params(params)
   elasticsearch(action='config')
예제 #7
0
 def status(self, env):
     elasticsearch(action='status')
예제 #8
0
 def stop(self, env):
     import params
     if not params.is_es_master:
         elasticsearch(action='stop')
예제 #9
0
 def start(self, env):
     import params
     if not params.is_es_master:
         env.set_params(params)
         self.configure(env)
         elasticsearch(action='start')
예제 #10
0
 def stop(self, env):
     elasticsearch(action='stop')
예제 #11
0
 def stop(self, env):
   import params
   if not params.is_es_master and not params.is_es_indexer:
     elasticsearch(action='stop')
   kibana(action='stop')
예제 #12
0
 def stop(self, env):
   import params
   if not params.is_es_master:
     elasticsearch(action='stop')
예제 #13
0
 def start(self, env):
   import params
   if not params.is_es_master:
     env.set_params(params)
     self.configure(env)
     elasticsearch(action='start')
예제 #14
0
 def stop(self, env):
   import params
   if not params.is_es_master and not params.is_es_indexer:
     elasticsearch(action='stop')
   kibana(action='stop')
예제 #15
0
 def stop(self, env):
   elasticsearch(action='stop')
예제 #16
0
 def configure(self, env):
     import params
     env.set_params(params)
     elasticsearch(action='config')
예제 #17
0
 def status(self, env):
   elasticsearch(action='status')
예제 #18
0
 def start(self, env):
     import params
     env.set_params(params)
     self.configure(env)
     elasticsearch(action='start')