2
2
3
3
set -eo pipefail
4
4
5
+ # Licensed to the Apache Software Foundation (ASF) under one or more
6
+ # contributor license agreements. See the NOTICE file distributed with
7
+ # this work for additional information regarding copyright ownership.
8
+ # The ASF licenses this file to You under the Apache License, Version 2.0
9
+ # (the "License"); you may not use this file except in compliance with
10
+ # the License. You may obtain a copy of the License at
11
+ #
12
+ # http://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing, software
15
+ # distributed under the License is distributed on an "AS IS" BASIS,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
19
+
5
20
FILE=$1
6
21
7
22
if [ ! -f " $FILE " ]; then
@@ -19,8 +34,8 @@ cp "$FILE" "$OUTPUT_FILE"
19
34
20
35
contactTeamMsg=
" For any queries or support, kindly reach out to us at '[email protected] '."
21
36
endpoint=" .dfs."
22
- printf " Select 'HNS' if you're migrating to ABFS driver with Hierarchical Namespace enabled account,
23
- or 'Non-HNS' if you're migrating with Non-Hierarchical Namespace (FNS) account. \n"
37
+ printf " Select 'HNS' if you're migrating to ABFS driver for Hierarchical Namespace enabled account,
38
+ or 'Non-HNS' if you're migrating to ABFS driver for Non-Hierarchical Namespace (FNS) account. \n"
24
39
printf " WARNING: Please ensure the correct option is chosen as it will affect the configuration changes made to the file. \n"
25
40
printf " If you are unsure, follow the instructions below to check from Azure Portal: \n"
26
41
printf " * Go to the Azure Portal and navigate to your storage account. \n"
@@ -88,17 +103,19 @@ obsolete_configs_list=(
88
103
" storage.client.logging" # fs.azure.storage.client.logging
89
104
" storage.emulator.account.name" # fs.azure.storage.emulator.account.name
90
105
" storage.timeout" # fs.azure.storage.timeout
106
+ " enable.append.support" # fs.azure.enable.append.support
91
107
)
92
108
93
109
# Stop the script if any unsupported config is found
94
110
for key in " ${unsupported_configs_list[@]} " ; do
95
111
if grep -q " $key " " $OUTPUT_FILE " ; then
96
- echo " FAILURE: Remove the following configuration from file and rerun: '$key '"
112
+ echo " Remove the following configuration from file and rerun: '$key '"
97
113
failure=true
98
114
fi
99
115
done
100
116
101
117
if [ " $failure " = true ]; then
118
+ echo " FAILURE: Unsupported Config Found"
102
119
echo " $contactTeamMsg "
103
120
echo " Exiting..."
104
121
exit 1
0 commit comments