trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sand...@apache.org
Subject [1/2] trafodion git commit: pyinstaller fix - kerberos related issues while executing hdfs commands
Date Sat, 03 Feb 2018 03:23:23 GMT
Repository: trafodion
Updated Branches:
  refs/heads/release2.2 0d68dfe4e -> 875cb1700


pyinstaller fix - kerberos related issues while executing hdfs commands


Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/2a6282c1
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/2a6282c1
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/2a6282c1

Branch: refs/heads/release2.2
Commit: 2a6282c16989ab5cb6d2806b568989e3f567398c
Parents: 5be0d2e
Author: Eason <hfutmkby@gmail.com>
Authored: Tue Jan 30 16:00:29 2018 +0800
Committer: Eason <hfutmkby@gmail.com>
Committed: Tue Jan 30 16:00:29 2018 +0800

----------------------------------------------------------------------
 install/python-installer/scripts/hdfs_cmds.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/2a6282c1/install/python-installer/scripts/hdfs_cmds.py
----------------------------------------------------------------------
diff --git a/install/python-installer/scripts/hdfs_cmds.py b/install/python-installer/scripts/hdfs_cmds.py
index 12d342c..df39d94 100755
--- a/install/python-installer/scripts/hdfs_cmds.py
+++ b/install/python-installer/scripts/hdfs_cmds.py
@@ -45,7 +45,7 @@ def run():
     traf_user = dbcfgs['traf_user']
     hdfs_user = dbcfgs['hdfs_user']
     hbase_user = dbcfgs['hbase_user']
-    hbase_group = cmd_output('%s groups %s | cut -d" " -f3' % (hdfs_bin, hbase_user))
+    hbase_group = run_cmd_as_user(hdfs_user, '%s groups %s | cut -d" " -f3' % (hdfs_bin,
hbase_user))
 
     run_cmd_as_user(hdfs_user, '%s dfsadmin -safemode wait' % hdfs_bin)
     run_cmd_as_user(hdfs_user, '%s dfs -mkdir -p %s/{trafodion_backups,bulkload,lobs} /hbase/archive'
% (hdfs_bin, traf_loc))


Mime
View raw message