forked from WANdisco/fusion-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zone-adls1.conf
28 lines (21 loc) · 1.13 KB
/
zone-adls1.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 "adls1" "$SAVE_ENV"
validate_hdi_version "$HDI_VERSION"
update_var HDI_VERSION "Enter the HDI version for $ZONE_NAME" "" validate_hdi_version
update_var FS_ADLS_HOME_HOSTNAME "Enter the ADLS home hostname for $ZONE_NAME" "example.westeurope.azuredatalakestore.net" validate_hostname
update_var FS_ADLS_HOME_MOUNTPOINT "Enter the ADLS home mountpoint for $ZONE_NAME" "/" validate_not_empty
update_var FS_ADL_HANDSHAKE_USER "Enter the ADL handshake user for $ZONE_NAME" "" validate_not_empty
update_var FS_ADL_OAUTH2_CREDENTIAL "Enter the ADL OAUTH2 Credential for $ZONE_NAME" "" validate_not_empty
update_var FS_ADL_OAUTH2_REFRESH_URL "Enter the ADL OAUTH2 Refresh URL for $ZONE_NAME" "https://login.microsoftonline.com/example/oauth2/token" validate_not_example
update_var FS_ADL_OAUTH2_CLIENT_ID "Enter the ADL OAUTH2 Client ID for $ZONE_NAME" "" validate_not_empty
save_var PLATFORM "hcfs-azure-hdi-${HDI_VERSION}" "$SAVE_ENV"