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:
parent
fd35311e4b
commit
c8b4581f20
@ -51,8 +51,8 @@ limitations under the License.
|
|||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<!-- Add classifier name to the JAR name -->
|
|
||||||
<build>
|
<build>
|
||||||
|
<!-- Add classifier name to the JAR name -->
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@ -62,6 +62,20 @@ limitations under the License.
|
|||||||
<classifier>hadoop${hadoop.profile}</classifier>
|
<classifier>hadoop${hadoop.profile}</classifier>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</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>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
public class TestHdfsExtract extends TestCase {
|
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_FILES = 5;
|
||||||
private static final int NUMBER_OF_ROWS_PER_FILE = 1000;
|
private static final int NUMBER_OF_ROWS_PER_FILE = 1000;
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
public class TestHdfsLoad extends TestCase {
|
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 String OUTPUT_FILE = "part-r-00000";
|
||||||
private static final int START_ID = 1;
|
private static final int START_ID = 1;
|
||||||
private static final int NUMBER_OF_IDS = 9;
|
private static final int NUMBER_OF_IDS = 9;
|
||||||
|
Loading…
Reference in New Issue
Block a user