GitHub user laglangyue added a comment to the discussion: [Java-client] Invalid 
hostname : pulsar_e2e:6650,but curl http://pulsar_e2e:8080 is ok

test code
```java
 PulsarClient client = PulsarClient.builder()
            .serviceUrl("pulsar://pulsar_e2e:6650").build();
        Consumer<String> subscribe = client.newConsumer(Schema.STRING)
            .topic("topic-it")
            .subscriptionName("hello-world")
            .subscribe();
        Message<String> receive = subscribe.receive();
        System.out.println(receive.getValue());
```

GitHub link: 
https://github.com/apache/pulsar/discussions/19714#discussioncomment-5205063

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to