Skip to content
Snippets Groups Projects
Commit 1cbef081 authored by Patrick Wendell's avatar Patrick Wendell
Browse files

Response to Shivaram's review

parent cffe1c1d
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ trait Logging { ...@@ -93,7 +93,7 @@ trait Logging {
// threads do it concurrently (as SLF4J initialization is not thread safe). // threads do it concurrently (as SLF4J initialization is not thread safe).
protected def initLogging() { protected def initLogging() {
// If Log4j doesn't seem initialized, load a default properties file // If Log4j doesn't seem initialized, load a default properties file
def log4jInitialized = LogManager.getRootLogger.getAllAppenders.hasMoreElements val log4jInitialized = LogManager.getRootLogger.getAllAppenders.hasMoreElements
if (!log4jInitialized) { if (!log4jInitialized) {
val defaultLogProps = "org/apache/spark/default-log4j.properties" val defaultLogProps = "org/apache/spark/default-log4j.properties"
val classLoader = this.getClass.getClassLoader val classLoader = this.getClass.getClassLoader
......
...@@ -115,27 +115,30 @@ if [ ! -f "$FWDIR/RELEASE" ]; then ...@@ -115,27 +115,30 @@ if [ ! -f "$FWDIR/RELEASE" ]; then
fi fi
fi fi
if [ "$1" == "org.apache.spark.tools.JavaAPICompletenessChecker" ]; then TOOLS_DIR="$FWDIR"/tools
TOOLS_DIR="$FWDIR"/tools SPARK_TOOLS_JAR=""
SPARK_TOOLS_JAR="" if [ -e "$TOOLS_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9Tg].jar ]; then
if [ -e "$TOOLS_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9Tg].jar ]; then # Use the JAR from the SBT build
# Use the JAR from the SBT build export SPARK_TOOLS_JAR=`ls "$TOOLS_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9Tg].jar`
export SPARK_TOOLS_JAR=`ls "$TOOLS_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9Tg].jar` fi
fi if [ -e "$TOOLS_DIR"/target/spark-tools*[0-9Tg].jar ]; then
if [ -e "$TOOLS_DIR"/target/spark-tools*[0-9Tg].jar ]; then # Use the JAR from the Maven build
# Use the JAR from the Maven build # TODO: this also needs to become an assembly!
# TODO: this also needs to become an assembly! export SPARK_TOOLS_JAR=`ls "$TOOLS_DIR"/target/spark-tools*[0-9Tg].jar`
export SPARK_TOOLS_JAR=`ls "$TOOLS_DIR"/target/spark-tools*[0-9Tg].jar`
fi
fi fi
# Compute classpath using external script # Compute classpath using external script
CLASSPATH=`$FWDIR/bin/compute-classpath.sh` CLASSPATH=`$FWDIR/bin/compute-classpath.sh`
CLASSPATH="$CLASSPATH:$SPARK_TOOLS_JAR"
if [ "$1" == "org.apache.spark.tools.JavaAPICompletenessChecker" ]; then
CLASSPATH="$CLASSPATH:$SPARK_TOOLS_JAR"
fi
if $cygwin; then if $cygwin; then
CLASSPATH=`cygpath -wp $CLASSPATH` CLASSPATH=`cygpath -wp $CLASSPATH`
export SPARK_TOOLS_JAR=`cygpath -w $SPARK_TOOLS_JAR` if [ "$1" == "org.apache.spark.tools.JavaAPICompletenessChecker" ]; then
export SPARK_TOOLS_JAR=`cygpath -w $SPARK_TOOLS_JAR`
fi
fi fi
export CLASSPATH export CLASSPATH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment