Skip to content

Commit

Permalink
LIHADOOP-18918: Dr. Elephant should support all play versions
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayrai committed Apr 8, 2016
1 parent bfd218f commit 313c99d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

<a href=""><img src="images/wiki/dr-elephant-logo-150x150.png" align="left" hspace="10" vspace="6"></a>

**Dr. Elephant** is a performance monitoring and tuning tool for Hadoop. He automatically gathers all the metrics, runs analysis on them presents them in a simple way for easy consumption. His goal is to improve developer productivity and increase cluster efficiency by making it easier to tune Hadoop jobs. He analyzes Hadoop/Spark jobs using a set of configurable, rule based heuristics that provide insights on how a job performed and uses the results to make suggestions on how to tune the job to make it perform more efficiently.

**Dr. Elephant** is a performance monitoring and tuning tool for Hadoop and Spark. It automatically gathers all the metrics, runs analysis on them, and presents them in a simple way for easy consumption. Its goal is to improve developer productivity and increase cluster efficiency by making it easier to tune the jobs. It analyzes the Hadoop and Spark jobs using a set of pluggable, configurable, rule-based heuristics that provide insights on how a job performed, and then uses the results to make suggestions about how to tune the job to make it perform more efficiently.

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion app-conf/elephant.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ db_password=""

# Additional Configuration
# Check https://www.playframework.com/documentation/2.2.x/ProductionConfiguration
jvm_props="-Devolutionplugin=enabled -DapplyEvolutions.default=true"
jvm_args="-Devolutionplugin=enabled -DapplyEvolutions.default=true"
10 changes: 9 additions & 1 deletion compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ function print_usage(){
echo "usage: ./compile.sh PATH_TO_CONFIG_FILE(optional)"
}

function play_command() {
if type activator 2>/dev/null; then
activator "$@"
else
play "$@"
fi
}

# Default configurations
HADOOP_VERSION="2.3.0"
SPARK_VERSION="1.4.0"
Expand Down Expand Up @@ -81,7 +89,7 @@ stop_script=${project_root}/scripts/stop.sh
rm -rf ${project_root}/dist
mkdir dist

play $OPTS clean test compile dist
play_command $OPTS clean test compile dist

cd target/universal

Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ logLevel := Level.Warn
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.2")
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % Option(System.getProperty("play.version")).getOrElse("2.2.2"))
2 changes: 1 addition & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ else
exit 1
fi

OPTS+=" $jvm_props -Djava.library.path=$JAVA_LIB_PATH"
OPTS+=" $jvm_args -Djava.library.path=$JAVA_LIB_PATH"
OPTS+=" -Dhttp.port=$port"
OPTS+=" -Ddb.default.url=$db_loc -Ddb.default.user=$db_user -Ddb.default.password=$db_password"

Expand Down

0 comments on commit 313c99d

Please sign in to comment.