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());
}
Aggregations