You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@fluo.apache.org by GitBox <gi...@apache.org> on 2017/12/05 21:41:03 UTC

[GitHub] mikewalch closed pull request #10: Update fluo-parent to version 3

mikewalch closed pull request #10: Update fluo-parent to version 3
URL: https://github.com/apache/fluo-yarn/pull/10
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/core/src/main/java/org/apache/fluo/yarn/core/FluoYarnLauncher.java b/core/src/main/java/org/apache/fluo/yarn/core/FluoYarnLauncher.java
index 838bd13..e1b8887 100644
--- a/core/src/main/java/org/apache/fluo/yarn/core/FluoYarnLauncher.java
+++ b/core/src/main/java/org/apache/fluo/yarn/core/FluoYarnLauncher.java
@@ -62,8 +62,8 @@ public TwillSpecification configure() {
               .setInstances(env.getWorkerInstances()).build();
 
       return TwillSpecification.Builder.with().setName("fluo-app-" + env.getApplicationName())
-          .withRunnable().add(ORACLE_ID, new BundledJarRunnable(), oracleResources)
-          .withLocalFiles().add(env.getBundledJarName(), new File(env.getBundledJarPath()), false)
+          .withRunnable().add(ORACLE_ID, new BundledJarRunnable(), oracleResources).withLocalFiles()
+          .add(env.getBundledJarName(), new File(env.getBundledJarPath()), false)
           .add(CONN_PROPS, new File(env.getConnPropsPath()), false)
           .add(LOG4J_PROPS, new File(env.getLogPropsPath()), false).apply()
           .add(WORKER_ID, new BundledJarRunnable(), workerResources).withLocalFiles()
@@ -119,12 +119,11 @@ public static void main(String[] args) throws Exception {
         new YarnTwillRunnerService(env.getYarnConfiguration(), env.getZookeepers());
     twillRunner.start();
 
-    TwillPreparer preparer =
-        twillRunner.prepare(new FluoYarnApp(env))
-            .addJVMOptions("-Dlog4j.configuration=file:$PWD/" + LOG4J_PROPS)
-            .addJVMOptions(("-Dfluo.conn.props=" + CONN_PROPS))
-            .withArguments(ORACLE_ID, oracleArgs.toArray())
-            .withArguments(WORKER_ID, workerArgs.toArray());
+    TwillPreparer preparer = twillRunner.prepare(new FluoYarnApp(env))
+        .addJVMOptions("-Dlog4j.configuration=file:$PWD/" + LOG4J_PROPS)
+        .addJVMOptions(("-Dfluo.conn.props=" + CONN_PROPS))
+        .withArguments(ORACLE_ID, oracleArgs.toArray())
+        .withArguments(WORKER_ID, workerArgs.toArray());
 
     TwillController controller = preparer.start();
 
diff --git a/pom.xml b/pom.xml
index 8d1df30..00cda0d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,7 +18,7 @@
   <parent>
     <groupId>org.apache.fluo</groupId>
     <artifactId>fluo-parent</artifactId>
-    <version>1-incubating</version>
+    <version>3</version>
   </parent>
   <artifactId>fluo-yarn-project</artifactId>
   <version>1.0.0-SNAPSHOT</version>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services