GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Netty incompatibility when using Pub/Sub with Dataproc · Issue #1522 · googleapis/google-cloud-java

Netty incompatibility when using Pub/Sub with Dataproc #1522

New issue
Copy link
New issue
Copy link
Closed
Closed
Netty incompatibility when using Pub/Sub with Dataproc#1522
Copy link
Assignees
garrettjonesgoogle
Labels
api: pubsubIssues related to the Pub/Sub API.dependenciespriority: p2Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.triaged for GAtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@nsphung
nsphung
opened on Jan 11, 2017
Issue body actions

I'm trying to send messages from Spark Google Dataproc to Google PubSub. But I'm stuck with the following errors when trying to initialize the PubSub client:

17/01/10 15:12:28 WARN org.apache.spark.scheduler.TaskSetManager: Lost task 1.0 in stage 0.0 (TID 1, fca-cluster-dev-w-1.c.fcms-sandbox-gce.internal): java.lang.NoSuchMethodError: io.netty.util.AttributeKey.valueOf(Ljava/lang/Class;Ljava/lang/String;)Lio/netty/util/AttributeKey;
    at io.grpc.netty.Utils.<clinit>(Utils.java:85)
    at io.grpc.netty.NettyChannelBuilder$NettyTransportFactory.<init>(NettyChannelBuilder.java:311)
    at io.grpc.netty.NettyChannelBuilder$NettyTransportFactory.<init>(NettyChannelBuilder.java:280)
    at io.grpc.netty.NettyChannelBuilder.buildTransportFactory(NettyChannelBuilder.java:230)
    at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:239)
    at com.google.api.gax.grpc.InstantiatingChannelProvider.createChannel(InstantiatingChannelProvider.java:119)
    at com.google.api.gax.grpc.InstantiatingChannelProvider.getChannel(InstantiatingChannelProvider.java:106)
    at com.google.api.gax.grpc.ProviderManager.getChannel(ProviderManager.java:106)
    at com.google.api.gax.grpc.ChannelAndExecutor.create(ChannelAndExecutor.java:67)
    at com.google.api.gax.grpc.ClientSettings.getChannelAndExecutor(ClientSettings.java:78)
    at com.google.cloud.pubsub.spi.v1.PublisherClient.<init>(PublisherClient.java:182)
    at com.google.cloud.pubsub.spi.v1.PublisherClient.create(PublisherClient.java:173)
    at com.google.cloud.pubsub.spi.DefaultPubSubRpc.<init>(DefaultPubSubRpc.java:168)
    at com.google.cloud.pubsub.PubSubOptions$DefaultPubSubRpcFactory.create(PubSubOptions.java:69)
    at com.google.cloud.pubsub.PubSubOptions$DefaultPubSubRpcFactory.create(PubSubOptions.java:63)
    at com.google.cloud.ServiceOptions.getRpc(ServiceOptions.java:482)
    at com.google.cloud.pubsub.PubSubImpl.<init>(PubSubImpl.java:115)
    at com.google.cloud.pubsub.PubSubOptions$DefaultPubSubFactory.create(PubSubOptions.java:44)
    at com.google.cloud.pubsub.PubSubOptions$DefaultPubSubFactory.create(PubSubOptions.java:39)
    at com.google.cloud.ServiceOptions.getService(ServiceOptions.java:469)
    at services.PubSubService$.<init>(PubSubService.scala:14)
    at services.PubSubService$.<clinit>(PubSubService.scala)
    at Main$$anonfun$createContext$5$$anonfun$apply$1.apply(Main.scala:93)
    at Main$$anonfun$createContext$5$$anonfun$apply$1.apply(Main.scala:92)
    at scala.collection.Iterator$class.foreach(Iterator.scala:893)
    at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
    at org.apache.spark.rdd.RDD$$anonfun$foreach$1$$anonfun$apply$27.apply(RDD.scala:894)
    at org.apache.spark.rdd.RDD$$anonfun$foreach$1$$anonfun$apply$27.apply(RDD.scala:894)
    at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1899)
    at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1899)
    at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:70)
    at org.apache.spark.scheduler.Task.run(Task.scala:86)
    at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:274)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

