Skip to content

Commit

Permalink
deploy(cdp): add 7.1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
frischHWC committed Mar 25, 2021
1 parent e5e9f1d commit eb24dc6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- Check your EXACT version of CDP as all platform jars depends on it -->
<cdp.version>7.1.5.0-257</cdp.version>
<cdp.version>7.1.6.0-297</cdp.version>
</properties>

<!-- Cloudera repository needed to get good CDP versions of jars -->
Expand Down Expand Up @@ -99,12 +99,12 @@
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>2.4.1.${cdp.version}</version>
<version>2.5.0.${cdp.version}</version>
</dependency>
<dependency>
<groupId>com.hortonworks.registries</groupId>
<artifactId>schema-registry-serdes</artifactId>
<version>0.8.1.${cdp.version}</version>
<version>0.10.0.${cdp.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,24 @@ public void deleteEverythingUnderAVolume(String volumeName) {

volume.listBuckets("bucket").forEachRemaining(bucket -> {
logger.debug("Deleting everything in bucket: " + bucket.getName() + " in volume: " + volumeName);
bucket.listKeys(null).forEachRemaining(key -> {
try {
logger.debug("Deleting key: " + key.getName() + " in bucket: " + bucket.getName() + " in volume: " + volumeName);
bucket.deleteKey(key.getName());
} catch (IOException e) {
logger.error("cannot delete key : " + key.getName() + " in bucket: " + bucket.getName() + " in volume: " + volumeName + " due to error: ", e);
}
});
try {
bucket.listKeys(null).forEachRemaining(key -> {
try {
logger.debug("Deleting key: " + key.getName() +
" in bucket: " + bucket.getName() +
" in volume: " + volumeName);
bucket.deleteKey(key.getName());
} catch (IOException e) {
logger.error(
"cannot delete key : " + key.getName() +
" in bucket: " + bucket.getName() +
" in volume: " + volumeName +
" due to error: ", e);
}
});
} catch (IOException e) {
logger.error("Could not list keys in bucket " + bucket.getName() + " in volume: " + volumeName);
}
try {
volume.deleteBucket(bucket.getName());
} catch (IOException e) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ hadoop.user=dev
hadoop.home=/user/dev

kerberos.auth=true
kerberos.user=dev@NLAILLE.COM
kerberos.user=dev@FRISCH.COM
kerberos.keytab=/home/dev/dev.keytab

truststore.location=/opt/cloudera/security/pki/truststore.jks
Expand All @@ -17,7 +17,7 @@ truststore.password=cloudera
file.one.per.iteration=true

# HDFS
hdfs.uri=hdfs://nlaillecdp:8020/
hdfs.uri=hdfs://:8020/
hdfs.auth.kerberos=${kerberos.auth}
# It is not needed to fill below configuration if KERBEROS is not activated
hdfs.auth.kerberos.user=${kerberos.user}
Expand Down

0 comments on commit eb24dc6

Please sign in to comment.