HDInsightAttachConfiguration Class

Represents configuration parameters for attaching HDInsightCompute targets.

Use the attach_configuration method of the HDInsightCompute class to specify attach parameters.

Initialize the configuration object.

Inheritance
HDInsightAttachConfiguration

Constructor

HDInsightAttachConfiguration(username, subscription_id=None, resource_group=None, cluster_name=None, resource_id=None, address=None, ssh_port='22', password='', private_key_file='', private_key_passphrase='')

Parameters

Name Description
username
Required
str

The username needed to access the resource.

subscription_id
str

The Azure subscription ID

default value: None
resource_group
str

Name of the resource group in which HDI cluster is located.

default value: None
cluster_name
str

The HDI cluster name

default value: None
resource_id
str

The arm resource_id of the resource to be attached.

default value: None
address
str

The address of the resource to be attached.

default value: None
ssh_port
int

The exposed port for the resource. Defaults to 22.

default value: 22
password
Required
str

The password needed to access the resource.

private_key_file
Required
str

The path to a file containing the private key for the resource.

private_key_passphrase
Required
str

The private key phrase needed to access the resource.

username
Required
str

The username needed to access the resource.

subscription_id
Required
str

The Azure subscription ID

resource_group
Required
str

Name of the resource group in which HDI cluster is located.

cluster_name
Required
str

The HDI cluster name

resource_id
Required
str

The arm resource_id of the resource to be attached.

address
Required
str

The address the resource to be attached.

ssh_port
Required
int

The exposed port for the resource. Defaults to 22.

password
Required
str

The password needed to access the resource.

private_key_file
Required
str

The path to a file containing the private key for the resource.

private_key_passphrase
Required
str

The private key phrase needed to access the resource.

Methods

validate_configuration

Check that the specified configuration values are valid.

Raises a ComputeTargetException if validation fails.

validate_configuration

Check that the specified configuration values are valid.

Raises a ComputeTargetException if validation fails.

validate_configuration()

Exceptions

Type Description