Skip to content

Conversation

@boneill42
Copy link
Contributor

What changes were proposed in this pull request?

When running with Kinesis Consumer Library (KCL), against a stream that contains aggregated data, the KCL needs access to protobuf to de-aggregate the records. Without this patch, that results in the following error message:

   Caused by: java.lang.ClassNotFoundException: com.google.protobuf.ProtocolStringList

This PR upgrades the protobuf dependency within the kinesis-asl-assembly, and relocates that package (as not to conflict with Spark's use of 2.5.0), which fixes the above CNFE.

How was this patch tested?

Used kinesis word count example against a stream containing aggregated data.

See: SPARK-14421

… relocates that dependency as not to conflict with Spark's use of 2.5.0.

See: SPARK-14421
@boneill42 boneill42 changed the title Upgrades protobuf dependency to 2.6.1 for the new version of KCL, and… [SPARK-14421] : Upgrades protobuf dependency to 2.6.1 for the new version of KCL, and… May 11, 2016
@vanzin
Copy link
Contributor

vanzin commented May 11, 2016

ok to test

@SparkQA
Copy link

SparkQA commented May 11, 2016

Test build #58389 has finished for PR 13054 at commit 0a532c3.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented May 12, 2016

Jenkins retest this please

@SparkQA
Copy link

SparkQA commented May 12, 2016

Test build #58477 has finished for PR 13054 at commit 0a532c3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

asfgit pushed a commit that referenced this pull request May 12, 2016
…on of KCL, and…

## What changes were proposed in this pull request?

When running with Kinesis Consumer Library (KCL), against a stream that contains aggregated data, the KCL needs access to protobuf to de-aggregate the records.   Without this patch, that results in the following error message:

```
   Caused by: java.lang.ClassNotFoundException: com.google.protobuf.ProtocolStringList
```

This PR upgrades the protobuf dependency within the kinesis-asl-assembly, and relocates that package (as not to conflict with Spark's use of 2.5.0), which fixes the above CNFE.

## How was this patch tested?

Used kinesis word count example against a stream containing aggregated data.

See: SPARK-14421

Author: Brian O'Neill <[email protected]>

Closes #13054 from boneill42/protobuf-relocation-for-kcl.

(cherry picked from commit 81e3bfc)
Signed-off-by: Sean Owen <[email protected]>
@srowen
Copy link
Member

srowen commented May 12, 2016

Merged to master/2.0

@asfgit asfgit closed this in 81e3bfc May 12, 2016
@boneill42 boneill42 deleted the protobuf-relocation-for-kcl branch May 12, 2016 19:37
dongjoon-hyun added a commit that referenced this pull request Feb 14, 2024
…rom `kinesis-asl-assembly`

### What changes were proposed in this pull request?

This PR aims to remove the shaded `protobuf-java` 2.6.1 dependency from `kinesis-asl-assembly`.

### Why are the changes needed?

Technically, this is a revert of SPARK-14421.
- At that time, Apache Spark 2.0.0 distribution contains `protobuf-java-2.5.0.jar`.
  - #13054
- SPARK-43489 removed `protobuf-java-2.5.0.jar` from Apache Spark 3.5+ distribution.
  - #41153

### Does this PR introduce _any_ user-facing change?

No, but the user can inject the required protobuf-jar from application layers.

### How was this patch tested?

Pass the CIs and manual review.

**BEFORE**
```
$ build/mvn dependency:tree -pl connector/kinesis-asl-assembly -Pkinesis-asl | grep protobuf-java
...
[INFO] +- com.google.protobuf:protobuf-java:jar:2.6.1:provided
```

**AFTER**
```
$ build/mvn dependency:tree -pl connector/kinesis-asl-assembly -Pkinesis-asl | grep protobuf-java
...
[INFO] |  |  +- com.google.protobuf:protobuf-java:jar:3.25.1:provided
```

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #45096 from dongjoon-hyun/SPARK-47038.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants