diff --git a/common/src/scripts/saveVersion.sh b/common/src/scripts/saveVersion.sh index 252874f6c3..996ad84f05 100644 --- a/common/src/scripts/saveVersion.sh +++ b/common/src/scripts/saveVersion.sh @@ -70,6 +70,7 @@ mkdir -p $src_dir/gen/org/apache/hive/common # In Windows, all the following string ends with \r, need to get rid of them branch=`echo $branch | tr -d '\r'` user=`echo $user | tr -d '\r'` +user=`echo $user | tr '\' ' ' ` date=`echo $date | tr -d '\r'` url=`echo $url | tr -d '\r'` srcChecksum=`echo $srcChecksum | tr -d '\r'` diff --git a/standalone-metastore/metastore-common/src/main/resources/saveVersion.sh b/standalone-metastore/metastore-common/src/main/resources/saveVersion.sh index 0d1a463fdd..c2adecaa39 100755 --- a/standalone-metastore/metastore-common/src/main/resources/saveVersion.sh +++ b/standalone-metastore/metastore-common/src/main/resources/saveVersion.sh @@ -70,6 +70,7 @@ mkdir -p $src_dir/gen/version/org/apache/hadoop/hive/metastore/annotation # In Windows, all the following string ends with \r, need to get rid of them branch=`echo $branch | tr -d '\r'` user=`echo $user | tr -d '\r'` +user=`echo $user | tr '\' ' ' ` date=`echo $date | tr -d '\r'` url=`echo $url | tr -d '\r'` srcChecksum=`echo $srcChecksum | tr -d '\r'` @@ -88,4 +89,5 @@ cat << EOF | \ user="USER", date="DATE", url="URL", srcChecksum="SRCCHECKSUM") package org.apache.hadoop.hive.metastore.annotation; + EOF diff --git a/standalone-metastore/metastore-server/src/main/resources/saveVersion.sh b/standalone-metastore/metastore-server/src/main/resources/saveVersion.sh index 0d1a463fdd..e4db0ae25d 100755 --- a/standalone-metastore/metastore-server/src/main/resources/saveVersion.sh +++ b/standalone-metastore/metastore-server/src/main/resources/saveVersion.sh @@ -70,6 +70,7 @@ mkdir -p $src_dir/gen/version/org/apache/hadoop/hive/metastore/annotation # In Windows, all the following string ends with \r, need to get rid of them branch=`echo $branch | tr -d '\r'` user=`echo $user | tr -d '\r'` +user=`echo $user | tr '\' ' ' ` date=`echo $date | tr -d '\r'` url=`echo $url | tr -d '\r'` srcChecksum=`echo $srcChecksum | tr -d '\r'`