Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article, we will discuss 11 possible ways to deploy R Server on HDInsight Cluster. Some of these ways will help in automating the cluster creation (using scripts). Majority of them are related to deployment using Azure Resource Manager Templates. ARM Templates are very useful and can be deployed in several ways. Here are the 11 ways :
Let us discuss the above ways. I am not going into detailed description of all the ways - have provided guidance links and required code snippet wherever possible.
Basic way is to use Azure Portal. Here is an extensive guide : Create the cluster
Using the Nuget Package Microsoft.Azure.Management.HDInsight. The C# program is provided below. Replace with appropriate values for variables and run it. This program will create a Resource Group, a Storage Account and R Server on HDInsight Cluster.
We will be using the following template.json and parameters.json for #3 to #10. Save the following 2 json files in your local disk. Replace values in parameters.json with your own values.
Using Template Deployment. More information here : Deploy resources with Resource Manager templates and Azure portal.
Save the following powershell code in the same location as template.json and parameters.json. Run the powershell script as administrator.
Save the following bash script in the same location as template.json and parameters.json and run the bash script.
Save the following bash script in the same location as template.json and parameters.json and run the bash script.
Using the Microsoft Azure Resource Management Client Library for Ruby. Save the following ruby script in the same location as template.json and parameters.json and run the ruby script. More information : azure_mgmt_resources.
Using the Nuget Package Microsoft.Azure.Management.ResourceManager
Using Azure Resource Group Project. Visual Studio gives you a nice UI experience to invoke the script and provide some parameter values. More help here : Azure Resource Group for Visual Studio
Use this guide : Deploy with the REST API
This method lets you deploy a R Server HDInsight Cluster from your R session.
Using AzureSMR package, you can either deploy the above provided ARM templates using azureDeployTemplate() function (OR) create HDI cluster directly using azureCreateHDI() function.
More details here: Introducing the AzureSMR package: Manage Azure services from your R session.
Here is the code using azureCreateHDI() function :
I will update this document as when I find more new ways to create R Server on HDInsight Cluster. Please use the comments section to report any issues (OR) provide feedback on the above ways.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in