Chris Song
Chris Song

Reputation: 159

How to create 3.0 version HDInsight cluster by Azure command line tools?

"azure hdinsight cluster create --help" does not appears having any option to choose specific version of HDInsight. Is there API level support?

Upvotes: 0

Views: 218

Answers (3)

Matt H
Matt H

Reputation: 213

The command you're referencing now supports the --version parameter. Try it out, or view this and other parameters by running this:

azure hdinsight cluster create --help

Upvotes: 1

RickH
RickH

Reputation: 2486

The value that the cli uses is hardcoded to 'default' in hdinsightservice.js in the azure-sdk-for-node.

Although not a great long-term solution, you could edit this file on your workstation. The default install will place it at /usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/hdinsight/hdinsightservice.js.

Change line 122 to read: Version : '3.0' instead of Version : 'default' and it should create a version 3.0 cluster.

Upvotes: 0

Jonathan Gao
Jonathan Gao

Reputation: 679

The cli can't specify version. Can you user Windows Azure PowerShell?

Upvotes: 0

Related Questions