Hi, It's possible by running the command with a shell script. For me, I trigger shell script from the program if I would need the command to run. Also, I'm using a cron job to regulate the pio train and deploy process using a shell script which is being triggered by the application.
However, I've not done that in Java, but I would do similar with the java application as well. You could fine more about this in the following links: https://predictionio.incubator.apache.org/deploy/ https://github.com/apache/incubator-predictionio/tree/develop/examples/redeploy-script Hope this helps. Thanks Vaghawan On Sun, Jul 30, 2017 at 12:19 AM, Anshu Rajendra <[email protected]> wrote: > Hi, > > Is it possible to programmatically trigger pio commands like 'pio train' > and 'pio deploy' from within a java application or only from command line > within the app? We can create events and predict using an sdk but can we > also deploy any model programmatically? > > Any help would be very appreciated. > > Thanks, > Anshu >
