apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (APEXCORE-405) Provide an API to launch DAG on the cluster
Date Wed, 06 Jul 2016 23:27:11 GMT

    [ https://issues.apache.org/jira/browse/APEXCORE-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15365330#comment-15365330
] 

ASF GitHub Bot commented on APEXCORE-405:
-----------------------------------------

Github user davidyan74 commented on a diff in the pull request:

    https://github.com/apache/apex-core/pull/351#discussion_r69829746
  
    --- Diff: api/src/main/java/com/datatorrent/api/LocalMode.java ---
    @@ -125,9 +137,13 @@ public static void runApp(StreamingApplication app, int runMillis)
       public static void runApp(StreamingApplication app, Configuration configuration, int
runMillis)
       {
         LocalMode lma = newInstance();
    -    app.populateDAG(lma.getDAG(), configuration == null ? new Configuration(false) :
configuration);
    -    LocalMode.Controller lc = lma.getController();
    -    lc.run(runMillis);
    +    Attribute.AttributeMap launchAttributes = new Attribute.AttributeMap.DefaultAttributeMap();
    +    launchAttributes.put(RUN_MILLIS, (long)runMillis);
    +    try {
    +      lma.launchApp(app, configuration, launchAttributes);
    +    } catch (LaunchException e) {
    +      DTThrowable.rethrow(e);
    --- End diff --
    
    DTThowable has been deprecated


> Provide an API to launch DAG on the cluster
> -------------------------------------------
>
>                 Key: APEXCORE-405
>                 URL: https://issues.apache.org/jira/browse/APEXCORE-405
>             Project: Apache Apex Core
>          Issue Type: Improvement
>            Reporter: Pramod Immaneni
>            Assignee: Pramod Immaneni
>
> Today API exists to launch a DAG in local mode but such an API is not available to launch
the app on the cluster, only a CLI tool is available. Provide an API to be able to do this.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message