Reputation: 6299
I am running a sequence spark jobs on HDI cluster. I need HDI cluster to be available for test running time alone. So I want to do the following using Java
How can I do the above using Java program in Azure?
Upvotes: 2
Views: 302
Reputation: 19205
Currently, Azure does not provide Java SDK for HDI cluster.
But you could use Rest API to create and delete HDI cluster.
PUT https://management.azure.com/subscriptions/{subscription Id}/resourceGroups/{resourceGroup Name}/providers/Microsoft.HDInsight/clusters/{cluster name}?api-version={api-version}
DELETE https://management.azure.com/subscriptions/{subscription Id}/resourceGroups/{resourceGroup Name}/providers/Microsoft.HDInsight/clusters/{cluster name}?api-version={api-version}
In java, you could write a program to call these API.
Upvotes: 2
Reputation: 12768
Currently, these are different methods you can use to set up an HDInsight cluster.
For more details, refer "Set up clusters in HDInsight with Hadoop, Spark, Kafka, and more".
You may leave you feedback here:
https://feedback.azure.com/forums/217335-hdinsight
All of the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.
Upvotes: 2