Repository: incubator-trafodion Updated Branches: refs/heads/master e8017273e -> 64ace98a2
Trafodion HDFS access issue needs to be solved by changing umask Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/c7482b00 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/c7482b00 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/c7482b00 Branch: refs/heads/master Commit: c7482b00b4a680dc2f8e7a42936620340af24070 Parents: f4d9910 Author: Amanda Moran <[email protected]> Authored: Wed Jun 29 18:19:30 2016 +0000 Committer: Amanda Moran <[email protected]> Committed: Wed Jun 29 18:19:30 2016 +0000 ---------------------------------------------------------------------- install/installer/traf_cloudera_mods | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/c7482b00/install/installer/traf_cloudera_mods ---------------------------------------------------------------------- diff --git a/install/installer/traf_cloudera_mods b/install/installer/traf_cloudera_mods index 15919c3..c2c1c26 100755 --- a/install/installer/traf_cloudera_mods +++ b/install/installer/traf_cloudera_mods @@ -214,6 +214,9 @@ curl -k -X PUT -H 'Content-Type:application/json' -u $ADMIN:$PASSWORD --data \ "items": [ { "name":"dfs_namenode_acls_enabled", "value":"true" + }, { + "name":"dfs_umaskmode", + "value":"0002" } ] }' \ $URL/api/v1/clusters/$CLUSTER_NAME/services/$HDFS/config > $LOCAL_WORKDIR/traf_hdfs_config_temp @@ -367,27 +370,37 @@ ssh -q -n $HDFS_NODE 'sudo su hdfs --command "' "$HADOOP_BIN_PATH"'/hdfs dfsadmi # enabled and HDFS has been restarted echo "***INFO: Setting HDFS ACLs for snapshot scan support" ssh -q -n $HDFS_NODE 'sudo su hdfs --command "' "$HADOOP_BIN_PATH"'/hdfs dfs -mkdir -p /hbase/archive"' -if [ $? != 0 ]; then +errorFound=$? +echo "ERROR Code: $errorFound" +if [ $errorFound != 0 ]; then echo "***ERROR: ($HADOOP_BIN_PATH/hdfs dfs -mkdir -p /hbase/archive) command failed" exit -1 fi ssh -q -n $HDFS_NODE 'sudo su hdfs --command "' "$HADOOP_BIN_PATH"'/hdfs dfs -chown hbase:hbase /hbase/archive"' -if [ $? != 0 ]; then +errorFound=$? +echo "ERROR Code: $errorFound" +if [ $errorFound != 0 ]; then echo "***ERROR: ($HADOOP_BIN_PATH/hdfs dfs -chown hbase:hbase /hbase/archive) command failed" exit -1 fi ssh -q -n $HDFS_NODE 'sudo su hdfs --command "' "$HADOOP_BIN_PATH"'/hdfs dfs -setfacl -R -m user:'"$TRAF_USER"':rwx /hbase/archive"' -if [ $? != 0 ]; then +errorFound=$? +echo "ERROR Code: $errorFound" +if [ $errorFound != 0 ]; then echo "***ERROR: ($HADOOP_BIN_PATH/hdfs dfs -setfacl -R -m user:$TRAF_USER:rwx /hbase/archive) command failed" exit -1 fi ssh -q -n $HDFS_NODE 'sudo su hdfs --command "' "$HADOOP_BIN_PATH"'/hdfs dfs -setfacl -R -m default:user:'"$TRAF_USER"':rwx /hbase/archive"' -if [ $? != 0 ]; then +errorFound=$? +echo "ERROR Code: $errorFound" +if [ $errorFound != 0 ]; then echo "***ERROR: ($HADOOP_BIN_PATH/hdfs dfs -setfacl -R -m default:user:$TRAF_USER:rwx /hbase/archive) command failed" exit -1 fi ssh -q -n $HDFS_NODE 'sudo su hdfs --command "' "$HADOOP_BIN_PATH"'/hdfs dfs -setfacl -R -m mask::rwx /hbase/archive"' -if [ $? != 0 ]; then +errorFound=$? +echo "ERROR Code: $errorFound" +if [ $errorFound != 0 ]; then echo "***ERROR: ($HADOOP_BIN_PATH/hdfs dfs -setfacl -R -m mask::rwx /hbase/archive) command failed" exit -1 fi
