You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by li...@apache.org on 2017/02/13 07:29:43 UTC

[1/2] incubator-trafodion git commit: [TRAFODION-2471] pyinstaller: error command when grant privilege in HBase.

Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 554cd32f4 -> 3d7a61258


[TRAFODION-2471] pyinstaller: error command when grant privilege in HBase.


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

Branch: refs/heads/master
Commit: 0c3cdbdf0f487c79728fdf1e17a63b9e3c07b571
Parents: 8ad3a10
Author: Eason <hf...@gmail.com>
Authored: Thu Feb 9 14:48:10 2017 +0800
Committer: Eason <hf...@gmail.com>
Committed: Thu Feb 9 14:48:10 2017 +0800

----------------------------------------------------------------------
 install/python-installer/scripts/hdfs_cmds.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/0c3cdbdf/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 cf861b1..76a5a07 100755
--- a/install/python-installer/scripts/hdfs_cmds.py
+++ b/install/python-installer/scripts/hdfs_cmds.py
@@ -48,14 +48,14 @@ def run():
     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} /bulkload /lobs /hbase/archive /hbase-staging' % (hdfs_bin, traf_loc))
     run_cmd_as_user(hdfs_user, '%s dfs -chown -R %s:%s /hbase/archive /hbase-staging' % (hdfs_bin, hbase_user, hbase_user))
-    run_cmd_as_user(hdfs_user, '%s dfs -chown -R %s:%s %s/{trafodion_backups,bulkload,lobs} /bulkload /lobs' % (hdfs_bin, traf_user, traf_user, traf_loc))
+    run_cmd_as_user(hdfs_user, '%s dfs -chown -R %s:%s %s %s/{trafodion_backups,bulkload,lobs} /bulkload /lobs' % (hdfs_bin, traf_user, traf_user, traf_loc, traf_loc))
     run_cmd_as_user(hdfs_user, '%s dfs -setfacl -R -m user:%s:rwx /hbase/archive' % (hdfs_bin, traf_user))
     run_cmd_as_user(hdfs_user, '%s dfs -setfacl -R -m default:user:%s:rwx /hbase/archive' % (hdfs_bin, traf_user))
     run_cmd_as_user(hdfs_user, '%s dfs -setfacl -R -m mask::rwx /hbase/archive' % hdfs_bin)
 
     # Grant all privileges to the Trafodion principal in HBase
     if dbcfgs['secure_hadoop'] == 'Y':
-        run_cmd('grant "%s", "RWXC" | sudo -u %s hbase shell > /tmp/hbase_shell.out' % (traf_user, hbase_user))
+        run_cmd('echo "grant \'%s\', \'RWXC\'" | sudo -u %s hbase shell > /tmp/hbase_shell.out' % (traf_user, hbase_user))
         has_err = cmd_output('grep -c ERROR /tmp/hbase_shell.out')
         if int(has_err):
             err('Failed to grant HBase privileges to %s' % traf_user)


[2/2] incubator-trafodion git commit: Merge Fix for [TRAFODION-2471] pyinstaller: error command when grant privilege in HBase.

Posted by li...@apache.org.
Merge Fix for [TRAFODION-2471] pyinstaller: error command when grant privilege in HBase.


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

Branch: refs/heads/master
Commit: 3d7a612587b3d65b0a40c2c16f276b36f502bd0e
Parents: 554cd32 0c3cdbd
Author: Liu Ming <ov...@sina.com>
Authored: Mon Feb 13 07:29:18 2017 +0000
Committer: Liu Ming <ov...@sina.com>
Committed: Mon Feb 13 07:29:18 2017 +0000

----------------------------------------------------------------------
 install/python-installer/scripts/hdfs_cmds.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------