-
Notifications
You must be signed in to change notification settings - Fork 91
Cloud Deployment On Linux
Kwangje Cho edited this page Apr 19, 2019
·
7 revisions
The ARM deployment for DataX currently support only Windows. We have a plan to support multiplatforms (Linux and Mac) in the next release.
-
Install Powershell Core https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-6
-
Install Azure CLI https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest
- Open common.parameters.txt under DeploymentCloud/Deployment.DataX, provide TenantId and SubscriptionId.
- Open a shell / command prompt
- Run Powershell Core
- Follow the steps below to set up a DataX environment
- Run deployResources.ps1
- After the script is finished, the following steps should be done
- Setup secrets in KVs: Automated
- Run script actions for HDInsights
- Upload all files in DeploymentCloud/Deployment.Common/scripts to a storage account
- Add Script Actions Azure Portal > Resource Group > Select DataX resource group > Select HDInsight cluster > Script Actions > Submit New > Custom > Bash Script URL > Provide the URI of the script you uploaded in step 1
- Setup CosmosDB
- Create Production database and add the following set of collections
- commons
- configgenConfigs
- flows
- sparkClusters
- sparkJobs
- Upload the documents from DeploymentCloud/Deployment.Common/CosmosDB to each collection
- Create Production database and add the following set of collections
- Setup KVAccess
- To each KV, Make sure the following principals are added to the access policies
- The Webapp app
- The service AAD app
- SparkManagedIdentity
- Virtual Machine Scale Set
- To each KV, Make sure the following principals are added to the access policies
- Setup ServiceFabric
- Install SSL certificate on cluster nodes. Please refer to https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-dotnet-app-enable-https-endpoint#install-certificate-on-cluster-nodes
- Open port 443 in the Azure load balancer. Please refer to https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-dotnet-app-enable-https-endpoint#open-port-443-in-the-azure-load-balancer
- Make sure nuget and mono have been installed locally. Please refer to https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference
- Run deployApps.ps1
- Make sure nuget and mono have been installed locally. Please refer to https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference
- Run deploySample.ps1