accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1467051 - /accumulo/branches/1.5/bin/accumulo
Date Thu, 11 Apr 2013 19:01:32 GMT
Author: ecn
Date: Thu Apr 11 19:01:31 2013
New Revision: 1467051

URL: http://svn.apache.org/r1467051
Log:
ACCUMULO-1244 fix log4 lookup for hadoop2

Modified:
    accumulo/branches/1.5/bin/accumulo

Modified: accumulo/branches/1.5/bin/accumulo
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/bin/accumulo?rev=1467051&r1=1467050&r2=1467051&view=diff
==============================================================================
--- accumulo/branches/1.5/bin/accumulo (original)
+++ accumulo/branches/1.5/bin/accumulo Thu Apr 11 19:01:31 2013
@@ -81,7 +81,7 @@ logger)  export ACCUMULO_OPTS="${ACCUMUL
 esac
 
 XML_FILES=${ACCUMULO_HOME}/conf
-LOG4J_JAR=$(ls $HADOOP_PREFIX/lib/log4j-*.jar | head -1)
+LOG4J_JAR=$(find $HADOOP_PREFIX/lib $HADOOP_PREFIX/share/hadoop/common/lib -name 'log4j*.jar'
-print 2>/dev/null | head -1)
 CLASSPATH=${XML_FILES}:${START_JAR}:${LOG4J_JAR}
 
 if [ -z "$JAVA_HOME" -o ! -d "$JAVA_HOME" ]; then



Mime
View raw message