chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asrab...@apache.org
Subject svn commit: r915081 - /hadoop/chukwa/trunk/src/test/org/apache/hadoop/chukwa/util/TestCreateRecordFile.java
Date Mon, 22 Feb 2010 21:53:16 GMT
Author: asrabkin
Date: Mon Feb 22 21:53:16 2010
New Revision: 915081

URL: http://svn.apache.org/viewvc?rev=915081&view=rev
Log:
CHUKWA-449. Fix path to test file

Modified:
    hadoop/chukwa/trunk/src/test/org/apache/hadoop/chukwa/util/TestCreateRecordFile.java

Modified: hadoop/chukwa/trunk/src/test/org/apache/hadoop/chukwa/util/TestCreateRecordFile.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/test/org/apache/hadoop/chukwa/util/TestCreateRecordFile.java?rev=915081&r1=915080&r2=915081&view=diff
==============================================================================
--- hadoop/chukwa/trunk/src/test/org/apache/hadoop/chukwa/util/TestCreateRecordFile.java (original)
+++ hadoop/chukwa/trunk/src/test/org/apache/hadoop/chukwa/util/TestCreateRecordFile.java Mon
Feb 22 21:53:16 2010
@@ -46,7 +46,12 @@
     String outputDir = System.getProperty("test.build.data", "/tmp");
 
     //input configs
-    File inputFile = new File("test/samples/ClientTrace.log");
+    String datadir = System.getenv("CHUKWA_DATA_DIR");
+    if(datadir == null)
+      datadir = "test/samples";
+    else 
+      datadir = datadir + File.separator + "log";
+    File inputFile = new File( datadir+ File.separator + "ClientTrace.log");
     Path outputFile = new Path(outputDir + "/" + this.getClass().getName() + "/ClientTrace.evt");
     String clusterName = "testClusterName";
     String dataType = "testDataType";



Mime
View raw message