This is an automated email from the ASF dual-hosted git repository.

mgergely pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 9bbb953  AMBARI-24979 Redirect Hive Pre-upgrade log to a logfile
9bbb953 is described below

commit 9bbb95355202a329f920887a3dcdeec6dbd3837d
Author: Miklos Gergely <mgerg...@hortonworks.com>
AuthorDate: Fri Nov 30 21:08:46 2018 +0100

    AMBARI-24979 Redirect Hive Pre-upgrade log to a logfile
---
 .../common-services/HIVE/0.12.0.2.0/package/scripts/pre_upgrade.py      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/pre_upgrade.py
 
b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/pre_upgrade.py
index 00f7c4a..7f51592 100644
--- 
a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/pre_upgrade.py
+++ 
b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/pre_upgrade.py
@@ -111,7 +111,7 @@ class HivePreUpgrade(Script):
     derby_jars = glob.glob(source_dir + "/hive2/lib/*derby-*.jar")
     if len(derby_jars) == 1:
       classpath = derby_jars[0] + ":" + classpath
-    cmd = format("{java64_home}/bin/java 
-Djavax.security.auth.useSubjectCredsOnly=false -cp {classpath} 
org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool -execute")
+    cmd = format("{java64_home}/bin/java 
-Djavax.security.auth.useSubjectCredsOnly=false -cp {classpath} 
org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool -execute &> 
{hive_log_dir}/pre_upgrade_{target_version}.log")
     Execute(cmd, user = params.hive_user)
 
 if __name__ == "__main__":

Reply via email to