if( !isSink() )
return;
// do not delete if initialized from within a task
if( isReplace() && conf.get( "mapred.task.partition" ) == null && !deletePath( conf ) )
throw new TapException( "unable to drop table: " + tableDesc.getTableName() );
if( !makeDirs( conf ) )
throw new TapException( "unable to create table: " + tableDesc.getTableName() );
if( username == null )
DBConfiguration.configureDB( conf, driverClassName, connectionUrl );
else
DBConfiguration.configureDB( conf, driverClassName, connectionUrl, username, password );