From a9a0713d2f8b51a759410162138e6251427a19c1 Mon Sep 17 00:00:00 2001 From: Sheri Gilley Date: Mon, 7 Jan 2019 12:57:58 -0600 Subject: [PATCH] Delete donotupload.py --- .../donotupload.py | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 ignore/doc-qa/how-to-set-up-training-targets/donotupload.py diff --git a/ignore/doc-qa/how-to-set-up-training-targets/donotupload.py b/ignore/doc-qa/how-to-set-up-training-targets/donotupload.py deleted file mode 100644 index 72ed8265..00000000 --- a/ignore/doc-qa/how-to-set-up-training-targets/donotupload.py +++ /dev/null @@ -1,40 +0,0 @@ - -from azureml.core import Workspace -ws = Workspace.from_config() - -from azureml.core.compute import ComputeTarget, HDInsightCompute -from azureml.exceptions import ComputeTargetException - -try: - # if you want to connect using SSH key instead of username/password you can provide parameters private_key_file and private_key_passphrase - attach_config = HDInsightCompute.attach_configuration(address='sheri2-ssh.azurehdinsight.net', - ssh_port=22, - username='sshuser', - password='ChangePassw)rd12') - hdi_compute = ComputeTarget.attach(workspace=ws, - name='sherihdi2', - attach_configuration=attach_config) - -except ComputeTargetException as e: - print("Caught = {}".format(e.message)) - hdi_compute = ComputeTarget(workspace=ws, name='sherihdi') - - -hdi_compute.wait_for_completion(show_output=True) - -# -from azureml.core.runconfig import RunConfiguration -from azureml.core.conda_dependencies import CondaDependencies - - -# use pyspark framework -run_hdi = RunConfiguration(framework="pyspark") - -# Set compute target to the HDI cluster -run_hdi.target = hdi_compute.name - -# specify CondaDependencies object to ask system installing numpy -cd = CondaDependencies() -cd.add_conda_package('numpy') -run_hdi.environment.python.conda_dependencies = cd -# \ No newline at end of file