本文整理汇总了Python中service.service函数的典型用法代码示例。如果您正苦于以下问题:Python service函数的具体用法?Python service怎么用?Python service使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了service函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: stop
def stop(self, env):
import params
env.set_params(params)
service('nodemanager',
action='stop'
)
示例2: start
def start(self, env, rolling_restart=False):
import params
env.set_params(params)
self.configure(env)
supervisord_service("supervisor", action="start")
service("logviewer", action="start")
示例3: start
def start(self, env):
import params
env.set_params(params)
self.configure(env)
service("supervisor", action="start")
service("logviewer", action="start")
示例4: start
def start(self, env):
import params
env.set_params(params)
self.configure(env)
service('historyserver',
action='start'
)
示例5: start
def start(self, env):
import params
env.set_params(params)
self.configure(env) # FOR SECURITY
service('jobtracker',
action='start'
)
示例6: start
def start(self, env):
import params
env.set_params(params)
self.configure(env) # FOR SECURITY
copy_tarballs_to_hdfs("mapreduce", params.mapred_user, params.hdfs_user, params.user_group)
service("historyserver", action="start", serviceName="mapreduce")
示例7: start
def start(self, env, rolling_restart=False):
import params
env.set_params(params)
self.configure(env) # FOR SECURITY
service('timelineserver', action='start')
Links(params.new_yarn_log_path, params.yarn_log_path)
示例8: start
def start(self, env):
import params
env.set_params(params)
self.configure(env)
service("drpc", action="start")
示例9: start
def start(self, env):
import params
env.set_params(params)
self.configure(env) # FOR SECURITY
service('resourcemanager',
action='start'
)
示例10: stop
def stop(self, env, rolling_restart=False):
import params
env.set_params(params)
service('resourcemanager',
action='stop'
)
示例11: start
def start(self, env, rolling_restart=False):
import params
env.set_params(params)
self.configure(env) # FOR SECURITY
if params.has_ranger_admin and params.is_supported_yarn_ranger:
setup_ranger_yarn() #Ranger Yarn Plugin related calls
service('resourcemanager', action='start')
示例12: refreshqueues
def refreshqueues(self, env):
import params
self.configure(env)
env.set_params(params)
service('resourcemanager',
action='refreshQueues'
)
示例13: start
def start(self, env, rolling_restart=False):
import params
env.set_params(params)
self.configure(env) # FOR SECURITY
service('nodemanager',action='start')
Links(params.new_yarn_nodemanager_local_dirs_path, params.yarn_nodemanager_local_dirs_paths)
Links(params.new_yarn_nodemanager_log_dirs_path, params.yarn_nodemanager_log_dirs_paths)
Links(params.new_yarn_log_path, params.yarn_log_path)
示例14: start
def start(self, env, upgrade_type=None):
import params
env.set_params(params)
self.configure(env) # FOR SECURITY
if params.has_ranger_admin and params.is_supported_yarn_ranger:
setup_ranger_yarn() #Ranger Yarn Plugin related calls
# wait for active-dir and done-dir to be created by ATS if needed
if params.has_ats:
Logger.info("Verifying DFS directories where ATS stores time line data for active and completed applications.")
self.wait_for_dfs_directories_created(params.entity_groupfs_store_dir, params.entity_groupfs_active_dir)
service('resourcemanager', action='start')
示例15: main
def main():
config = ConfigParser.SafeConfigParser()
config.read('/opt/raumServiceDeamon/src/deamon.cfg')
dataPool = {'security': {'motion': False, 'door': False, 'motion_C': "CLOSED"}, 'weather': {'out': 0.0, 'rain': False, 'in': 0.0}}
checkRRD(config)
signal.signal(signal.SIGINT, kill_signal_handler)
signal.signal(signal.SIGTERM, kill_signal_handler)
#fillDummyData(dataPool) # DEBUG
t = UploadDeamon(config, dataPool)
t.start()
tem = temperatur(config, dataPool)
tem.start()
sec = security(config, dataPool, t)
sec.start()
gra = graph(config)
gra.start()
global ser
ser = service(dataPool)
ser.start()