question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Namerd not recognizing io.l5d.zkLeader

See original GitHub issue

I’ve been experimenting with namerd and it seems that it doesn’t recognize zkLeader as a valid namer. Did I miss something? I thought namerd supported all namers that linkerd supports.

here is my failure

Oct 14, 2016 3:10:38 PM com.twitter.finagle.http.HttpMuxer$$anonfun$4 apply
INFO: HttpMuxer[/admin/metrics.json] = com.twitter.finagle.stats.MetricsExporter(<function1>)
Oct 14, 2016 3:10:38 PM com.twitter.finagle.http.HttpMuxer$$anonfun$4 apply
INFO: HttpMuxer[/admin/per_host_metrics.json] = com.twitter.finagle.stats.HostMetricsExporter(<function1>)
com.fasterxml.jackson.databind.JsonMappingException: Could not resolve type id 'io.l5d.zkLeader' into a subtype of [simple type, class io.buoyant.namer.NamerConfig]: known type ids = [NamerConfig, io.l5d.consul, io.l5d.fs, io.l5d.k8s, io.l5d.marathon, io.l5d.serversets]
 at [Source: java.io.StringReader@1e636ea3; line: 38, column: 9] (through reference chain: io.buoyant.namerd.NamerdConfig["namers"]->com.fasterxml.jackson.module.scala.deser.BuilderWrapper[0])
    at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
    at com.fasterxml.jackson.databind.DeserializationContext.unknownTypeException(DeserializationContext.java:967)
    at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._handleUnknownTypeId(TypeDeserializerBase.java:277)
    at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:159)
    at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:108)
    at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:93)
    at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:131)
    at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:247)
    at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:217)
    at com.fasterxml.jackson.module.scala.deser.SeqDeserializer.deserialize(SeqDeserializerModule.scala:76)
    at com.fasterxml.jackson.module.scala.deser.SeqDeserializer.deserialize(SeqDeserializerModule.scala:59)
    at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
    at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:463)
    at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:378)
    at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1099)
    at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:296)
    at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:133)
    at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3736)
    at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2764)
    at com.fasterxml.jackson.module.scala.experimental.ScalaObjectMapper$class.readValue(ScalaObjectMapper.scala:184)
    at io.buoyant.config.Parser$$anon$1.readValue(Parser.scala:71)
    at io.buoyant.namerd.NamerdConfig$.loadNamerd(NamerdConfig.scala:95)
    at io.buoyant.namerd.NamerdConfig$.loadNamerd(NamerdConfig.scala:99)
    at io.buoyant.namerd.Main$.loadNamerd(Main.scala:49)
    at io.buoyant.namerd.Main$.main(Main.scala:16)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.twitter.app.App$$anonfun$nonExitingMain$3.apply(App.scala:176)
    at com.twitter.app.App$$anonfun$nonExitingMain$3.apply(App.scala:175)
    at scala.Option.foreach(Option.scala:257)
    at com.twitter.app.App$class.nonExitingMain(App.scala:175)
    at io.buoyant.namerd.Main$.nonExitingMain(Main.scala:9)
    at com.twitter.app.App$class.main(App.scala:141)
    at io.buoyant.namerd.Main$.main(Main.scala:9)
    at io.buoyant.namerd.Main.main(Main.scala)
Exception thrown in main on startup

here is the namer section of the config

namers:
- kind: io.l5d.consul
  experimental: true
  includeTag: true
  useHealthCheck: true
  host: localhost
  port: 8500
- kind: io.l5d.serversets
  zkAddrs:
  - host: mesos-master01of2
    port: 2181
  - host: mesos-master02of2
    port: 2181
  - host: mesos-master03of2
    port: 2181
- kind: io.l5d.zkLeader
  zkAddrs:
  - host: mesos-master01of2
    port: 2181
  - host: mesos-master02of2
    port: 2181
  - host: mesos-master03of2
    port: 2181
interfaces:
- kind: io.l5d.thriftNameInterpreter
  port: 31566
  ip: 0.0.0.0
  retryBaseSecs:  600
  retryJitterSecs: 60
- kind: io.l5d.httpController
  port: 31935
  ip: 0.0.0.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JustinVenuscommented, Oct 17, 2016

I may have a fix … i’m compiling namerd atm

0reactions
JustinVenuscommented, Oct 18, 2016

Fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Please help zookeeper configuration · Issue #2076 - GitHub
Need help. We are getting this error. Failure(ChannelException at remote address: localhost/127.0.0.1:8080. Remote Info: Not Available, ...
Read more >
Issues Connecting Linkerd to Namerd
I am trying to setup Namerd with Linkerd in OpenShift and Linkerd is ... No hosts are available for /#/io.l5d.k8s/myproject/thrift/namerd, ...
Read more >
Untitled
Como cuidar las plantas y animales, Tainted love straight no chaser lyrics, ... Ri ups locations, Indochina tourist and trade co. ltd, Balgowlah...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found