Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
mvn clean test -pl test -Dtest=org.apache.sqoop.integration.connector.kafka.FromRDBMSToKafkaTest

There are different profiles as well: slow and fast. The fast integration tests run by default, while the slow integration tests need to be explicitly ran:

Code Block
languagebash
mvn clean integration-test -Dslow
mvn clean integration-test -Dfast

How to investigate failure of the integration tests?

...

First check the tomcat.log under /path/to/sqoop//test/target/sqoop-cargo-tests/ org.apache.sqoop.integration.connector.jdbc.generic.FromRDBMSToHDFSTest/testBasic/log/tomcat.log

...

AM

...

org.apache.catalina.startup.Catalina

...

stopServerSEVERE:

...

Catalina.stop:

...

java.io.FileNotFoundException:

...

/var/folders/l8/hyl1hnqj3vq57gdf8f9nb0740000gp/T/cargo/conf/conf/server.xml

...

(No

...

such

...

file

...

or

...

directory)

...

at

...

java.io.FileInputStream.open(Native

...

Method)

...

at

...

java.io.FileInputStream.<init>(FileInputStream.java:146)

...

at

...

org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)

...

at

...

sun.reflect.NativeMethodAccessorImpl.invoke0(Native

...

Method)

...

at

...

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

Solution : Nuke the directory /var/folders/l8/hyl1hnqj3vq57gdf8f9nb0740000gp/T/cargo 

...