@Override public Void apply() { igfs.mkdirs(path, props); return null; } });
/** {@inheritDoc} */ @Override public void mkdirs(IgfsPath path) throws IgniteException { igfs.mkdirs(path); }
/** {@inheritDoc} */ @Override public void mkdirs(IgfsPath path, @Nullable Map<String, String> props) throws IgniteException { igfs.mkdirs(path, props); }
/** {@inheritDoc} */ @Override protected Void call0(IgfsContext ctx) throws Exception { ctx.igfs().mkdirs(path, props); return null; }
/** {@inheritDoc} */ @Override public void mkdirs(String path) throws IOException { igfsEx.mkdirs(new IgfsPath(path)); }
primary.mkdirs(IGFS_PATH_DUAL);
/** * Tests correct work after an error. * * @throws Exception On error. */ private void doTestRecoveryAfterAnError(int useNewBits, HadoopErrorSimulator.Kind simulatorKind) throws Exception { try { IgfsPath inDir = new IgfsPath(PATH_INPUT); igfs.mkdirs(inDir); IgfsPath inFile = new IgfsPath(inDir, HadoopWordCount2.class.getSimpleName() + "-input"); generateTestFile(inFile.toString(), "red", red, "blue", blue, "green", green, "yellow", yellow); boolean useNewMapper = (useNewBits & 1) == 0; boolean useNewCombiner = (useNewBits & 2) == 0; boolean useNewReducer = (useNewBits & 4) == 0; for (int i = 0; i < 12; i++) { int bits = 1 << i; System.out.println("############################ Simulator kind = " + simulatorKind + ", Stage bits = " + bits); HadoopErrorSimulator sim = HadoopErrorSimulator.create(simulatorKind, bits); doTestWithErrorSimulator(sim, inFile, useNewMapper, useNewCombiner, useNewReducer); } } catch (Throwable t) { t.printStackTrace(); fail("Unexpected throwable: " + t); } }
/** * Tests whole job execution with all phases in all combination of new and old versions of API. * @throws Exception If fails. */ @Test public void testWholeMapReduceExecution() throws Exception { IgfsPath inDir = new IgfsPath(PATH_INPUT); igfs.mkdirs(inDir); IgfsPath inFile = new IgfsPath(inDir, HadoopWordCount2.class.getSimpleName() + "-input"); generateTestFile(inFile.toString(), "red", red, "blue", blue, "green", green, "yellow", yellow ); for (boolean[] apiMode: getApiModes()) { assert apiMode.length == 3; boolean useNewMapper = apiMode[0]; boolean useNewCombiner = apiMode[1]; boolean useNewReducer = apiMode[2]; doTest(inFile, useNewMapper, useNewCombiner, useNewReducer); } }
IgfsPath inDir = new IgfsPath(PATH_INPUT); igfs.mkdirs(inDir);
IgfsPath inDir = new IgfsPath(PATH_INPUT); igfs.mkdirs(inDir);
IgfsPath inDir = new IgfsPath(PATH_INPUT); igfs.mkdirs(inDir);
/** {@inheritDoc} */ @Override public void mkdirs(IgfsPath path) throws IgniteException { igfs.mkdirs(path); }
igfs.mkdirs(req.path(), req.properties());
/** {@inheritDoc} */ @Override public void mkdirs(IgfsPath path, @Nullable Map<String, String> props) throws IgniteException { igfs.mkdirs(path, props); }
/** {@inheritDoc} */ @Override protected Void call0(IgfsContext ctx) throws Exception { ctx.igfs().mkdirs(path, props); return null; }
igfs.mkdirs(req.path(), req.properties());