Skip to content

Commit 4a157d8

Browse files
tarunjangidtj563
andauthored
[filebrowser] updated file compression in hdfs to support py3 (#3734)
* [filebrowser] updated file compression to support py3 * [filebrowser] removed Py2 check --------- Co-authored-by: tarunjangid <[email protected]>
1 parent 32d205d commit 4a157d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

desktop/core/src/desktop/lib/tasks/compress_files/compress_in_hdfs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ done
8989
set +x
9090
if [ $exit_status == 0 ]
9191
then
92-
encoded_output_dir=`python -c "import urllib;print urllib.quote(raw_input())" <<< "$temp_output_dir/$ARCHIVE_NAME"`
92+
encoded_output_dir=`python -c "import urllib.parse;print(urllib.parse.quote(input()))" <<< "$temp_output_dir/$ARCHIVE_NAME"`
9393
echo "Copying $encoded_output_dir to '$UPLOAD_PATH' in HDFS"
9494
hadoop fs -put -f $encoded_output_dir "$UPLOAD_PATH"
9595
exit_status=$(echo $?)
@@ -111,4 +111,4 @@ then
111111
exit_status = $failed
112112
fi
113113

114-
exit $exit_status
114+
exit $exit_status

0 commit comments

Comments
 (0)