THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
mvn -Dtest=org.apache.sqoop.integration.connector.kafka.FromRDBMSToKafkaTest -DfailIfNoTests=false verify |
You can disable the annoying java processes that pop up when you run the tests by running the following before using mvn:
No Format |
---|
export _JAVA_OPTIONS=-Djava.awt.headless=true |
...
- When using this option -Dsqoop.hadoop.runner.class=org.apache.sqoop.test.hadoop.HadoopLocalRunner, it does not use the minicluster and and much faster.
- http://wiki.apache.org/hadoop/HowToDebugMapReducePrograms
...
Code Block |
---|
/** * Detect MapReduce local mode. * * @return True if we're running in local mode */ private boolean isLocal() { // If framework is set to YARN, then we can't be running in local mode if("yarn".equals(globalConfiguration.get("mapreduce.framework.name"))) { return false; } // If job tracker address is "local" then we're running in local mode return "local".equals(globalConfiguration.get("mapreduce.jobtracker.address")) || "local".equals(globalConfiguration.get("mapred.job.tracker")); } |
How does debug the integration tests?
What DB does integration tests use today for storing the Sqoop entities ?
...