Moved where error is printed

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

Branch: refs/heads/master
Commit: d20599feb0705524d88dfb98f911aa94ca773482
Parents: c7482b0
Author: Amanda Moran <[email protected]>
Authored: Fri Jul 1 19:25:09 2016 +0000
Committer: Amanda Moran <[email protected]>
Committed: Fri Jul 1 19:25:09 2016 +0000

----------------------------------------------------------------------
 install/installer/traf_cloudera_mods | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/d20599fe/install/installer/traf_cloudera_mods
----------------------------------------------------------------------
diff --git a/install/installer/traf_cloudera_mods 
b/install/installer/traf_cloudera_mods
index c2c1c26..0147c2b 100755
--- a/install/installer/traf_cloudera_mods
+++ b/install/installer/traf_cloudera_mods
@@ -371,36 +371,36 @@ ssh -q -n $HDFS_NODE 'sudo su hdfs --command "' 
"$HADOOP_BIN_PATH"'/hdfs dfsadmi
 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"'
 errorFound=$?
-echo "ERROR Code: $errorFound"
 if [ $errorFound != 0 ]; then
+   echo "ERROR Code: $errorFound"
    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"'
 errorFound=$?
-echo "ERROR Code: $errorFound"
 if [ $errorFound != 0 ]; then
+   echo "ERROR Code: $errorFound"
    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"'
 errorFound=$?
-echo "ERROR Code: $errorFound"
 if [ $errorFound != 0 ]; then
+   echo "ERROR Code: $errorFound"
    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"'
 errorFound=$?
-echo "ERROR Code: $errorFound"
 if [ $errorFound != 0 ]; then
+   echo "ERROR Code: $errorFound"
    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"'
 errorFound=$?
-echo "ERROR Code: $errorFound"
 if [ $errorFound != 0 ]; then
+   echo "ERROR Code: $errorFound"
    echo "***ERROR: ($HADOOP_BIN_PATH/hdfs dfs -setfacl -R -m mask::rwx 
/hbase/archive) command failed"
    exit -1
 fi

Reply via email to