Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-14515

After upgrading cluster from 5.0 to 5.1, no longer able to create pipelines.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.1.1
    • Component/s: CDAP
    • Labels:
      None
    • Release Notes:
      Fixed a bug where upgraded CDAP instances were not able to load artifacts.
    • Rank:
      1|i00ir3:

      Description

      I had real time pipeline (CDC pipeline) running in Cloudera Manager cluster with CDAP 5.0. Once the cluster is upgraded to 5.1, I am no longer able to create pipelines. Following NPE can be seen in the log at various points - 

      2018-10-12 22:14:24,331 ERROR co.cask.cdap.common.HttpExceptionHandler: Unexpected error: request=GET /v3/namespaces/demo/artifacts?scope=SYSTEM user=<null>:
      java.lang.NullPointerException: null
              at co.cask.cdap.internal.app.runtime.artifact.ArtifactStore.isAllowed(ArtifactStore.java:1091) ~[na:na]
              at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) ~[na:1.8.0_181]
              at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[na:1.8.0_181]
              at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[na:1.8.0_181]
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_181]
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_181]
              at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[na:1.8.0_181]
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_181]
              at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[na:1.8.0_181]
              at co.cask.cdap.internal.app.runtime.artifact.ArtifactStore.filterPlugins(ArtifactStore.java:1072) ~[na:na]
              at co.cask.cdap.internal.app.runtime.artifact.ArtifactStore.lambda$collectArtifacts$9(ArtifactStore.java:341) ~[na:na]
              at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[na:1.8.0_181]
      

       

      Attached error is seen in the UI

        Attachments

          Activity

            People

            • Assignee:
              rsinha Rohit Sinha
              Reporter:
              sagar Sagar Kapare
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: