@Override public RunningJob submitJob( Configuration c ) throws IOException { ClassLoader cl = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader( getClass().getClassLoader() ); try { return c.submit(); } catch ( InterruptedException | ClassNotFoundException e ) { throw new RuntimeException( e ); } finally { Thread.currentThread().setContextClassLoader( cl ); } }
@Override public RunningJob submitJob( org.pentaho.hadoop.shim.api.Configuration c ) throws IOException { ClassLoader cl = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader( getClass().getClassLoader() ); try { return c.submit(); } catch ( InterruptedException | ClassNotFoundException e ) { throw new RuntimeException( e ); } finally { Thread.currentThread().setContextClassLoader( cl ); } }