You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by mg...@apache.org on 2018/06/26 09:34:26 UTC

[ambari] branch trunk updated: AMBARI-24186 Run Hive PreUpgradeTool with propert user

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

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


The following commit(s) were added to refs/heads/trunk by this push:
     new c7ca22a  AMBARI-24186 Run Hive PreUpgradeTool with propert user
c7ca22a is described below

commit c7ca22ac90008814b1f1dfeaa51f2e670f183a41
Author: Miklos Gergely <mg...@hortonworks.com>
AuthorDate: Tue Jun 26 10:43:16 2018 +0200

    AMBARI-24186 Run Hive PreUpgradeTool with propert user
---
 .../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 f8b2365..e5ac709 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
@@ -93,7 +93,7 @@ class HivePreUpgrade(Script):
     
     classpath = format("{source_dir}/hive2/lib/*:{source_dir}/hadoop/*:{source_dir}/hadoop/lib/*:{source_dir}/hadoop-mapreduce/*:{source_dir}/hadoop-mapreduce/lib/*:{target_dir}/hive/lib/hive-pre-upgrade.jar:{source_dir}/hive/conf")
     cmd = format("{java64_home}/bin/java -Djavax.security.auth.useSubjectCredsOnly=false -cp {classpath} org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool -execute")
-    Execute(cmd, user = "hive")
+    Execute(cmd, user = params.hive_user)
 
 if __name__ == "__main__":
   HivePreUpgrade().execute()