forked from WANdisco/fusion-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zone-adls2.conf
28 lines (20 loc) · 1.07 KB
/
zone-adls2.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
: ${default_port_offset:=0}
validate_hdi_version() {
version="$1"
case "$version" in
3.6) return 0;;
4.0) return 0;;
esac
echo "Supported versions are: 3.6, 4.0"
return 1
}
save_var ADLS_GEN "adls2" "$SAVE_ENV"
validate_hdi_version "$HDI_VERSION"
update_var HDI_VERSION "Enter the HDI version for $ZONE_NAME" "" validate_hdi_version
update_var AZURE_STORAGE_ACCT_NAME "Enter the Azure storage account name for $ZONE_NAME" "" validate_not_empty
update_var AZURE_STORAGE_CONTAINER "Enter the Azure storage container for $ZONE_NAME" "" validate_not_empty
update_var FS_AZURE_ACCOUNT_KEY "Enter the Azure account key for $ZONE_NAME" "" validate_not_empty
update_var FS_DEFAULT_FS "Enter the default FS for $ZONE_NAME" "abfss://$AZURE_STORAGE_CONTAINER@$AZURE_STORAGE_ACCT_NAME.dfs.core.windows.net/" validate_not_example
update_var FS_FUSION_UNDERLYING_FS "Enter the underlying FS for $ZONE_NAME" "abfs://$AZURE_STORAGE_CONTAINER@$AZURE_STORAGE_ACCT_NAME.dfs.core.windows.net/" validate_not_example
save_var PLATFORM "hcfs-azure-hdi-${HDI_VERSION}" "$SAVE_ENV"