|
@@ -89,7 +89,7 @@ done
|
|
|
set +x
|
|
set +x
|
|
|
if [ $exit_status == 0 ]
|
|
if [ $exit_status == 0 ]
|
|
|
then
|
|
then
|
|
|
- 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"`
|
|
|
echo "Copying $encoded_output_dir to '$UPLOAD_PATH' in HDFS"
|
|
echo "Copying $encoded_output_dir to '$UPLOAD_PATH' in HDFS"
|
|
|
hadoop fs -put -f $encoded_output_dir "$UPLOAD_PATH"
|
|
hadoop fs -put -f $encoded_output_dir "$UPLOAD_PATH"
|
|
|
exit_status=$(echo $?)
|
|
exit_status=$(echo $?)
|
|
@@ -111,4 +111,4 @@ then
|
|
|
exit_status = $failed
|
|
exit_status = $failed
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
-exit $exit_status
|
|
|
|
|
|
|
+exit $exit_status
|