Search in sources :

Example 1 with DriverForTest

use of org.apache.hadoop.mapreduce.lib.db.DriverForTest in project hadoop by apache.

the class TestDBInputFormat method setupDriver.

private void setupDriver(JobConf configuration) throws Exception {
    configuration.set(DBConfiguration.URL_PROPERTY, "testUrl");
    DriverManager.registerDriver(new DriverForTest());
    configuration.set(DBConfiguration.DRIVER_CLASS_PROPERTY, DriverForTest.class.getCanonicalName());
}
Also used : DriverForTest(org.apache.hadoop.mapreduce.lib.db.DriverForTest)

Aggregations

DriverForTest (org.apache.hadoop.mapreduce.lib.db.DriverForTest)1