@Override public int runTool( String[] args, Configuration c ) { return delegate.runTool( args, c ); }
@Override public ShimVersion getVersion() { return delegate.getVersion(); } }
@Override public int runTool( List<String> args, Properties properties ) { Configuration configuration = hadoopShim.createConfiguration(); for ( Map.Entry<String, String> entry : Maps.fromProperties( properties ).entrySet() ) { configuration.set( entry.getKey(), entry.getValue() ); } try { // Make sure Sqoop throws exceptions instead of returning a status of 1 System.setProperty( SQOOP_THROW_ON_ERROR, Boolean.toString( true ) ); configureShim( configuration ); return sqoopShim.runTool( args.toArray( new String[args.size()] ), configuration ); } catch ( Exception e ) { LOGGER.error( "Error executing sqoop", e ); return 1; } }