Reply
New Contributor
Posts: 2
Registered: ‎04-28-2016

Error displaying lineage in Navigator CDH 5.7, not seen in CDH 5.5

I am using the Navigator SDK to write custom entities into Navigator. My entities worked fine in CDH 5.5 and were displayed in the Navigator GUI. 

 

In CDH 5.7 I get the following error in the Navigator Metadata log:

 

2016-04-28 09:19:12,650 ERROR com.cloudera.nav.api.v9.impl.Lineage3ResourceV9Impl [qtp662253756-118]: Error when calculating lineage
java.lang.IllegalArgumentException
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:76)
at com.cloudera.nav.lineage.EntityBasedTraversalRule$2.apply(EntityBasedTraversalRule.java:45)
at com.cloudera.nav.lineage.EntityBasedTraversalRule$2.apply(EntityBasedTraversalRule.java:42)
at com.cloudera.nav.lineage.EntityBasedTraversalRule$EntityFieldGetterImpl.getFieldValue(EntityBasedTraversalRule.java:210)
at com.cloudera.nav.lineage.LineageContext.addEntityParents(LineageContext.java:494)
at com.cloudera.nav.lineage.EntityBasedTraversalRule.execute(EntityBasedTraversalRule.java:105)
at com.cloudera.nav.lineage.RulesExecutionTrigger.execute(RulesExecutionTrigger.java:58)
at com.cloudera.nav.lineage.phases.LineageTraversalPhaseImpl.execute(LineageTraversalPhaseImpl.java:99)
at com.cloudera.nav.lineage.phases.LineageTraversalPhaseImpl.execute(LineageTraversalPhaseImpl.java:87)
at com.cloudera.nav.lineage.LineageBuilder.getLineageGraph(LineageBuilder.java:201)

 

Is there anyway to determine what exactly is failing? 

 

The entities I am trying to view all have source type 'SDK',  there is a parent entity type 'DATASET' and child entities of type 'FIELD'. 

 

From the stack trace the error occurs adding an entity parent. This did not occur with CDH 5.5.

Highlighted
New Contributor
Posts: 2
Registered: ‎04-28-2016

Re: Error displaying lineage in Navigator CDH 5.7, not seen in CDH 5.5

Replying to my own message...

 

I have done a bit more investigation and it appears that there are constraints on Navigator entities in CDH 5.7 that were not there in CDH 5.5.

 

For example, in CDH 5.5 I could create a custom entity with EntityType OPERATION and no relations, just by setting the name and identity. 

 

However, in CDH 5.7 displaying the lineage for this entity fails with the error above. However, if I change the EntityType to TABLE there is no problem. 

 

Are these constraints / requirements documented anywhere?  

Announcements
New solutions