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 2019/07/16 17:28:31 UTC

[GitHub] [pulsar] gurgen2727 edited a comment on issue #3968: Can`t get pulsar-client-go lib

gurgen2727 edited a comment on issue #3968: Can`t get pulsar-client-go lib
URL: https://github.com/apache/pulsar/issues/3968#issuecomment-511910798
 
 
   makes sense, thank you, though it wasn't written anywhere in the documentation.
   managed to install in Ubuntu 18.04.2 LTS (Bionic Beaver) running in VirtualBox under Windows 10 for python version 2
   
   But even simple got doesn't work for me:
        import pulsar
        client = pulsar.Client('pulsar://localhost:6650')
        producer = client.create_producer('my-topic')
        producer.send("testing")
        client.close()
    
   2019-07-16 18:19:47.192 INFO  ConnectionPool:72 | Created connection for pulsar://localhost:6650
   2019-07-16 18:19:47.193 ERROR ClientConnection:360 | [<none> -> pulsar://localhost:6650] Failed to establish connection: Connection refused
   2019-07-16 18:19:47.193 INFO  ClientConnection:1297 | [<none> -> pulsar://localhost:6650] Connection closed
   2019-07-16 18:19:47.193 ERROR ClientImpl:182 | Error Checking/Getting Partition Metadata while creating producer on persistent://public/default/my-topic -- 5
   2019-07-16 18:19:47.193 INFO  ClientImpl:482 | Closing Pulsar client
   Traceback (most recent call last):
       producer = client.create_producer('my-topic')
     File "/usr/local/lib/python2.7/dist-packages/pulsar/__init__.py", line 476, in create_producer
       p._producer = self._client.create_producer(topic, conf)
   Exception: Pulsar error: ConnectError
   2019-07-16 18:19:47.200 INFO  ClientConnection:222 | [<none> -> pulsar://localhost:6650] Destroyed connection
   
   
   changing 'pulsar://localhost:6650' -> 'http://<local_ip>6650' doesn't work either.
   I am really confused with this library.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services