The client initialization is as follow:

 val pubsub: PubSub = PubSubOptions.getDefaultInstance().getService()

I look around and it's an issue between the netty version of Spark Google Dataproc netty-all-4.0.29.Final vs the one on google-cloud-pubsub (com.google.cloud) library in netty-all-4.1.3.Final. Did anyone manage to resolve this ?

Same issue as #1331 but with Google Dataproc (Spark).

Regards,

Activity

  1. garrettjonesgoogle
    added
    api: pubsubIssues related to the Pub/Sub API.
    on Jan 13, 2017
  2. garrettjonesgoogle
    added
    triaged for beta
    on Feb 23, 2017
  3. lesv
    added
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Feb 24, 2017
  4. lesv commented on Feb 24, 2017

    @lesv
    lesv
    on Feb 24, 2017
    Contributor
    More actions

    Dataproc and Dataflow should be considered important use cases of Pub/Sub. They may, however, have their own way of doing things. (at least Dataflow)

  5. garrettjonesgoogle commented on Mar 10, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Mar 10, 2017
    Contributor
    More actions

    The resolution for this issue may be the same as for #1331 (shading netty).

  6. garrettjonesgoogle
    added
    dependencies
    and removed
    triaged for beta
    on Mar 10, 2017
  7. garrettjonesgoogle
    added
    status: blockedResolving the issue is dependent on other work.
    on May 31, 2017
  8. garrettjonesgoogle
    changed the title [-]Using Pub/Sub with Dataproc[/-] [+]Netty incompatibility when using Pub/Sub with Dataproc[/+] on Aug 11, 2017
  9. anthmgoogle
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Nov 9, 2017
  10. anthmgoogle
    assigned
    garrettjonesgoogle
    on Nov 9, 2017
  11. anthmgoogle
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    and removed
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Nov 9, 2017
  12. danoscarmike
    added
    triaged for GA
    on Jan 17, 2018
  13. pongad commented on Jan 18, 2018

    @pongad
    pongad
    on Jan 18, 2018
    Contributor
    More actions

    I'll consider this duplicate of #1331. Please reopen if you believe otherwise.

  14. pongad
    closed this as completedon Jan 18, 2018
  15. github-actions
    added a commit that references this issue on Oct 4, 2022

    chore(bazel): update protobuf to v3.21.7 (#1522)

    c225cb6
  16. meltsufin
    added a commit that references this issue on Dec 22, 2025

    chore(deps): update dependency com.google.cloud:google-cloud-logging …

    538fef8
  17. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore(main): release 1.28.1-SNAPSHOT (#1522)

    08284f0
  18. suztomo
    added a commit that references this issue on Mar 11, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-logging …

    be53c25
  19. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore(main): release 1.28.1-SNAPSHOT (#1522)

    8cc0b07
  20. suztomo
    added a commit that references this issue on Mar 23, 2026

    deps: update dependency com.google.cloud:sdk-platform-java-config to …

    c4b8005
  21. suztomo
    added 2 commits that reference this issue on Mar 30, 2026

    deps: update dependency com.google.cloud:google-cloud-storage to v2.4…

    219bc0e

    chore(main): release 0.127.29 (#1518)

    54f5c50
  22. lqiu96
    added 2 commits that reference this issue on Apr 1, 2026

    deps: update dependency com.google.cloud:google-cloud-storage to v2.4…

    697ea14

    chore(main): release 0.127.29 (#1518)

    5f197ec
  23. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    fix: set x-goog-request-params for streaming pull request (#1522)

    52e23d6

    fix: set x-goog-request-params for streaming pull request (#1522)

    0f0f776
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

Labels

api: pubsubIssues related to the Pub/Sub API.dependenciespriority: p2Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.triaged for GAtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.