コード例 #1
0
ファイル: drill.py プロジェクト: Imperat/sahara
 def post_start(self, cluster_context, instances):
     instances = instances or cluster_context.get_instances(DRILL)
     super(Drill, self).install(cluster_context, instances)
     for instance in instances:
         cmd.chown(instance, 'mapr:mapr', self.service_dir(cluster_context))
         cmd.re_configure_sh(instance, cluster_context)
コード例 #2
0
 def post_install(self, cluster_context, instances):
     impalas = cluster_context.filter_instances(instances, IMPALA_SERVER)
     for instance in impalas:
         cmd.chown(instance, 'mapr:mapr', self.service_dir(cluster_context))
コード例 #3
0
 def post_start(self, cluster_context, instances):
     instances = instances or cluster_context.get_instances(DRILL)
     super(Drill, self).install(cluster_context, instances)
     for instance in instances:
         cmd.chown(instance, 'mapr:mapr', self.service_dir(cluster_context))
         cmd.re_configure_sh(instance, cluster_context)
コード例 #4
0
ファイル: impala.py プロジェクト: egafford/sahara
 def post_install(self, cluster_context, instances):
     impalas = cluster_context.filter_instances(instances, IMPALA_SERVER)
     for instance in impalas:
         cmd.chown(instance, "mapr:mapr", self.service_dir(cluster_context))
コード例 #5
0
ファイル: management.py プロジェクト: msionkin/sahara
 def post_install(self, cluster_context, instances):
     instance = cluster_context.get_instance(WEB_SERVER)
     cmd.chown(instance, 'mapr:mapr', self.SSL_KEYSTORE)
コード例 #6
0
ファイル: httpfs.py プロジェクト: lhcxx/sahara
 def post_install(self, cluster_context, instances):
     instance = cluster_context.get_instance(HTTP_FS)
     cmd.chown(instance, 'mapr:mapr', self.service_dir(cluster_context))
コード例 #7
0
ファイル: httpfs.py プロジェクト: AlexanderYAPPO/sahara
 def post_install(self, cluster_context, instances):
     instance = cluster_context.get_instance(HTTP_FS)
     cmd.chown(instance, 'mapr:mapr', self.service_dir(cluster_context))
コード例 #8
0
ファイル: sqoop2.py プロジェクト: AlexanderYAPPO/sahara
 def post_install(self, context, instances):
     sqoop_servers = context.filter_instances(instances, SQOOP_2_SERVER)
     for instance in sqoop_servers:
         cmd.chown(instance, 'mapr:mapr', self.service_dir(context))
コード例 #9
0
ファイル: service.py プロジェクト: madar010/mad
 def _set_service_dir_owner(self, cluster_context, instances):
     service_instances = cluster_context.filter_instances(instances,
                                                          service=self)
     LOG.debug("Changing %s service dir owner", self.ui_name)
     for instance in service_instances:
         cmd.chown(instance, 'mapr:mapr', self.service_dir(cluster_context))
コード例 #10
0
ファイル: sqoop2.py プロジェクト: lhcxx/sahara
 def post_install(self, context, instances):
     sqoop_servers = context.filter_instances(instances, SQOOP_2_SERVER)
     for instance in sqoop_servers:
         cmd.chown(instance, 'mapr:mapr', self.service_dir(context))