We are trying out ML feature of XPack 6.0.1. From kibana following the tutorials we are able to make it work.
However, I am trying to achieve the same using the JAVA library.
I can only get the instance of XPack and ML. However after ML we are not able to identify how to call the remaining API's espeically with no javadocs and tutorials anywhere.
xpackClient = new XPackClient(client);
machineLearningClient = xpackClient.machineLearning();
After getting machineLeaningClient , say I want to fetch all the jobs which are configured. We are unable to get that.
Can anyone please help/suggest.
Also, the curl command seems to be not working for me.
I tried using the getJobs method of MachineLearningClient but I am unable to identify what kind of Request object I have to pass. How do i create request object.
Can you please help with a code snippet for creating a request and passing that request object as an input to getJobs method.
For part 2, thanks. I missed the job_id part from the URL.
Can you please assist on part 1 as we are keen on using Java api for ML.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.