diff --git a/pom.xml b/pom.xml
index 344cef21..8a5b364d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -196,6 +196,14 @@ limitations under the License.
org.apache.maven.plugins
maven-surefire-plugin
2.9
+
+
+ ${project.build.outputDirectory}
+ ${project.build.outputDirectory}
+ ${project.build.outputDirectory}
+ ${project.build.outputDirectory}
+
+
org.apache.maven.plugins
diff --git a/src/java/com/cloudera/sqoop/util/AppendUtils.java b/src/java/com/cloudera/sqoop/util/AppendUtils.java
index d365e838..219ba3d7 100644
--- a/src/java/com/cloudera/sqoop/util/AppendUtils.java
+++ b/src/java/com/cloudera/sqoop/util/AppendUtils.java
@@ -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 = "-";
diff --git a/src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java b/src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
index 81d59366..deff3e18 100644
--- a/src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
+++ b/src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
@@ -22,6 +22,7 @@
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 void testFailedImportDueToIOException() throws IOException {
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);