Skip to content

Commit

Permalink
Removes some unnecessary dependencies in the S3 sink and Parquet code…
Browse files Browse the repository at this point in the history
…cs (opensearch-project#3275)

Removes some unnecessary dependencies in the S3 sink and Parquet codec projects. Updating the Parquet version to 1.13.1 consistently. Exclude HDFS client.

Signed-off-by: David Venable <[email protected]>
  • Loading branch information
dlvenable authored Aug 29, 2023
1 parent 14ec2e4 commit 005f2aa
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 31 deletions.
2 changes: 1 addition & 1 deletion data-prepper-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies {
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.2'
implementation 'org.apache.parquet:parquet-common:1.12.3'
implementation 'org.apache.parquet:parquet-common:1.13.1'
testImplementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml'
implementation libs.commons.lang3
testImplementation testLibs.junit.vintage
Expand Down
2 changes: 1 addition & 1 deletion data-prepper-plugins/avro-codecs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
dependencies {
implementation project(path: ':data-prepper-api')
implementation 'org.apache.avro:avro:1.11.1'
implementation 'org.apache.parquet:parquet-common:1.12.3'
implementation 'org.apache.parquet:parquet-common:1.13.1'
implementation 'software.amazon.awssdk:s3'
implementation 'software.amazon.awssdk:apache-client'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
Expand Down
2 changes: 1 addition & 1 deletion data-prepper-plugins/common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies {
implementation 'org.reflections:reflections:0.10.2'
implementation 'io.micrometer:micrometer-core'
testImplementation testLibs.junit.vintage
implementation 'org.apache.parquet:parquet-common:1.12.3'
implementation 'org.apache.parquet:parquet-common:1.13.1'
implementation 'org.xerial.snappy:snappy-java:1.1.10.3'
testImplementation project(':data-prepper-plugins:blocking-buffer')
testImplementation 'commons-io:commons-io:2.12.0'
Expand Down
2 changes: 1 addition & 1 deletion data-prepper-plugins/csv-processor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies {
implementation project(':data-prepper-api')
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-csv'
implementation 'io.micrometer:micrometer-core'
implementation 'org.apache.parquet:parquet-common:1.12.3'
implementation 'org.apache.parquet:parquet-common:1.13.1'
implementation 'software.amazon.awssdk:s3'
implementation 'software.amazon.awssdk:apache-client'
testImplementation project(':data-prepper-plugins:log-generator-source')
Expand Down
7 changes: 2 additions & 5 deletions data-prepper-plugins/newline-codecs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ repositories {

dependencies {
implementation project(':data-prepper-api')
implementation 'com.fasterxml.jackson.core:jackson-core'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'org.apache.parquet:parquet-common:1.12.3'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
implementation 'com.fasterxml.jackson.core:jackson-annotations'
implementation 'org.apache.parquet:parquet-common:1.13.1'
testImplementation project(':data-prepper-plugins:common')
}

Expand Down
19 changes: 7 additions & 12 deletions data-prepper-plugins/parquet-codecs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@ dependencies {
implementation project(':data-prepper-api')
implementation project(':data-prepper-plugins:common')
implementation 'org.apache.avro:avro:1.11.0'
implementation 'software.amazon.awssdk:s3'
implementation 'software.amazon.awssdk:apache-client'
implementation 'org.apache.hadoop:hadoop-common:3.3.5'
implementation 'org.apache.hadoop:hadoop-hdfs-client:3.3.5'
implementation 'org.apache.hadoop:hadoop-yarn-client:3.3.5'
implementation 'org.apache.hadoop:hadoop-yarn-common:3.3.5'
implementation 'org.apache.hadoop:hadoop-mapreduce-client-core:3.3.5'
implementation 'org.apache.parquet:parquet-avro:1.12.3'
implementation 'org.apache.parquet:parquet-column:1.12.3'
implementation 'org.apache.parquet:parquet-common:1.12.3'
implementation 'org.apache.parquet:parquet-hadoop:1.12.3'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
implementation('org.apache.hadoop:hadoop-mapreduce-client-core:3.3.5') {
exclude group: 'org.apache.hadoop', module: 'hadoop-hdfs-client'
}
implementation 'org.apache.parquet:parquet-avro:1.13.1'
implementation 'org.apache.parquet:parquet-column:1.13.1'
implementation 'org.apache.parquet:parquet-common:1.13.1'
implementation 'org.apache.parquet:parquet-hadoop:1.13.1'
testImplementation project(':data-prepper-test-common')
}

Expand Down
2 changes: 1 addition & 1 deletion data-prepper-plugins/parse-json-processor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies {
implementation project(':data-prepper-api')
implementation project(':data-prepper-plugins:common')
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'org.apache.parquet:parquet-common:1.12.3'
implementation 'org.apache.parquet:parquet-common:1.13.1'
testImplementation project(':data-prepper-test-common')
}

Expand Down
14 changes: 5 additions & 9 deletions data-prepper-plugins/s3-source/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-csv'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2'
implementation 'org.xerial.snappy:snappy-java:1.1.10.1'
implementation 'org.apache.parquet:parquet-common:1.12.3'
implementation 'org.apache.parquet:parquet-common:1.13.1'
implementation 'dev.failsafe:failsafe:3.3.2'
implementation 'org.apache.httpcomponents:httpcore:4.4.15'
testImplementation libs.commons.lang3
Expand All @@ -48,14 +48,10 @@ dependencies {
testImplementation project(':data-prepper-plugins:parquet-codecs')
testImplementation 'org.apache.avro:avro:1.11.0'
testImplementation 'org.apache.hadoop:hadoop-common:3.3.5'
testImplementation 'org.apache.hadoop:hadoop-hdfs-client:3.3.5'
testImplementation 'org.apache.hadoop:hadoop-yarn-client:3.3.5'
testImplementation 'org.apache.hadoop:hadoop-yarn-common:3.3.5'
testImplementation 'org.apache.hadoop:hadoop-mapreduce-client-core:3.3.5'
testImplementation 'org.apache.parquet:parquet-avro:1.12.3'
testImplementation 'org.apache.parquet:parquet-column:1.12.3'
testImplementation 'org.apache.parquet:parquet-common:1.12.3'
testImplementation 'org.apache.parquet:parquet-hadoop:1.12.3'
testImplementation 'org.apache.parquet:parquet-avro:1.13.1'
testImplementation 'org.apache.parquet:parquet-column:1.13.1'
testImplementation 'org.apache.parquet:parquet-common:1.13.1'
testImplementation 'org.apache.parquet:parquet-hadoop:1.13.1'
constraints {
testImplementation('org.eclipse.jetty:jetty-bom') {
version {
Expand Down

0 comments on commit 005f2aa

Please sign in to comment.