Skip to content

New ETLStage classes don't work as the deprecated one #335

@anwar6953

Description

@anwar6953

I am getting following error when using 'MapReduceManager mrManager = appManager.getMapReduceManager()' with co.cask.cdap.etl.proto.v2.ETLStage and co.cask.cdap.proto.artifact.AppRequest.

java.lang.RuntimeException: co.cask.cdap.common.ProgramNotFoundException: 'program:default.XMLParserTest.mapreduce.ETLMapReduce' was not found.
at co.cask.cdap.client.ProgramClient.getStatus(ProgramClient.java:269)
at co.cask.cdap.test.remote.RemoteApplicationManager.startProgram(RemoteApplicationManager.java:127)
at co.cask.cdap.test.AbstractProgramManager.start(AbstractProgramManager.java:49)
at co.cask.cdap.test.AbstractProgramManager.start(AbstractProgramManager.java:44)
at co.cask.cdap.app.etl.batch.XMLParserTest.testXPathArray(XMLParserTest.java:376)

However, when I use 'MapReduceManager mrManager = appManager.getMapReduceManager()' with the deprecated classes ETLStage (co.cask.cdap.etl.common.ETLStage) and AppRequest(co.cask.cdap.etl.batch.config.ETLBatchConfig), I am able to check the failed status and the test case passes on both standalone and cluster.

We need to figure out if there is something wrong with the new ETLStage classes or how they're handled in integration tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions