Search in sources :

Example 1 with SdxClient

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");
    }
}
Also used : EnvironmentClient(com.sequenceiq.environment.client.EnvironmentClient) SdxClient(com.sequenceiq.sdx.client.SdxClient)

Aggregations

EnvironmentClient (com.sequenceiq.environment.client.EnvironmentClient)1 SdxClient (com.sequenceiq.sdx.client.SdxClient)1