helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ka...@apache.org
Subject [38/50] [abbrv] git commit: fix some issues with the task recipe
Date Thu, 10 Jul 2014 17:05:21 GMT
fix some issues with the task recipe


Project: http://git-wip-us.apache.org/repos/asf/helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/0a1694b8
Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/0a1694b8
Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/0a1694b8

Branch: refs/heads/master
Commit: 0a1694b88a4238856bab6a281b5a53fd058be094
Parents: 9a2b729
Author: Kanak Biscuitwala <kanak@apache.org>
Authored: Mon Jun 30 09:50:47 2014 -0700
Committer: Kanak Biscuitwala <kanak@apache.org>
Committed: Mon Jun 30 09:50:47 2014 -0700

----------------------------------------------------------------------
 helix-core/pom.xml                                             | 4 ++++
 helix-core/src/main/java/org/apache/helix/task/TaskDriver.java | 1 +
 recipes/jobrunner-yarn/run.sh                                  | 6 +++---
 3 files changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/0a1694b8/helix-core/pom.xml
----------------------------------------------------------------------
diff --git a/helix-core/pom.xml b/helix-core/pom.xml
index f30abac..0f1f2b9 100644
--- a/helix-core/pom.xml
+++ b/helix-core/pom.xml
@@ -216,6 +216,10 @@ under the License.
               <mainClass>org.apache.helix.tools.IntegrationTestUtil</mainClass>
               <name>test-util</name>
             </program>
+            <program>
+              <mainClass>org.apache.helix.task.TaskDriver</mainClass>
+              <name>task-driver</name>
+            </program>
           </programs>
         </configuration>
       </plugin>

http://git-wip-us.apache.org/repos/asf/helix/blob/0a1694b8/helix-core/src/main/java/org/apache/helix/task/TaskDriver.java
----------------------------------------------------------------------
diff --git a/helix-core/src/main/java/org/apache/helix/task/TaskDriver.java b/helix-core/src/main/java/org/apache/helix/task/TaskDriver.java
index c8f0d08..d5e9101 100644
--- a/helix-core/src/main/java/org/apache/helix/task/TaskDriver.java
+++ b/helix-core/src/main/java/org/apache/helix/task/TaskDriver.java
@@ -129,6 +129,7 @@ public class TaskDriver {
         break;
       case list:
         driver.list(resource);
+        break;
       default:
         throw new IllegalArgumentException("Unknown command " + args[0]);
       }

http://git-wip-us.apache.org/repos/asf/helix/blob/0a1694b8/recipes/jobrunner-yarn/run.sh
----------------------------------------------------------------------
diff --git a/recipes/jobrunner-yarn/run.sh b/recipes/jobrunner-yarn/run.sh
index 07448bb..a8f4f7c 100755
--- a/recipes/jobrunner-yarn/run.sh
+++ b/recipes/jobrunner-yarn/run.sh
@@ -1,6 +1,6 @@
 #cd ../../
 #mvn clean install -DskipTests
 #cd recipes/helloworld-provisioning-yarn
-mvn clean package -DskipTests
-chmod +x target/helloworld-provisioning-yarn-pkg/bin/app-launcher.sh
-target/helloworld-provisioning-yarn/pkg/bin/app-launcher.sh org.apache.helix.provisioning.yarn.example.HelloWordAppSpecFactory
/Users/kgopalak/Documents/projects/incubator-helix/recipes/helloworld-provisioning-yarn/src/main/resources/hello_world_app_spec.yaml
+#mvn install package -DskipTests
+chmod +x target/jobrunner-yarn-pkg/bin/app-launcher.sh
+target/jobrunner-yarn-pkg/bin/app-launcher.sh --app_spec_provider org.apache.helix.provisioning.yarn.example.MyTaskAppSpecFactory
--app_config_spec /Users/kbiscuit/helix/incubator-helix/recipes/jobrunner-yarn/src/main/resources/job_runner_app_spec.yaml


Mime
View raw message