-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Describe the bug
Run pulsar docker
To Reproduce
Steps to reproduce the behavior (commands in bold):
-
docker volume create pulsar_conf
docker volume create pulsar_data
docker run --name pulsar -it -p 6650:6650 -p 7080:8080 -v pulsar_data:/pulsar/data -v pulsar_conf:/pulsar/conf apachepulsar/pulsar-all:2.5.0 bin/pulsar standalone -
docker exec -it pulsar /bin/bash
2.1 #bin/pulsar sql-worker run -
docker exec -it pulsar /bin/bash
3.1 #bin/pulsar sql
3.2 presto>show catalogs;
3.3 presto>show schemas in pulsar;
Query 20200305_223404_00001_pikhq failed: Failed to get schemas from pulsar: Cannot cast org.glassfish.jersey.inject.hk2.Hk2InjectionManagerFactory to org.glassfish.jersey.internal.inject.InjectionManagerFactory
3.4 presto>show tables in pulsar."public/default";
Query is gone (server restarted?)
In log file of pulsar sql worker:
Caused by: java.lang.ClassCastException: Cannot cast org.glassfish.jersey.inject.hk2.Hk2InjectionManagerFactory to org.glassfish.jersey.internal.inject.InjectionManagerFactory
Expected behavior
I expected it to work as described in Query data with Pulsar SQL
Screenshots
Not applicable.
Desktop (please complete the following information):
- OS: Windows 10. Docker Desktop 2.2.0.3 (Engine 19.03.5) Linux containers (with Hyper-V).
Additional context
Some minutes later, the pulsar broker crashes. In the log:
22:35:43.832 [registration-service-provider-scheduler] INFO org.apache.bookkeeper.stream.storage.impl.cluster.ClusterControllerLeaderImpl - Cluster topology is changed - new cluster : Versioned(value=[], version=12)
22:35:43.832 [Curator-LeaderSelector-0] INFO org.apache.bookkeeper.stream.storage.impl.cluster.ClusterControllerLeaderImpl - No servers is alive yet. Backoff 200ms and retry.