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

How to investigate failure of the integration tests?

Sqoop integration tests are truly integration - we run separate tomcat process with Sqoop 2 server and Hadoop MiniClusters to emulate real cluster as much as possible while still running on one single node. This is however making troubleshooting a bit difficult as various logs are on different places (as would be the case for real cluster). List of various important logs:

LocationNotes
test/target/surefire-reports/testName-output.txt

Main testng log. It will contain any code executed directly from the test Java Class - helper methods creating or inserting data to databases will log here

In addition this log will contain logs from MiniClusters - e.g. logs from HDFS/Mapreduce/YARN daemons.

  
  
  

I'm running tests on Mac computer and my focus is stolen several times during the test execution

If you see new Java processes created UI application and stealing the focus, then you should export this property to avoid that:

...