trynocoding commented on issue #601:
URL: 
https://github.com/apache/pulsar-helm-chart/issues/601#issuecomment-2809039685

   @lhotari
   
   > Using the http protocol, the client error message is as follows
   
           client, err := pulsar.NewClient(pulsar.ClientOptions{
                   URL:            "http://100.100.3.198:30370";,
                   ListenerName:   "external",
           })
   
   
   >[root@crazy producer]# go run http_producer.go 
   INFO[0000] Connecting to broker                          
remote_addr="pulsar://10.0.0.148:6650"
   WARN[0004] Failed to connect to broker.                  error="dial tcp 
10.0.0.148:6650: connect: connection timed out" 
remote_addr="pulsar://10.0.0.148:6650"
   ERRO[0004] Failed to get connection                      
topic="persistent://public/default/test-topic"
   ERRO[0004] Failed to create producer at newPartitionProducer  
error="connection error" topic="persistent://public/default/test-topic"
   2025/04/16 16:10:47 connection error
   exit status 1
   
   
   Here I made a mistake, the http protocol cannot be used for data streams 
(producing and consuming messages), it is only used for management streams 
(creating topics, checking cluster status, etc.). Therefore, to verify if http 
is exposed outside the cluster, simply access it via the curl command
   ```
   [root@crazy producer]# curl http://100.100.3.198:30370/admin/v2/clusters
   ["pulsarcluster-sample"][root@crazy producer]# 
   [root@crazy producer]# 
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to