Andras Salamon created OOZIE-3342: ------------------------------------- Summary: Missing examples archive from fluentjob examples Key: OOZIE-3342 URL: https://issues.apache.org/jira/browse/OOZIE-3342 Project: Oozie Issue Type: Improvement Components: examples Reporter: Andras Salamon Assignee: Andras Salamon
When {{-runjar}} option is used to execute a fluentjob example, oozie sets the app path to a newly created (timestamped) directory and copies the freshly generated {{workflow.xml}} file to this directory: {noformat} /user/username/oozie-fluent-job-api-generated/gen_app_1536586664643{noformat} This directory does not contain any other {{jar}} file, hence some of the examples are not working. For instance the [JavaMain|https://github.com/apache/oozie/blob/master/examples/src/main/java/org/apache/oozie/example/fluentjob/JavaMain.java] example cannot find the DemoJavaMain class: {noformat} 180910095203189-oozie-andr-W] ACTION[0000020-180910095203189-oozie-andr-W@java-main] Launcher exception: java.lang.ClassNotFoundException: Class org.apache.oozie.example.DemoJavaMain not found java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.oozie.example.DemoJavaMain not found{noformat} The examples should be modified to allow the user to specify the path of an archive which contains the necessary files. -- This message was sent by Atlassian JIRA (v7.6.3#76005)