Created
September 20, 2019 22:53
-
-
Save SaschaDittmann/d6932e7a8bfecad33d7507b7a8ab1233 to your computer and use it in GitHub Desktop.
Azure Step-By-Step - Load data from Azure Data Lake Storage to SQL Data Warehouse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd $HOME/clouddrive | |
wget -O azcopy-v10.tar https://aka.ms/downloadazcopy-v10-linux | |
tar -zxvf azcopy-v10.tar | |
mv azcopy_linux_amd64_10.2.1/* . | |
rm -rf azcopy_linux_amd64_10.2.1/ | |
rm azcopy-v10.tar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd $HOME/clouddrive | |
mkdir $HOME/clouddrive/data | |
./azcopy cp "https://contosoretaildw.blob.core.windows.net/contosoretaildw-tables" $HOME/clouddrive/data/ --recursive=true --overwrite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd $HOME/clouddrive | |
export adls1name="<adls1-account-name>" | |
az dls fs upload -n $adls1name --source-path "$HOME/clouddrive/data/contosoretaildw-tables" --destination-path /contosoretaildw --overwrite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd $HOME/clouddrive | |
export adls2name="<storage-account-name>" | |
./azcopy login | |
./azcopy cp "$HOME/clouddrive/data/contosoretaildw-tables/*" "https://$adls2name.dfs.core.windows.net/contosoretaildw" --recursive=true --overwrite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment