Galet
Galet

Reputation: 6299

How to create/delete HDI cluster using Java in Azure

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

Answers (2)

Shui shengbao
Shui shengbao

Reputation: 19205

Currently, Azure does not provide Java SDK for HDI cluster.

But you could use Rest API to create and delete HDI cluster.

Create

PUT https://management.azure.com/subscriptions/{subscription Id}/resourceGroups/{resourceGroup Name}/providers/Microsoft.HDInsight/clusters/{cluster name}?api-version={api-version}

Delete

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

CHEEKATLAPRADEEP
CHEEKATLAPRADEEP

Reputation: 12768

Currently, these are different methods you can use to set up an HDInsight cluster.

enter image description here

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

Related Questions