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 2021/09/01 02:03:56 UTC

[GitHub] [pulsar] beyondyinjl2 commented on issue #11860: topic: persisten://public/default/my-topic/# This format defines an error

beyondyinjl2 commented on issue #11860:
URL: https://github.com/apache/pulsar/issues/11860#issuecomment-909804319


   code:
   PulsarClient client = PulsarClient.builder()
                   .serviceUrl("pulsar://192.168.146.17:6650,192.168.146.18:6650,192.168.146.19:6650")
               .authentication(AuthenticationFactory.token("eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiJ9.OhQ8GtHiF4_oB7j_0Lzf8eTHhxJYfTeKg8t2aKxOuUQ"))
    .build();
   
           Producer<String> stringProducer = client.newProducer(Schema.STRING)
                   .topic("persistent://public/default/my-topic/#")
     .create();
           stringProducer.send("aaaaaaaa11111");
   
   error:
   [pulsar-client-io-1-1] WARN org.apache.pulsar.client.impl.BinaryProtoLookupService - [persistent://public/default/my-topic/#] failed to send lookup request : org.apache.pulsar.broker.web.RestException: Cluster does not exist: cluster=default
   [pulsar-client-io-1-1] WARN org.apache.pulsar.client.impl.ConnectionHandler - [persistent://public/default/my-topic/#] [null] Error connecting to broker: org.apache.pulsar.client.api.PulsarClientException$LookupException: org.apache.pulsar.broker.web.RestException: Cluster does not exist: cluster=default
   [pulsar-client-io-1-1] INFO org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/my-topic/#] Producer creation failed for producer 0 after producerTimeout
   Exception in thread "main" [pulsar-client-io-1-1] INFO org.apache.pulsar.client.impl.ClientCnx - [id: 0xcee4b859, L:/192.168.3.155:59645 ! R:/192.168.146.19:6650] Disconnected
   org.apache.pulsar.client.api.PulsarClientException$LookupException: org.apache.pulsar.broker.web.RestException: Cluster does not exist: cluster=default
   	at org.apache.pulsar.client.api.PulsarClientException.unwrap(PulsarClientException.java:971)
   	at org.apache.pulsar.client.impl.ProducerBuilderImpl.create(ProducerBuilderImpl.java:95)
   	at com.talkweb.iot.test.TestPulsar22.main(TestPulsar22.java:34)
   


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

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org