ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject [1/2] git commit: Argus-125:Remove Error Message when XaAgent inject fails with Gets 'ERROR: XASecure Agent is not located' while running HDFS commands'
Date Wed, 22 Oct 2014 04:29:26 GMT
Repository: incubator-argus
Updated Branches:
  refs/heads/master 12c082f18 -> 45d208cf9


Argus-125:Remove Error Message when XaAgent inject fails with Gets
'ERROR: XASecure Agent is not located' while running HDFS commands'

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

Branch: refs/heads/master
Commit: dfa34218e2a96efdcd448e48a02cd39dab06d6c7
Parents: 12c082f
Author: rmani <rmani@hortonworks.com>
Authored: Tue Oct 21 21:13:11 2014 -0700
Committer: rmani <rmani@hortonworks.com>
Committed: Tue Oct 21 21:13:11 2014 -0700

----------------------------------------------------------------------
 hdfs-agent/conf/xasecure-hadoop-env.sh | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/dfa34218/hdfs-agent/conf/xasecure-hadoop-env.sh
----------------------------------------------------------------------
diff --git a/hdfs-agent/conf/xasecure-hadoop-env.sh b/hdfs-agent/conf/xasecure-hadoop-env.sh
index 1c42847..afe8018 100644
--- a/hdfs-agent/conf/xasecure-hadoop-env.sh
+++ b/hdfs-agent/conf/xasecure-hadoop-env.sh
@@ -20,8 +20,8 @@ if [ -f ${HADOOP_HOME}/conf/argus-security.xml ]
 then
 	echo "$0" | grep -q beeswax_server.sh > /dev/null 2>&1
 	if [ $? -ne 0 ]
-	then
-		XASECURE_AGENT_PATH="`ls -1 ${HADOOP_HOME}/lib/hdfs-agent-*.jar | head -1`"
+	then 
+		XASECURE_AGENT_PATH="`ls -1 ${HADOOP_HOME}/lib/hdfs-agent-*.jar > /dev/null | head -1`"
 		if [ -f "${XASECURE_AGENT_PATH}" ]
 		then
 	    	if [ "${XASECURE_INIT}" != "0" ]
@@ -35,8 +35,6 @@ then
 	                	export HADOOP_SECONDARYNAMENODE_OPTS=" ${XASECURE_AGENT_OPTS} ${HADOOP_SECONDARYNAMENODE_OPTS}"
 	        	fi
 	    	fi
-		else
-	    	echo "ERROR: XASecure Agent is not located at [${XASECURE_AGENT_PATH}]. Exiting ..."
-		fi
+	    fi
 	fi
 fi


Mime
View raw message