Skip to content

Commit

Permalink
A tmp commit trying to test Nertz Spades deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
timyitong committed Jun 15, 2015
1 parent feb8a90 commit 90ba5ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions app/com/linkedin/drelephant/util/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.apache.log4j.Logger;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
import play.Play;


public final class Utils {
Expand Down Expand Up @@ -112,11 +113,11 @@ public static void publishMetrics(MapReduceApplicationData jobData) {
*/
public static Document loadXMLDoc(String filePath) {
InputStream instream = null;
try {
instream = new FileInputStream(filePath);
} catch (FileNotFoundException e) {
throw new RuntimeException("File " + filePath + " does not exist.", e);
}
// try {
instream = Play.application().resourceAsStream(filePath);
// } catch (FileNotFoundException e) {
// throw new RuntimeException("File " + filePath + " does not exist.", e);
// }

Document document = null;
try {
Expand Down
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ unmanagedClasspath in Compile ++= update.value.select(configurationFilter("compi

libraryDependencies ++= Seq(
"com.linkedin.hadoop" % "hadoop-common" % "2.3.0.+" % "compileonly",
"com.linkedin.hadoop" % "hadoop-hdfs" % "2.3.0.+" % "compileonly",
"com.linkedin.hadoop" % "hadoop-mapreduce-client-core" % "2.3.0.+" % "compileonly"
)

Expand Down
2 changes: 1 addition & 1 deletion compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ stop_script=${project_root}/stop.sh
rm -rf ${project_root}/dist
mkdir dist

play clean compile test dist
play clean compile dist

cd target/universal

Expand Down

0 comments on commit 90ba5ca

Please sign in to comment.