david-streamlio opened a new issue #8752:
URL: https://github.com/apache/pulsar/issues/8752
**Describe the bug**
Getting the following error when deploying a Stateful Pulsar Function on a
docker container running the apachepulsar/standalone:latest version of the
Docker Image.
Uncaught exception in Java Instance
java.lang.NoSuchMethodError:
com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;)V
at
org.apache.bookkeeper.clients.config.StorageClientSettings_Builder.build(StorageClientSettings_Builder.java:455)
~[stream-storage-java-client-4.10.0.jar:4.10.0]
at
org.apache.bookkeeper.clients.config.StorageClientSettings$Builder.build(StorageClientSettings.java:120)
~[stream-storage-java-client-4.10.0.jar:4.10.0]
at
org.apache.pulsar.functions.instance.JavaInstanceRunnable.setupStateTable(JavaInstanceRunnable.java:395)
~[pulsar-functions-instance-2.6.2.jar:2.6.2]
at
org.apache.pulsar.functions.instance.JavaInstanceRunnable.setup(JavaInstanceRunnable.java:221)
~[pulsar-functions-instance-2.6.2.jar:2.6.2]
at
org.apache.pulsar.functions.instance.JavaInstanceRunnable.run(JavaInstanceRunnable.java:248)
[pulsar-functions-instance-2.6.2.jar:2.6.2]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
**To Reproduce**
Steps to reproduce the behavior:
1. Start a Docker container using apachepulsar/pulsar-standalone:latest
2. Start a LocalRunner instance pointing to the container, e.g.
localRunner = LocalRunner.builder()
.brokerServiceUrl(BROKER_URL). <-----
pulsar://localhost:6650
.stateStorageServiceUrl(STATE_STORE_URL). <----
bk://localhost:4181
.functionConfig(getFunctionConfig())
.build();
localRunner.start(false);
3. Specify a Stateful Pulsar Function in the passed in function config
specified in `getFunctionConfig()`, e.g. have calls to `ctx.putState()` inside
the code
4. See error
**Expected behavior**
No error should be raised
**Additional context**
I believe the bookkeeper version (4.10) deployed in the Docker image is 2
version behind now and needs updated
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]