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

Preview is working only in default namespace

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.1.0, 4.0.1
    • Component/s: Pipelines
    • Labels:
    • Release Notes:
      Fixed an issue where previews would not run in a non-default namespace.
    • Rank:
      1|hzzrjj:

      Description

      Unable to run 'preview' in a non-default namespace.

      
      2016-12-22 21:38:58,292 - INFO  [appfabric-executor-38:c.c.c.i.a.d.p.DatasetInstanceCreator@60] - Adding dataset instance: AggCube1
      2016-12-22 21:38:58,312 - ERROR [appfabric-executor-38:c.c.c.c.HttpExceptionHandler@68] - Unexpected error: request=POST /v3/namespaces/ExampleApp/previews user=<null>:
      java.util.concurrent.ExecutionException: co.cask.cdap.api.dataset.DatasetManagementException: Failed to add instance AggCube1, details: Response code: 404, message: 'Not Found', body: ''namespace:ExampleApp' was not found.'
              at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:294) ~[com.google.guava.guava-13.0.1.jar:na]
              at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:281) ~[com.google.guava.guava-13.0.1.jar:na]
              at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) ~[com.google.guava.guava-13.0.1.jar:na]
              at co.cask.cdap.internal.app.services.ApplicationLifecycleService.deployApp(ApplicationLifecycleService.java:582) ~[na:na]
              at co.cask.cdap.internal.app.services.ApplicationLifecycleService.deployApp(ApplicationLifecycleService.java:403) ~[na:na]
              at co.cask.cdap.internal.app.preview.DefaultPreviewRunner.startPreview(DefaultPreviewRunner.java:122) ~[na:na]
              at co.cask.cdap.internal.app.preview.DefaultPreviewManager.start(DefaultPreviewManager.java:178) ~[na:na]
              at co.cask.cdap.gateway.handlers.preview.PreviewHttpHandler.start(PreviewHttpHandler.java:80) ~[na:na]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_121]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_121]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_121]
              at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_121]
              at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:80) ~[co.cask.http.netty-http-0.16.0.jar:na]
              at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:38) [co.cask.http.netty-http-0.16.0.jar:na]
              at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [io.netty.netty-3.6.6.Final.jar:na]
              at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [io.netty.netty-3.6.6.Final.jar:na]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_121]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_121]
              at java.lang.Thread.run(Thread.java:745) [na:1.7.0_121]
      Caused by: co.cask.cdap.api.dataset.DatasetManagementException: Failed to add instance AggCube1, details: Response code: 404, message: 'Not Found', body: ''namespace:ExampleApp' was not found.'
              at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.addInstance(DatasetServiceClient.java:197) ~[na:na]
              at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.addInstance(RemoteDatasetFramework.java:144) ~[na:na]
              at co.cask.cdap.data2.dataset2.preview.PreviewDatasetFramework.addInstance(PreviewDatasetFramework.java:147) ~[na:na]
              at co.cask.cdap.internal.app.deploy.pipeline.DatasetInstanceCreator.createInstances(DatasetInstanceCreator.java:61) ~[na:na]
              at co.cask.cdap.internal.app.deploy.pipeline.CreateDatasetInstancesStage.process(CreateDatasetInstancesStage.java:47) ~[na:na]
              at co.cask.cdap.internal.app.deploy.pipeline.CreateDatasetInstancesStage.process(CreateDatasetInstancesStage.java:29) ~[na:na]
              at co.cask.cdap.pipeline.AbstractStage.process(AbstractStage.java:52) ~[na:na]
              at co.cask.cdap.internal.pipeline.SynchronousPipeline.execute(SynchronousPipeline.java:55) ~[na:na]
              at co.cask.cdap.app.preview.PreviewApplicationManager.deploy(PreviewApplicationManager.java:90) ~[na:na]
              ... 20 common frames omitted
      
      

        Attachments

          Activity

            People

            • Assignee:
              yaojie Yaojie Feng
              Reporter:
              VivekVetri Vivek Gnanavelu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: