How to use zookeeper in namers

Hi, i am new to linkerd.
Here is my namerd config file:

admin:
  ip: 0.0.0.0
  port: 9991
storage:
  kind: io.l5d.zk
  pathPrefix: /dtabs
  zkAddrs:
  - host: bw-qa-test-p01.dns.guazi.com
    port: 2181
interfaces:
- kind: io.l5d.thriftNameInterpreter
  ip: 0.0.0.0
  port: 4100
- kind: io.l5d.httpController
  ip: 0.0.0.0
  port: 4180
namers:
- kind: io.l5d.serversets
  zkAddrs:
  - host: bw-qa-test-p01.dns.guazi.com
    port: 2181

and my zookeeper:

[zk: bw-qa-test-p01.dns.guazi.com:2181(CONNECTED) 70] get /discovery/prod/web
127.0.0.1 9999
cZxid = 0x27

But when i run curl -H "Host: web" http://localhost:4140/
it says: No hosts are available for /svc/web, Dtab.base=[], Dtab.local=[]. Remote Info: Not Available

How do i set zookeeper path value to make this work?

How are you adding your data to zookeeper? Are you using a ServerSets library?

Your Namerd config looks correct. However the data in zookeeper does not seem to be in the ServerSets format, which is needed for the config we’ve provided.

No, I just run create /discovery/prod/web "127.0.0.1 9999" directly use zkCli.

Thanks, I will hava a try using a finagle-serversets library.

Sounds good, let us know if you run into any additional errors!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.