use of com.sequenceiq.sdx.client.SdxClient in project cloudbreak by hortonworks.
the class CleanupUtil method cleanupSdxes.
public void cleanupSdxes() {
SdxClient sdxClient = createSdxClient();
EnvironmentClient environmentClient = createEnvironmentClient();
List<String> foundSdxNames = getSdxes(environmentClient, sdxClient);
setSdxClient(sdxClient);
LOG.info("Found data lakes (sdxes): '{}'", foundSdxNames);
if (!foundSdxNames.isEmpty()) {
deleteResources(foundSdxNames, "sdxName");
} else {
LOG.info("Cannot find any sdx");
}
}
Aggregations