Skip to content

Pulsar SQL Fails Out of the Box with Default Docker Deployment v2.5.0 #6501

@junquero

Description

@junquero

Describe the bug
Run pulsar docker

To Reproduce
Steps to reproduce the behavior (commands in bold):

  1. 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

  2. docker exec -it pulsar /bin/bash
    2.1 # bin/pulsar sql-worker run

  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions