Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions how-to-use-azureml/training/train-in-spark/train-in-spark.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,20 @@
" ssh_port=22, \n",
" username=os.environ.get('hdiusername', '<ssh_username>'), \n",
" password=os.environ.get('hdipassword', '<my_password>'))\n",
"\n",
"# The following Azure regions do not support attaching a HDI Cluster using the public IP address of the HDI Cluster.\n",
"# Instead, use the Azure Resource Manager ID of the HDI Cluster with the resource_id parameter:\n",
"# US East\n",
"# US West 2\n",
"# US South Central\n",
"# The resource ID of the HDI Cluster can be constructed using the\n",
"# subscription ID, resource group name, and cluster name using the following string format:\n",
"# /subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.HDInsight/clusters/<cluster_name>. \n",
"# If in US East, US West 2, or US South Central, use the following instead:\n",
"# attach_config = HDInsightCompute.attach_configuration(resource_id='<resource_id>',\n",
"# ssh_port=22,\n",
"# username=os.environ.get('hdiusername', '<ssh_username>'),\n",
"# password=os.environ.get('hdipassword', '<my_password>'))\n",
" hdi_compute = ComputeTarget.attach(workspace=ws, \n",
" name='myhdi', \n",
" attach_configuration=attach_config)\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,23 @@
" ssh_port=22,\n",
" username=username,\n",
" private_key_file='./.ssh/id_rsa')\n",
" attached_dsvm_compute = ComputeTarget.attach(workspace=ws,\n",
"\n",
"\n",
"# The following Azure regions do not support attaching a virtual machine using the public IP address of the VM.\n",
"# Instead, use the Azure Resource Manager ID of the VM with the resource_id parameter:\n",
"# US East\n",
"# US West 2\n",
"# US South Central\n",
"# The resource ID of the VM can be constructed using the\n",
"# subscription ID, resource group name, and VM name using the following string format:\n",
"# /subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.Compute/virtualMachines/<vm_name>. \n",
"# If in US East, US West 2, or US South Central, use the following instead:\n",
"# attach_config = RemoteCompute.attach_configuration(resource_id='<resource_id>',\n",
"# ssh_port=22,\n",
"# username='username',\n",
"# private_key_file='./.ssh/id_rsa')\n",
"\n",
" attached_dsvm_compute = ComputeTarget.attach(workspace=ws,\n",
" name=compute_target_name,\n",
" attach_configuration=attach_config)\n",
" attached_dsvm_compute.wait_for_completion(show_output=True)"
Expand Down