MCPcopy Create free account
hub / github.com/WinVector/Logistic / newJob

Method newJob

src/com/winvector/logistic/mr/WritableUtils.java:28–36  ·  view source on GitHub ↗
(final Configuration mrConfig)

Source from the content-addressed store, hash-verified

26public final class WritableUtils {
27
28 public static final Job newJob(final Configuration mrConfig) throws IOException {
29 //// Hadoop 0.20.2 way of doing this (works in 0.21.0, used in their examples but depreciated)
30 /// @SuppressWarnings("deprecation")
31 final Job job = new Job(mrConfig);
32 //// Hadoop 0.21.0 way of doing this
33 // final Cluster clus = new Cluster(mrConfig);
34 //final Job job = Job.getInstance(clus,mrConfig);
35 return job;
36 }
37
38 public static String readFirstLine(final Configuration mrConfig, final Path pathIn) throws IOException {
39 final FSDataInputStream fdi = pathIn.getFileSystem(mrConfig).open(pathIn);

Callers 5

scoreMethod · 0.95
scoreMethod · 0.95
evalMethod · 0.95
ruDefStepMethod · 0.95
ruLevelStepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected