Quantcast
Viewing all articles
Browse latest Browse all 16689

Run Pentaho Kettle jobs using java API

Hi,

I want to execute kettle transformation using java API.I am using pentaho 5.0.1 version and i have imported the kettle jobs into the solution repository.I have the following statements

KettleEnvironment.init();
JobMeta jobMeta = new JobMeta("testrepo\\test.kjb", null);
Job job = new Job(null, jobMeta);
job.start();
job.waitUntilFinished();

But it is throwing an error message as the kettle is trying to find the test.kjb in the tomcat bin folder instead of the solution repository.Can someone help in resolving this issue.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>