We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32d205d commit 4a157d8Copy full SHA for 4a157d8
desktop/core/src/desktop/lib/tasks/compress_files/compress_in_hdfs.sh
@@ -89,7 +89,7 @@ done
89
set +x
90
if [ $exit_status == 0 ]
91
then
92
- encoded_output_dir=`python -c "import urllib;print urllib.quote(raw_input())" <<< "$temp_output_dir/$ARCHIVE_NAME"`
+ encoded_output_dir=`python -c "import urllib.parse;print(urllib.parse.quote(input()))" <<< "$temp_output_dir/$ARCHIVE_NAME"`
93
echo "Copying $encoded_output_dir to '$UPLOAD_PATH' in HDFS"
94
hadoop fs -put -f $encoded_output_dir "$UPLOAD_PATH"
95
exit_status=$(echo $?)
@@ -111,4 +111,4 @@ then
111
exit_status = $failed
112
fi
113
114
-exit $exit_status
+exit $exit_status
0 commit comments