Package com.asakusafw.yaess.core

Examples of com.asakusafw.yaess.core.HadoopScript


        MockJobClient c2 = new MockJobClient("testing", COMPLETED);
        JobClientProfile profile = new JobClientProfile("testing", list(c1), 1000, 10);
        QueueHadoopScriptHandler handler = create();
        handler.doConfigure(profile);
        ExecutionContext context = context();
        HadoopScript script = script();

        handler.execute(ExecutionMonitor.NULL, context, script);
        handler.execute(ExecutionMonitor.NULL, context, script);

        assertThat(c1.count, is(greaterThan(0)));
View Full Code Here


        ExecutionContext context = new ExecutionContext(
                "b", "f", "e", ExecutionPhase.MAIN,
                Collections.<String, String>emptyMap(),
                rc.unapply());

        HadoopScript script = script();
        handler.execute(ExecutionMonitor.NULL, context, script);

        JobScript js = c1.registered.get("testing");
        assertThat(RuntimeContext.DEFAULT.apply(js.getEnvironmentVariables()), is(rc));
    }
View Full Code Here

        prop.put("p", "prop");

        Map<String, String> env = new HashMap<String, String>();
        env.put("e", "env");

        return new HadoopScript("s", Collections.<String>emptySet(), "Cls", prop, env);
    }
View Full Code Here

                }
                results.add(new ScriptJob<CommandScript>(exec.resolve(context, handler), handler));
                break;
            }
            case HADOOP: {
                HadoopScript exec = (HadoopScript) execution;
                results.add(new ScriptJob<HadoopScript>(exec.resolve(context, hadoopHandler), hadoopHandler));
                break;
            }
            default:
                throw new AssertionError(MessageFormat.format(
                        "Unknown execution script: {0}",
View Full Code Here

TOP

Related Classes of com.asakusafw.yaess.core.HadoopScript

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.