/** * Push a new set of credentials to the running topology. * * @param name the name of the topology to push credentials to. * @param topoConf the topology-specific configuration, if desired. See {@link Config}. * @param credentials the credentials to push. * @throws AuthorizationException if you are not authorized ot push credentials. * @throws NotAliveException if the topology is not alive * @throws InvalidTopologyException if any other error happens */ public static void pushCredentials(String name, Map<String,Object> topoConf, Map<String,String> credentials) throws AuthorizationException, NotAliveException, InvalidTopologyException { pushCredentials(name, topoConf, credentials, null); }
StormSubmitter.pushCredentials(topologyName, topologyConf, credentialsMap, (String) cl.get("u")); LOG.info("Uploaded new creds to topology: {}", topologyName);