Ask Your Question
1

Getting "Jetty ALPN/NPN" error on Google Pub/Sub validation

asked 2018-02-22 12:15:00 -0600

mwall gravatar image

updated 2018-02-22 13:41:59 -0600

metadaddy gravatar image

I have a Google Pub/Sub Processor. I have entered in all the correct information. But when I validate, it returns an error on the Credentials tab.

PUBSUB_04 - Error validating permissions: 'java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured.'

I am using service account credentials file.

2018-02-22 18:08:00,334 [user:*admin] [pipeline:EPC_Google_pub_sub/EPCGooglepubsubc373890b-eb38-4d05-b001-21a367e20f24] [runner:] [thread:preview-pool-1-thread-3] ERROR PubSubSource - Error validating permissions: 'java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured.'
java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured.
        at io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:159)
        at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:136)
        at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:124)
        at io.grpc.netty.GrpcSslContexts.forClient(GrpcSslContexts.java:94)
        at io.grpc.netty.NettyChannelBuilder$NettyTransportFactory$DefaultNettyTransportCreationParamsFilterFactory.<init>(NettyChannelBuilder.java:525)
        at io.grpc.netty.NettyChannelBuilder$NettyTransportFactory$DefaultNettyTransportCreationParamsFilterFactory.<init>(NettyChannelBuilder.java:518)
        at io.grpc.netty.NettyChannelBuilder$NettyTransportFactory.<init>(NettyChannelBuilder.java:457)
        at io.grpc.netty.NettyChannelBuilder.buildTransportFactory(NettyChannelBuilder.java:326)
        at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:315)
        at com.google.api.gax.grpc.InstantiatingChannelProvider.createChannel(InstantiatingChannelProvider.java:131)
        at com.google.api.gax.grpc.InstantiatingChannelProvider.getChannel(InstantiatingChannelProvider.java:116)
        at com.google.api.gax.grpc.GrpcTransportProvider.getTransport(GrpcTransportProvider.java:98)
        at com.google.api.gax.grpc.GrpcTransportProvider.getTransport(GrpcTransportProvider.java:59)
        at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:97)
        at com.google.cloud.pubsub.v1.stub.GrpcPublisherStub.create(GrpcPublisherStub.java:154)
        at com.google.cloud.pubsub.v1.TopicAdminSettings.createStub(TopicAdminSettings.java:201)
        at com.google.cloud.pubsub.v1.TopicAdminClient.<init>(TopicAdminClient.java:157)
        at com.google.cloud.pubsub.v1.TopicAdminClient.create(TopicAdminClient.java:140)
        at com.streamsets.pipeline.stage.pubsub.origin.PubSubSource.testPermissions(PubSubSource.java:142)
        at com.streamsets.pipeline.stage.pubsub.origin.PubSubSource.init(PubSubSource.java:123)
        at com.streamsets.pipeline.api.base.BaseStage.init(BaseStage.java:48)
        at com.streamsets.pipeline.configurablestage.DStage.init(DStage.java:36)
        at com.streamsets.datacollector.runner.StageRuntime.lambda$init$0(StageRuntime.java:176)
        at com.streamsets.datacollector.util.LambdaUtil.withClassLoaderInternal(LambdaUtil.java:148)
        at com.streamsets.datacollector.util.LambdaUtil.withClassLoader(LambdaUtil.java:44)
        at com.streamsets.datacollector.runner.StageRuntime.init(StageRuntime.java:174)
        at com.streamsets.datacollector.runner.StagePipe.init(StagePipe.java:100)
        at com.streamsets.datacollector.runner.StagePipe.init(StagePipe.java:48)
        at com.streamsets.datacollector.runner.Pipeline.initPipe(Pipeline.java:386)
        at com.streamsets.datacollector.runner.Pipeline.init(Pipeline.java:299)
        at com.streamsets.datacollector.runner.Pipeline.validateConfigs(Pipeline.java:206)
        at com.streamsets.datacollector.runner.preview.PreviewPipeline.validateConfigs(PreviewPipeline.java:60)
        at com.streamsets.datacollector.execution.preview.sync.SyncPreviewer.validateConfigs(SyncPreviewer.java:134)
        at com.streamsets.datacollector.execution.preview.async.AsyncPreviewer$1.call(AsyncPreviewer.java:70)
        at com.streamsets.pipeline.lib.executor.SafeScheduledExecutorService$SafeCallable.lambda$call$0(SafeScheduledExecutorService.java:227)
        at com.streamsets.datacollector.security.GroupsInScope.execute(GroupsInScope.java:33)
        at com.streamsets.pipeline.lib.executor.SafeScheduledExecutorService$SafeCallable.call(SafeScheduledExecutorService.java:223)
        at com.streamsets.pipeline.lib.executor.SafeScheduledExecutorService$SafeCallable.lambda$call$0(SafeScheduledExecutorService.java:227)
        at com ...
(more)
edit retag flag offensive close merge delete

Comments

Is that the full stack trace? There is no further exception below this?

jeff gravatar imagejeff ( 2018-02-22 16:13:34 -0600 )edit

Hi Jeff, Yes. that is the entire Exception.

mwall gravatar imagemwall ( 2018-02-22 16:49:51 -0600 )edit

Which exact SDC version are you using? And was this pipeline working on a previous version (if so, which point version)?

jeff gravatar imagejeff ( 2018-02-23 09:57:11 -0600 )edit

SDC Version: 3.1.0.0 ( built by root on 2018-02-08T19:04Z git: afdbb4a51451e4a78cc603e9064fedf419fa0271) JDK version "1.8.0_161" Red Hat 4.8.5-16 - Linux version 3.10.0-693.17.1.el7.x86_64 New OS and system. Don't know if an earlier version would have worked. Used the rpm installation.

mwall gravatar imagemwall ( 2018-02-23 11:03:06 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-02-23 17:19:36 -0600

mwall gravatar image

This is now fixed. There was another entry in the log file.

            INFO  NativeLibraryLoader - /tmp/libnetty-tcnative-linux-x86_643778696900111641178.so exists but cannot be executed even when execute permissions set; check volume for "noexec" flag; use -Dio.netty.native.workdir=[path] to set native working directory separately.

After doing some research, the suggestion was to execute the below command

sudo mount /tmp -o remount,exec

After restarting sdc, I was able to validate the pipeline.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-02-22 12:15:00 -0600

Seen: 141 times

Last updated: Feb 23