Esempio n. 1
0
def storm(name=None):
    import params
    yaml_config("storm.yaml",
                conf_dir=params.conf_dir,
                configurations=params.config['configurations']['storm-site'],
                owner=params.storm_user)

    if params.service_map.has_key(name):
        service_name = params.service_map[name]
        ServiceConfig(service_name,
                      action="change_user",
                      username=params.storm_user,
                      password=Script.get_password(params.storm_user))
Esempio n. 2
0
def storm(name=None):
  import params
  yaml_config("storm.yaml",
              conf_dir=params.conf_dir,
              configurations=params.config['configurations']['storm-site'],
              owner=params.storm_user
  )

  if params.service_map.has_key(name):
    service_name = params.service_map[name]
    ServiceConfig(service_name,
                  action="change_user",
                  username = params.storm_user,
                  password = Script.get_password(params.storm_user))