List of usage examples for org.apache.hadoop.mapreduce Job getJar
public String getJar()
From source file:org.springframework.data.hadoop.mapreduce.JobTests.java
License:Apache License
@Test public void testJarJob() throws Exception { Job job = ctx.getBean("jar-job", Job.class); assertTrue(ctx.isPrototype("jar-job")); assertNotNull(job.getJar()); assertEquals("true", job.getConfiguration().get("mapred.used.genericoptionsparser")); }
From source file:org.springframework.data.hadoop.mapreduce.JobTests.java
License:Apache License
@Test public void testCustomJarJob() throws Exception { Job job = ctx.getBean("custom-jar-job", Job.class); assertTrue(ctx.isPrototype("custom-jar-job")); assertNotNull(job.getJar()); assertEquals("true", job.getConfiguration().get("mapred.used.genericoptionsparser")); ClassLoader loader = job.getConfiguration().getClassLoader(); assertFalse(Thread.currentThread().getContextClassLoader().equals(loader)); }