use of com.hortonworks.streamline.streams.storm.common.StormJaasCreator in project streamline by hortonworks.
the class StormTopologyActionsImpl method createJaasFile.
private String createJaasFile(String kerberizedNimbusServiceName) {
try {
Path jaasFilePath = Files.createTempFile("jaas-", UUID.randomUUID().toString());
String filePath = jaasFilePath.toAbsolutePath().toString();
File jaasFile = new StormJaasCreator().create(filePath, kerberizedNimbusServiceName);
return jaasFile.getAbsolutePath();
} catch (IOException e) {
throw new RuntimeException("Can't create JAAS file to connect to secure nimbus", e);
}
}
Aggregations