You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/05/30 21:23:45 UTC
[GitHub] sijie opened a new pull request #1870: Pulsar Function localrun
failed using http service url
sijie opened a new pull request #1870: Pulsar Function localrun failed using http service url
URL: https://github.com/apache/incubator-pulsar/pull/1870
*Motivation*
#1849 shade the dependencies in java instance uber jar. However it
shades the asynchttpclient to a different namespace, which causes
following issue when running pulsar function in `localrun` mode
```
Exception in thread “main” java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:542)
at java.lang.Integer.parseInt(Integer.java:615)
at org.apache.pulsar.functions.runtime.shaded.org.asynchttpclient.config.AsyncHttpClientConfigHelper$Config.getInt(AsyncHttpClientConfigHelper.java:109)
at org.apache.pulsar.functions.runtime.shaded.org.asynchttpclient.config.AsyncHttpClientConfigDefaults.defaultMaxRedirects(AsyncHttpClientConfigDefaults.java:63)
at org.apache.pulsar.functions.runtime.shaded.org.asynchttpclient.DefaultAsyncHttpClientConfig$Builder.<init>(DefaultAsyncHttpClientConfig.java:631)
at org.apache.pulsar.client.impl.HttpClient.<init>(HttpClient.java:83)
at org.apache.pulsar.client.impl.HttpClient.<init>(HttpClient.java:68)
at org.apache.pulsar.client.impl.HttpLookupService.<init>(HttpLookupService.java:52)
at org.apache.pulsar.client.impl.PulsarClientImpl.<init>(PulsarClientImpl.java:132)
at org.apache.pulsar.client.impl.PulsarClientImpl.<init>(PulsarClientImpl.java:118)
at org.apache.pulsar.client.impl.PulsarClientImpl.<init>(PulsarClientImpl.java:114)
at org.apache.pulsar.client.impl.ClientBuilderImpl.build(ClientBuilderImpl.java:52)
```
The problem is related to #389
*Solution*
Shade the asynchttpclient to the namespace that it has right `ahc.properties` file.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services