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

Live-info does not work for workflows

    Details

    • Rank:
      1|hzzj93:

      Description

      I tried to hit the live-info endpoint of a workflow. When it was running in YARN, I got a 500 from the backend. See error logs below.

      Based upon the code, it seems like it would not work for MapReduce, Spark, or Worker, either.

      2016-08-05 06:06:39,311 - ERROR [netty-executor-2925:c.c.c.c.HttpExceptionHandler@49] - Unexpected error: request=GET /v3/namespaces/default/apps/PurchaseHistory/workflows/Purchas
      eHistoryWorkflow/live-info user=ali:
      java.lang.IllegalArgumentException: No enum constant co.cask.cdap.proto.Containers.ContainerType.WORKFLOW
              at java.lang.Enum.valueOf(Enum.java:236) ~[na:1.7.0_75]
              at co.cask.cdap.proto.Containers$ContainerType.valueOf(Containers.java:42) ~[co.cask.cdap.cdap-proto-3.5.0-SNAPSHOT.jar:na]
              at co.cask.cdap.internal.app.runtime.distributed.DistributedProgramRuntimeService.getLiveInfo(DistributedProgramRuntimeService.java:358) ~[co.cask.cdap.cdap-app-fabric-3.5
      .0-SNAPSHOT.jar:na]
              at co.cask.cdap.gateway.handlers.util.AbstractAppFabricHttpHandler.getLiveInfo(AbstractAppFabricHttpHandler.java:218) ~[co.cask.cdap.cdap-app-fabric-3.5.0-SNAPSHOT.jar:na]
              at co.cask.cdap.gateway.handlers.ProgramLifecycleHttpHandler.liveInfo(ProgramLifecycleHttpHandler.java:934) ~[co.cask.cdap.cdap-app-fabric-3.5.0-SNAPSHOT.jar:na]
              at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source) ~[na:na]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_75]
              at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_75]
              at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:80) ~[co.cask.http.netty-http-0.14.0.jar:na]
              at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:38) [co.cask.http.netty-http-0.14.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.channel.SimpleChannelUpstreamHandler.messageReceived(SimpleChannelUpstreamHandler.java:124) [io.netty.netty-3.6.6.Final.jar:na]
              at co.cask.cdap.common.http.AuthenticationChannelHandler.messageReceived(AuthenticationChannelHandler.java:64) [co.cask.cdap.cdap-common-3.5.0-SNAPSHOT.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_75]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_75]
              at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ali.anwar Ali Anwar
                Reporter:
                ali.anwar Ali Anwar
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: