You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sqoop.apache.org by ol...@apache.org on 2011/08/02 09:32:04 UTC
svn commit: r1153054 - in /incubator/sqoop/trunk: ./ pom.xml
src/java/com/cloudera/sqoop/util/AppendUtils.java
src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
Author: olamy
Date: Tue Aug 2 07:32:03 2011
New Revision: 1153054
URL: http://svn.apache.org/viewvc?rev=1153054&view=rev
Log:
configure surefire plugin to avoid creating temp file on .
Modified:
incubator/sqoop/trunk/ (props changed)
incubator/sqoop/trunk/pom.xml
incubator/sqoop/trunk/src/java/com/cloudera/sqoop/util/AppendUtils.java
incubator/sqoop/trunk/src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
Propchange: incubator/sqoop/trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Aug 2 07:32:03 2011
@@ -7,3 +7,4 @@ build.properties
src/*qoop.iml
.idea
target
+out
Modified: incubator/sqoop/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/pom.xml?rev=1153054&r1=1153053&r2=1153054&view=diff
==============================================================================
--- incubator/sqoop/trunk/pom.xml (original)
+++ incubator/sqoop/trunk/pom.xml Tue Aug 2 07:32:03 2011
@@ -196,6 +196,14 @@ limitations under the License.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.9</version>
+ <configuration>
+ <systemPropertyVariables>
+ <test.build.data>${project.build.outputDirectory}</test.build.data>
+ <java.io.tmpdir>${project.build.outputDirectory}</java.io.tmpdir>
+ <sqoop.src.dir>${project.build.outputDirectory}</sqoop.src.dir>
+ <sqoop.test.import.rootDir>${project.build.outputDirectory}</sqoop.test.import.rootDir>
+ </systemPropertyVariables>
+ </configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Modified: incubator/sqoop/trunk/src/java/com/cloudera/sqoop/util/AppendUtils.java
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/src/java/com/cloudera/sqoop/util/AppendUtils.java?rev=1153054&r1=1153053&r2=1153054&view=diff
==============================================================================
--- incubator/sqoop/trunk/src/java/com/cloudera/sqoop/util/AppendUtils.java (original)
+++ incubator/sqoop/trunk/src/java/com/cloudera/sqoop/util/AppendUtils.java Tue Aug 2 07:32:03 2011
@@ -42,7 +42,7 @@ public class AppendUtils {
private static final SimpleDateFormat DATE_FORM = new SimpleDateFormat(
"ddHHmmssSSS");
- private static final String TEMP_IMPORT_ROOT = "_sqoop";
+ private static final String TEMP_IMPORT_ROOT = System.getProperty( "sqoop.test.import.rootDir", "_sqoop");
private static final int PARTITION_DIGITS = 5;
private static final String FILEPART_SEPARATOR = "-";
Modified: incubator/sqoop/trunk/src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java?rev=1153054&r1=1153053&r2=1153054&view=diff
==============================================================================
--- incubator/sqoop/trunk/src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java (original)
+++ incubator/sqoop/trunk/src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java Tue Aug 2 07:32:03 2011
@@ -22,6 +22,7 @@ import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
+import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
@@ -57,6 +58,8 @@ public class TestImportJob extends Impor
Configuration conf = new Configuration();
+ LogFactory.getLog( getClass() ).info( " getWarehouseDir() " + getWarehouseDir() );
+
// Make the output dir exist so we know the job will fail via IOException.
Path outputPath = new Path(new Path(getWarehouseDir()), getTableName());
FileSystem fs = FileSystem.getLocal(conf);