Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.

something wrong when running Pulsar-ds example #309

Open
gas0189 opened this issue Apr 8, 2018 · 0 comments
Open

something wrong when running Pulsar-ds example #309

gas0189 opened this issue Apr 8, 2018 · 0 comments

Comments

@gas0189
Copy link

gas0189 commented Apr 8, 2018

  • pulsar version: 2.0.2
  • python version: 3.6.3
  • platform: Ubuntu

When I learn the Pulsar-ds example, something is wrong : the client.ping() does NOT return 'True', WHY?

Python 3.6.3 (default, Oct  3 2017, 21:45:48) 
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pulsar.apps.data import create_store
>>> store = create_store('pulsar://localhost:6410')
>>> client = store.client()
>>> client
RedisClient(pulsar://localhost:6410)
>>> client.ping()
<coroutine object RedisStore.execute at 0x7fea0700f678>

I'm sure the ds-server is OK:

Python 3.6.3 (default, Oct  3 2017, 21:45:48) 
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pulsar.apps.ds import PulsarDS
>>> pds = PulsarDS()
Python 3.6.3 (default, Oct  3 2017, 21:45:48) 
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pulsar.apps.ds import PulsarDS
>>> pds = PulsarDS()
>>> pds.version
'2.0.2'
>>> pds.start()
21:16:13 [p=3338, t=140539003582272, INFO, pulsar.arbiter] Booting
21:16:13 [p=3338, t=140539003582272, INFO, pulsar] mailbox serving on 127.0.0.1:41789
21:16:13 [p=3338, t=140539003582272, INFO, pulsar.pulsards] pulsards serving on 127.0.0.1:6410

Is that OK? How can I do for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant