我正在使用 kafka_2.11-0.10.2.1
以及谷歌提供的pubsub连接器。我只想用一个独立的连接器将数据从Kafka主题推送到pubsub主题。我按照我应该遵循的所有步骤:
生产 cps-kafka-connector.jar
添加了 cps-sink-connector.properties
Kafka的档案 config
目录。文件如下所示:
name=CPSConnector
connector.class=com.google.pubsub.kafka.sink.CloudPubSubSinkConnector
tasks.max=10
topics=kafka_topic
cps.topic=pubsub_topic
cps.project=my_gcp_project_12345
我确定我正在启用 string
转换器输入 connect-standalone.properties
因为我的目的是只发送字符串消息:
key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter
我创建了一个主题 kafka_topic
并发送了如下消息:
$ bin/kafka-console-producer.sh --broker-list localhost:9092 --topic kafka_topic
$ hello streams
$ kafka streams rock
我按如下方式运行连接器:
$ bin/connect-standalone.sh config/connect-standalone.properties config/cps-sink-connector.properties
目的是为了逃跑:
$ gcloud beta pubsub subscriptions pull subscription_to_pubsub_topic
收集这些信息。然而,下面的错误发生了,我无法绕过它们。
他们似乎与 jetty-9.2.15.v20160210
. 注意:
[2017-05-04 22:42:26,635] ERROR Commit of WorkerSinkTask{id=CPSConnector-0} offsets threw an unexpected exception:(org.apache.kafka.connect.runtime.WorkerSinkTask:204)
java.lang.RuntimeException: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNKNOWN
以及
Caused by: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNKNOWN ...
Caused by: io.grpc.StatusRuntimeException: UNKNOWN ...
Caused by: java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured ...
有什么想法吗?如何配置jetty?我在这里读到一篇文章说:
现在还没有一个标准的java版本内置了对alpn的支持(有一个跟踪问题,所以去投票吧!)因此,我们需要为openjdk使用jetty alpn(或者jetty npn,如果java<8)bootclasspath扩展。为此,添加一个xbootclasspath jvm选项,引用jetty alpn引导jar的路径。
java -Xbootclasspath/p:/path/to/jetty/alpn/extension.jar ...
注意,您必须使用特定于您所使用的java版本的jetty alpn jar版本。但是,可以使用jvm代理jeety alpn代理为当前java版本加载正确的jetty alpn引导jar文件。为此,不要添加xbootclasspath选项,而是添加一个javaagent jvm选项,该选项引用jetty alpn代理jar的路径。
java -javaagent:/path/to/jetty-alpn-agent.jar ...
…但我真的不知道如何解释我的配置。有什么想法吗?部分错误日志如下所示:
...
name = CPSConnector
tasks.max = 10
transforms = null
value.converter = null
(org.apache.kafka.connect.runtime.ConnectorConfig:180)
[2017-05-04 22:42:17,447] INFO TaskConfig values:
task.class = class com.google.pubsub.kafka.sink.CloudPubSubSinkTask
(org.apache.kafka.connect.runtime.TaskConfig:180)
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@6fda6170] Created with target pubsub.googleapis.com:443
[2017-05-04 22:42:17,447] INFO Instantiated task CPSConnector-7 with version 0.10.2.1 of type com.google.pubsub.kafka.sink.CloudPubSubSinkTask (org.apache.kafka.connect.runtime.Worker:317)
[2017-05-04 22:42:17,451] INFO ConsumerConfig values:
auto.commit.interval.ms = 5000
auto.offset.reset = earliest
bootstrap.servers = [localhost:9092]
check.crcs = true
client.id =
connections.max.idle.ms = 540000
enable.auto.commit = false
exclude.internal.topics = true
fetch.max.bytes = 52428800
fetch.max.wait.ms = 500
fetch.min.bytes = 1
group.id = connect-CPSConnector
heartbeat.interval.ms = 3000
interceptor.classes = null
key.deserializer = class org.apache.kafka.common.serialization.ByteArrayDeserializer
max.partition.fetch.bytes = 1048576
max.poll.interval.ms = 300000
max.poll.records = 500
metadata.max.age.ms = 300000
metric.reporters = []
metrics.num.samples = 2
metrics.recording.level = INFO
metrics.sample.window.ms = 30000
partition.assignment.strategy = [class org.apache.kafka.clients.consumer.RangeAssignor]
receive.buffer.bytes = 65536
reconnect.backoff.ms = 50
request.timeout.ms = 305000
retry.backoff.ms = 100
sasl.jaas.config = null
sasl.kerberos.kinit.cmd = /usr/bin/kinit
sasl.kerberos.min.time.before.relogin = 60000
sasl.kerberos.service.name = null
sasl.kerberos.ticket.renew.jitter = 0.05
sasl.kerberos.ticket.renew.window.factor = 0.8
sasl.mechanism = GSSAPI
security.protocol = PLAINTEXT
send.buffer.bytes = 131072
session.timeout.ms = 10000
ssl.cipher.suites = null
ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
ssl.endpoint.identification.algorithm = null
ssl.key.password = null
ssl.keymanager.algorithm = SunX509
ssl.keystore.location = null
ssl.keystore.password = null
ssl.keystore.type = JKS
ssl.protocol = TLS
ssl.provider = null
ssl.secure.random.implementation = null
ssl.trustmanager.algorithm = PKIX
ssl.truststore.location = null
ssl.truststore.password = null
ssl.truststore.type = JKS
value.deserializer = class org.apache.kafka.common.serialization.ByteArrayDeserializer
(org.apache.kafka.clients.consumer.ConsumerConfig:180)
[2017-05-04 22:42:17,461] INFO Kafka version : 0.10.2.1 (org.apache.kafka.common.utils.AppInfoParser:83)
[2017-05-04 22:42:17,461] INFO Kafka commitId : e89bffd6b2eff799 (org.apache.kafka.common.utils.AppInfoParser:84)
[2017-05-04 22:42:17,462] INFO Creating task CPSConnector-8 (org.apache.kafka.connect.runtime.Worker:305)
[2017-05-04 22:42:17,463] INFO ConnectorConfig values:
connector.class = com.google.pubsub.kafka.sink.CloudPubSubSinkConnector
key.converter = null
name = CPSConnector
tasks.max = 10
transforms = null
value.converter = null
(org.apache.kafka.connect.runtime.ConnectorConfig:180)
[2017-05-04 22:42:17,463] INFO TaskConfig values:
task.class = class com.google.pubsub.kafka.sink.CloudPubSubSinkTask
(org.apache.kafka.connect.runtime.TaskConfig:180)
[2017-05-04 22:42:17,463] INFO Instantiated task CPSConnector-8 with version 0.10.2.1 of type com.google.pubsub.kafka.sink.CloudPubSubSinkTask (org.apache.kafka.connect.runtime.Worker:317)
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@74e87b55] Created with target pubsub.googleapis.com:443
[2017-05-04 22:42:17,465] INFO ConsumerConfig values:
auto.commit.interval.ms = 5000
auto.offset.reset = earliest
bootstrap.servers = [localhost:9092]
check.crcs = true
client.id =
connections.max.idle.ms = 540000
enable.auto.commit = false
exclude.internal.topics = true
fetch.max.bytes = 52428800
fetch.max.wait.ms = 500
fetch.min.bytes = 1
group.id = connect-CPSConnector
heartbeat.interval.ms = 3000
interceptor.classes = null
key.deserializer = class org.apache.kafka.common.serialization.ByteArrayDeserializer
max.partition.fetch.bytes = 1048576
max.poll.interval.ms = 300000
max.poll.records = 500
metadata.max.age.ms = 300000
metric.reporters = []
metrics.num.samples = 2
metrics.recording.level = INFO
metrics.sample.window.ms = 30000
partition.assignment.strategy = [class org.apache.kafka.clients.consumer.RangeAssignor]
receive.buffer.bytes = 65536
reconnect.backoff.ms = 50
request.timeout.ms = 305000
retry.backoff.ms = 100
sasl.jaas.config = null
sasl.kerberos.kinit.cmd = /usr/bin/kinit
sasl.kerberos.min.time.before.relogin = 60000
sasl.kerberos.service.name = null
sasl.kerberos.ticket.renew.jitter = 0.05
sasl.kerberos.ticket.renew.window.factor = 0.8
sasl.mechanism = GSSAPI
security.protocol = PLAINTEXT
send.buffer.bytes = 131072
session.timeout.ms = 10000
ssl.cipher.suites = null
ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
ssl.endpoint.identification.algorithm = null
ssl.key.password = null
ssl.keymanager.algorithm = SunX509
ssl.keystore.location = null
ssl.keystore.password = null
ssl.keystore.type = JKS
ssl.protocol = TLS
ssl.provider = null
ssl.secure.random.implementation = null
ssl.trustmanager.algorithm = PKIX
ssl.truststore.location = null
ssl.truststore.password = null
ssl.truststore.type = JKS
value.deserializer = class org.apache.kafka.common.serialization.ByteArrayDeserializer
(org.apache.kafka.clients.consumer.ConsumerConfig:180)
[2017-05-04 22:42:17,469] INFO Kafka version : 0.10.2.1 (org.apache.kafka.common.utils.AppInfoParser:83)
[2017-05-04 22:42:17,472] INFO Kafka commitId : e89bffd6b2eff799 (org.apache.kafka.common.utils.AppInfoParser:84)
[2017-05-04 22:42:17,478] INFO Creating task CPSConnector-9 (org.apache.kafka.connect.runtime.Worker:305)
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@15768b04] Created with target pubsub.googleapis.com:443
[2017-05-04 22:42:17,484] INFO ConnectorConfig values:
connector.class = com.google.pubsub.kafka.sink.CloudPubSubSinkConnector
key.converter = null
name = CPSConnector
tasks.max = 10
transforms = null
value.converter = null
(org.apache.kafka.connect.runtime.ConnectorConfig:180)
[2017-05-04 22:42:17,486] INFO TaskConfig values:
task.class = class com.google.pubsub.kafka.sink.CloudPubSubSinkTask
(org.apache.kafka.connect.runtime.TaskConfig:180)
[2017-05-04 22:42:17,486] INFO Instantiated task CPSConnector-9 with version 0.10.2.1 of type com.google.pubsub.kafka.sink.CloudPubSubSinkTask (org.apache.kafka.connect.runtime.Worker:317)
[2017-05-04 22:42:17,486] INFO ConsumerConfig values:
auto.commit.interval.ms = 5000
auto.offset.reset = earliest
bootstrap.servers = [localhost:9092]
check.crcs = true
client.id =
connections.max.idle.ms = 540000
enable.auto.commit = false
exclude.internal.topics = true
fetch.max.bytes = 52428800
fetch.max.wait.ms = 500
fetch.min.bytes = 1
group.id = connect-CPSConnector
heartbeat.interval.ms = 3000
interceptor.classes = null
key.deserializer = class org.apache.kafka.common.serialization.ByteArrayDeserializer
max.partition.fetch.bytes = 1048576
max.poll.interval.ms = 300000
max.poll.records = 500
metadata.max.age.ms = 300000
metric.reporters = []
metrics.num.samples = 2
metrics.recording.level = INFO
metrics.sample.window.ms = 30000
partition.assignment.strategy = [class org.apache.kafka.clients.consumer.RangeAssignor]
receive.buffer.bytes = 65536
reconnect.backoff.ms = 50
request.timeout.ms = 305000
retry.backoff.ms = 100
sasl.jaas.config = null
sasl.kerberos.kinit.cmd = /usr/bin/kinit
sasl.kerberos.min.time.before.relogin = 60000
sasl.kerberos.service.name = null
sasl.kerberos.ticket.renew.jitter = 0.05
sasl.kerberos.ticket.renew.window.factor = 0.8
sasl.mechanism = GSSAPI
security.protocol = PLAINTEXT
send.buffer.bytes = 131072
session.timeout.ms = 10000
ssl.cipher.suites = null
ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
ssl.endpoint.identification.algorithm = null
ssl.key.password = null
ssl.keymanager.algorithm = SunX509
ssl.keystore.location = null
ssl.keystore.password = null
ssl.keystore.type = JKS
ssl.protocol = TLS
ssl.provider = null
ssl.secure.random.implementation = null
ssl.trustmanager.algorithm = PKIX
ssl.truststore.location = null
ssl.truststore.password = null
ssl.truststore.type = JKS
value.deserializer = class org.apache.kafka.common.serialization.ByteArrayDeserializer
(org.apache.kafka.clients.consumer.ConsumerConfig:180)
[2017-05-04 22:42:17,492] INFO Kafka version : 0.10.2.1 (org.apache.kafka.common.utils.AppInfoParser:83)
[2017-05-04 22:42:17,493] INFO Kafka commitId : e89bffd6b2eff799 (org.apache.kafka.common.utils.AppInfoParser:84)
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@2aa0b78d] Created with target pubsub.googleapis.com:443
[2017-05-04 22:42:17,496] INFO Created connector CPSConnector (org.apache.kafka.connect.cli.ConnectStandalone:90)
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@1bb167da] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@41380fb7] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@7ecb1a4d] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@4db17054] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@3ca410f4] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@611d92fb] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@7a2f9bb8] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@24675ca9] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@7e101025] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@65220a00] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@79a69904] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@4dcf0b0d] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@6440f37f] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@179dd4b2] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@67a3fdd] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@5a8c6de1] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@7b83e31f] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@3408c640] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@6b9cd402] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@3790445] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@2a583bab] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@68d47f55] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@3b0906db] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@4ef86c1f] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@793abbe9] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@2c734def] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@202098c0] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@3b129183] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@2058dcfd] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@c977767] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@1c4dbc55] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@48952135] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@31b59feb] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@21c700c] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@35a9958a] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@5611534b] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@5b844502] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@3af9d26e] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@3d18fe46] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@6910904f] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@3aa392ae] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@5f8e90f5] Created with target pubsub.googleapis.com:443
May 04, 2017 10:42:17 PM io.grpc.internal.ManagedChannelImpl <init>
INFO: [ManagedChannelImpl@5e5c05fe] Created with target pubsub.googleapis.com:443
...
Caused by: io.grpc.StatusRuntimeException: UNKNOWN
at io.grpc.Status.asRuntimeException(Status.java:545)
at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:417)
at io.grpc.ClientInterceptors$CheckedForwardingClientCall.start(ClientInterceptors.java:203)
at io.grpc.stub.ClientCalls.startCall(ClientCalls.java:248)
at io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:227)
at io.grpc.stub.ClientCalls.futureUnaryCall(ClientCalls.java:186)
at com.google.pubsub.v1.PublisherGrpc$PublisherFutureStub.publish(PublisherGrpc.java:480)
at com.google.pubsub.kafka.sink.CloudPubSubGRPCPublisher.publish(CloudPubSubGRPCPublisher.java:44)
at com.google.pubsub.kafka.sink.CloudPubSubRoundRobinPublisher.publish(CloudPubSubRoundRobinPublisher.java:43)
at com.google.pubsub.kafka.sink.CloudPubSubSinkTask.publishMessagesForPartition(CloudPubSubSinkTask.java:321)
at com.google.pubsub.kafka.sink.CloudPubSubSinkTask.flush(CloudPubSubSinkTask.java:265)
... 22 more
Caused by: java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured.
at io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:153)
at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:130)
at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:119)
at io.grpc.netty.GrpcSslContexts.forClient(GrpcSslContexts.java:90)
at io.grpc.netty.NettyChannelBuilder.createProtocolNegotiator(NettyChannelBuilder.java:263)
at io.grpc.netty.NettyChannelBuilder$NettyTransportFactory.newClientTransport(NettyChannelBuilder.java:322)
at io.grpc.internal.CallCredentialsApplyingTransportFactory.newClientTransport(CallCredentialsApplyingTransportFactory.java:62)
at io.grpc.internal.TransportSet.startNewTransport(TransportSet.java:199)
at io.grpc.internal.TransportSet.obtainActiveTransport(TransportSet.java:179)
at io.grpc.internal.ManagedChannelImpl$3.getTransport(ManagedChannelImpl.java:476)
at io.grpc.internal.ManagedChannelImpl$3.getTransport(ManagedChannelImpl.java:432)
at io.grpc.DummyLoadBalancerFactory$DummyLoadBalancer.pickTransport(DummyLoadBalancerFactory.java:105)
at io.grpc.internal.ManagedChannelImpl$1.get(ManagedChannelImpl.java:149)
at io.grpc.internal.ClientCallImpl.start(ClientCallImpl.java:201)
at io.grpc.auth.ClientAuthInterceptor$1.checkedStart(ClientAuthInterceptor.java:104)
at io.grpc.ClientInterceptors$CheckedForwardingClientCall.start(ClientInterceptors.java:195)
... 30 more
1条答案
按热度按时间dojqjjoe1#
问题与
pom.xml
在文件中(此处:https://github.com/googlecloudplatform/pubsub/blob/master/kafka-connector/pom.xml)默认情况下,设置为适用于linux-x86_64
. 我替换了linux-x86_64
与${os.detected.classifier}
一切都很顺利。具体来说,我替换了:使用:
在
GoogleCloudPlatform/pubsub/kafka-connector/pom.xml
.