5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-04 01:00:46 +08:00

SQOOP-1067: Sqoop2: Tests should not use /tmp/ directory for storing data

(Jarek Jarcec Cecho via Kate Ting)
This commit is contained in:
Kate Ting 2013-06-15 15:27:50 -04:00
parent fd35311e4b
commit c8b4581f20
3 changed files with 17 additions and 3 deletions

View File

@ -51,8 +51,8 @@ limitations under the License.
</dependencies>
<!-- Add classifier name to the JAR name -->
<build>
<!-- Add classifier name to the JAR name -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -62,6 +62,20 @@ limitations under the License.
<classifier>hadoop${hadoop.profile}</classifier>
</configuration>
</plugin>
<!--
Propagate our build directory to the tests
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<maven.build.directory>${project.build.directory}</maven.build.directory>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -47,7 +47,7 @@
public class TestHdfsExtract extends TestCase {
private static final String INPUT_ROOT = "/tmp/sqoop/warehouse/";
private static final String INPUT_ROOT = System.getProperty("maven.build.directory", "/tmp") + "/sqoop/warehouse/";
private static final int NUMBER_OF_FILES = 5;
private static final int NUMBER_OF_ROWS_PER_FILE = 1000;

View File

@ -46,7 +46,7 @@
public class TestHdfsLoad extends TestCase {
private static final String OUTPUT_ROOT = "/tmp/sqoop/warehouse/";
private static final String OUTPUT_ROOT = System.getProperty("maven.build.directory", "/tmp") + "/sqoop/warehouse/";
private static final String OUTPUT_FILE = "part-r-00000";
private static final int START_ID = 1;
private static final int NUMBER_OF_IDS = 9;