Ask Your Question

PipelineRunnerException CONTAINER_0102 error using REST API

asked 2020-02-24 09:18:43 -0500

anonymous user


updated 2020-05-20 14:10:40 -0500

jeff gravatar image

I have a pipeline that collect data for Kafka producer. The pipeline is as follows:

httpClient--->javascript Evaluator ---> Kafka Producer

The HTTP Client configuration is as follows:

  • Resource Url :
  • Mode: Polling
  • Polling Interval (ms) : 50000
  • HTTP Method
  • Max Batch Size (records) : 2000000
  • Batch Wait Time (ms) :2000 Data format Configuration:

  • Data Format :JSON

  • Max Object Length (chars): 2147483647
  • List item

But it is not retrieving data in Resource URL instead it is showing the following error (com.streamsets.datacollector.execution.runner.common.PipelineRunnerException: CONTAINER_0102 error - Cannot change state from RUNNING to STARTING.) Any idea how to solve this problem? Before once I increased the - Max Object Length (chars): 2147483647 the problem was solved but again when I added new devices the same problem popped up. Please any suggestion.

here is the complete trace of the error log:

at com.streamsets.pipeline.http.MDCFilter.doFilter(
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
at org.eclipse.jetty.servlet.ServletHandler.doHandle(
at org.eclipse.jetty.server.handler.ScopedHandler.handle(
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(
at org.eclipse.jetty.server.session.SessionHandler.doHandle(
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(
at org.eclipse.jetty.servlet.ServletHandler.doScope(
at org.eclipse.jetty.server.session.SessionHandler.doScope(
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(
at org.eclipse.jetty.server.handler.ContextHandler.doScope(
at org.eclipse.jetty.server.handler.ScopedHandler.handle(
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(
at org.eclipse.jetty.server.handler.HandlerCollection.handle(
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
at org.eclipse.jetty.server.Server.handle(
at org.eclipse.jetty.server.HttpChannel.handle(
at org.eclipse.jetty.server.HttpConnection.onFillable(
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(
at org.eclipse ...
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-02-24 11:24:18 -0500

metadaddy gravatar image

Cannot change state from RUNNING to STARTING means that you are trying to start a pipeline that is already running. You can check the state of the pipeline with GET /rest/v1/pipeline/{pipelineId}/status.


% curl -u admin:admin -H "X-Requested-By:sdc" http://localhost:18630/rest/v1/pipeline/SalesforceCDC9d5ce4c4-d877-4145-8b67-40c23bf9cefe/status
  "pipelineId" : "SalesforceCDC9d5ce4c4-d877-4145-8b67-40c23bf9cefe",
  "rev" : "0",
  "user" : "admin",
  "status" : "RUNNING",
  "message" : null,
  "timeStamp" : 1582564847836,
  "attributes" : {
    "IS_REMOTE_PIPELINE" : false,
  "executionMode" : "STANDALONE",
  "metrics" : null,
  "retryAttempt" : 0,
  "nextRetryTimeStamp" : 0,
  "name" : "SalesforceCDC9d5ce4c4-d877-4145-8b67-40c23bf9cefe"

If I try to start it, I'll get the same error as you:

% curl -u admin:admin -H "X-Requested-By:sdc" http://localhost:18630/rest/v1/pipeline/SalesforceCDC9d5ce4c4-d877-4145-8b67-40c23bf9cefe/start -X POST
  "RemoteException" : {
    "message" : "com.streamsets.datacollector.execution.runner.common.PipelineRunnerException: CONTAINER_0102 - Cannot change state from RUNNING to STARTING",
    "errorCode" : "CONTAINER_0102",
    "localizedMessage" : "CONTAINER_0102 - Cannot change state from RUNNING to STARTING",
    "exception" : "PipelineRunnerException",
    "javaClassName" : "com.streamsets.datacollector.execution.runner.common.PipelineRunnerException",
    "antennaDoctorMessages" : [ ],
    "stackTrace" : "com.streamsets.datacollector.execution.runner.common.PipelineRunnerException: CONTAINER_0102 - Cannot change state from RUNNING to STARTING\n\tat com.streamsets.datacollector.execution.runner.standalone.StandaloneRunner.checkState(\n\tat ..."
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-02-24 09:18:43 -0500

Seen: 173 times

Last updated: May 20 '20