You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by su...@apache.org on 2015/05/11 21:22:31 UTC

svn commit: r1678805 - in /knox/site/books: knox-0-3-0/ knox-0-4-0/ knox-0-5-0/ knox-0-6-0/

Author: sumit
Date: Mon May 11 19:22:30 2015
New Revision: 1678805

URL: http://svn.apache.org/r1678805
Log:
KNOX-540

Added:
    knox/site/books/knox-0-3-0/workflow-configuration.xml
    knox/site/books/knox-0-3-0/workflow-definition.xml
    knox/site/books/knox-0-4-0/workflow-configuration.xml
    knox/site/books/knox-0-4-0/workflow-definition.xml
    knox/site/books/knox-0-5-0/workflow-configuration.xml
    knox/site/books/knox-0-5-0/workflow-definition.xml
    knox/site/books/knox-0-6-0/workflow-configuration.xml
    knox/site/books/knox-0-6-0/workflow-definition.xml

Added: knox/site/books/knox-0-3-0/workflow-configuration.xml
URL: http://svn.apache.org/viewvc/knox/site/books/knox-0-3-0/workflow-configuration.xml?rev=1678805&view=auto
==============================================================================
--- knox/site/books/knox-0-3-0/workflow-configuration.xml (added)
+++ knox/site/books/knox-0-3-0/workflow-configuration.xml Mon May 11 19:22:30 2015
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<configuration>
+    <property>
+        <name>jobTracker</name>
+        <value>REPLACE.JOBTRACKER.RPCHOSTPORT</value>
+        <!-- Example: <value>localhost:50300</value> -->
+    </property>
+    <property>
+        <name>nameNode</name>
+        <value>hdfs://REPLACE.NAMENODE.RPCHOSTPORT</value>
+        <!-- Example: <value>hdfs://localhost:8020</value> -->
+    </property>
+    <property>
+        <name>oozie.wf.application.path</name>
+        <value>hdfs://REPLACE.NAMENODE.RPCHOSTPORT/tmp/test</value>
+        <!-- Example: <value>hdfs://localhost:8020/tmp/test</value> -->
+    </property>
+    <property>
+        <name>user.name</name>
+        <value>mapred</value>
+    </property>
+    <property>
+        <name>inputDir</name>
+        <value>/tmp/test/input</value>
+    </property>
+    <property>
+        <name>outputDir</name>
+        <value>/tmp/test/output</value>
+    </property>
+</configuration>

Added: knox/site/books/knox-0-3-0/workflow-definition.xml
URL: http://svn.apache.org/viewvc/knox/site/books/knox-0-3-0/workflow-definition.xml?rev=1678805&view=auto
==============================================================================
--- knox/site/books/knox-0-3-0/workflow-definition.xml (added)
+++ knox/site/books/knox-0-3-0/workflow-definition.xml Mon May 11 19:22:30 2015
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<workflow-app xmlns="uri:oozie:workflow:0.2" name="wordcount-workflow">
+    <start to="root"/>
+    <action name="root">
+        <java>
+            <job-tracker>${jobTracker}</job-tracker>
+            <name-node>${nameNode}</name-node>
+            <main-class>org.apache.hadoop.examples.WordCount</main-class>
+            <arg>${inputDir}</arg>
+            <arg>${outputDir}</arg>
+        </java>
+        <ok to="end"/>
+        <error to="fail"/>
+    </action>
+    <kill name="fail">
+        <message>Java failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
+    </kill>
+    <end name="end"/>
+</workflow-app>
\ No newline at end of file

Added: knox/site/books/knox-0-4-0/workflow-configuration.xml
URL: http://svn.apache.org/viewvc/knox/site/books/knox-0-4-0/workflow-configuration.xml?rev=1678805&view=auto
==============================================================================
--- knox/site/books/knox-0-4-0/workflow-configuration.xml (added)
+++ knox/site/books/knox-0-4-0/workflow-configuration.xml Mon May 11 19:22:30 2015
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<configuration>
+    <property>
+        <name>jobTracker</name>
+        <value>REPLACE.JOBTRACKER.RPCHOSTPORT</value>
+        <!-- Example: <value>localhost:50300</value> -->
+    </property>
+    <property>
+        <name>nameNode</name>
+        <value>hdfs://REPLACE.NAMENODE.RPCHOSTPORT</value>
+        <!-- Example: <value>hdfs://localhost:8020</value> -->
+    </property>
+    <property>
+        <name>oozie.wf.application.path</name>
+        <value>hdfs://REPLACE.NAMENODE.RPCHOSTPORT/tmp/test</value>
+        <!-- Example: <value>hdfs://localhost:8020/tmp/test</value> -->
+    </property>
+    <property>
+        <name>user.name</name>
+        <value>mapred</value>
+    </property>
+    <property>
+        <name>inputDir</name>
+        <value>/tmp/test/input</value>
+    </property>
+    <property>
+        <name>outputDir</name>
+        <value>/tmp/test/output</value>
+    </property>
+</configuration>

Added: knox/site/books/knox-0-4-0/workflow-definition.xml
URL: http://svn.apache.org/viewvc/knox/site/books/knox-0-4-0/workflow-definition.xml?rev=1678805&view=auto
==============================================================================
--- knox/site/books/knox-0-4-0/workflow-definition.xml (added)
+++ knox/site/books/knox-0-4-0/workflow-definition.xml Mon May 11 19:22:30 2015
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<workflow-app xmlns="uri:oozie:workflow:0.2" name="wordcount-workflow">
+    <start to="root"/>
+    <action name="root">
+        <java>
+            <job-tracker>${jobTracker}</job-tracker>
+            <name-node>${nameNode}</name-node>
+            <main-class>org.apache.hadoop.examples.WordCount</main-class>
+            <arg>${inputDir}</arg>
+            <arg>${outputDir}</arg>
+        </java>
+        <ok to="end"/>
+        <error to="fail"/>
+    </action>
+    <kill name="fail">
+        <message>Java failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
+    </kill>
+    <end name="end"/>
+</workflow-app>
\ No newline at end of file

Added: knox/site/books/knox-0-5-0/workflow-configuration.xml
URL: http://svn.apache.org/viewvc/knox/site/books/knox-0-5-0/workflow-configuration.xml?rev=1678805&view=auto
==============================================================================
--- knox/site/books/knox-0-5-0/workflow-configuration.xml (added)
+++ knox/site/books/knox-0-5-0/workflow-configuration.xml Mon May 11 19:22:30 2015
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<configuration>
+    <property>
+        <name>jobTracker</name>
+        <value>REPLACE.JOBTRACKER.RPCHOSTPORT</value>
+        <!-- Example: <value>localhost:50300</value> -->
+    </property>
+    <property>
+        <name>nameNode</name>
+        <value>hdfs://REPLACE.NAMENODE.RPCHOSTPORT</value>
+        <!-- Example: <value>hdfs://localhost:8020</value> -->
+    </property>
+    <property>
+        <name>oozie.wf.application.path</name>
+        <value>hdfs://REPLACE.NAMENODE.RPCHOSTPORT/tmp/test</value>
+        <!-- Example: <value>hdfs://localhost:8020/tmp/test</value> -->
+    </property>
+    <property>
+        <name>user.name</name>
+        <value>mapred</value>
+    </property>
+    <property>
+        <name>inputDir</name>
+        <value>/tmp/test/input</value>
+    </property>
+    <property>
+        <name>outputDir</name>
+        <value>/tmp/test/output</value>
+    </property>
+</configuration>

Added: knox/site/books/knox-0-5-0/workflow-definition.xml
URL: http://svn.apache.org/viewvc/knox/site/books/knox-0-5-0/workflow-definition.xml?rev=1678805&view=auto
==============================================================================
--- knox/site/books/knox-0-5-0/workflow-definition.xml (added)
+++ knox/site/books/knox-0-5-0/workflow-definition.xml Mon May 11 19:22:30 2015
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<workflow-app xmlns="uri:oozie:workflow:0.2" name="wordcount-workflow">
+    <start to="root"/>
+    <action name="root">
+        <java>
+            <job-tracker>${jobTracker}</job-tracker>
+            <name-node>${nameNode}</name-node>
+            <main-class>org.apache.hadoop.examples.WordCount</main-class>
+            <arg>${inputDir}</arg>
+            <arg>${outputDir}</arg>
+        </java>
+        <ok to="end"/>
+        <error to="fail"/>
+    </action>
+    <kill name="fail">
+        <message>Java failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
+    </kill>
+    <end name="end"/>
+</workflow-app>
\ No newline at end of file

Added: knox/site/books/knox-0-6-0/workflow-configuration.xml
URL: http://svn.apache.org/viewvc/knox/site/books/knox-0-6-0/workflow-configuration.xml?rev=1678805&view=auto
==============================================================================
--- knox/site/books/knox-0-6-0/workflow-configuration.xml (added)
+++ knox/site/books/knox-0-6-0/workflow-configuration.xml Mon May 11 19:22:30 2015
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<configuration>
+    <property>
+        <name>jobTracker</name>
+        <value>REPLACE.JOBTRACKER.RPCHOSTPORT</value>
+        <!-- Example: <value>localhost:50300</value> -->
+    </property>
+    <property>
+        <name>nameNode</name>
+        <value>hdfs://REPLACE.NAMENODE.RPCHOSTPORT</value>
+        <!-- Example: <value>hdfs://localhost:8020</value> -->
+    </property>
+    <property>
+        <name>oozie.wf.application.path</name>
+        <value>hdfs://REPLACE.NAMENODE.RPCHOSTPORT/tmp/test</value>
+        <!-- Example: <value>hdfs://localhost:8020/tmp/test</value> -->
+    </property>
+    <property>
+        <name>user.name</name>
+        <value>mapred</value>
+    </property>
+    <property>
+        <name>inputDir</name>
+        <value>/tmp/test/input</value>
+    </property>
+    <property>
+        <name>outputDir</name>
+        <value>/tmp/test/output</value>
+    </property>
+</configuration>

Added: knox/site/books/knox-0-6-0/workflow-definition.xml
URL: http://svn.apache.org/viewvc/knox/site/books/knox-0-6-0/workflow-definition.xml?rev=1678805&view=auto
==============================================================================
--- knox/site/books/knox-0-6-0/workflow-definition.xml (added)
+++ knox/site/books/knox-0-6-0/workflow-definition.xml Mon May 11 19:22:30 2015
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<workflow-app xmlns="uri:oozie:workflow:0.2" name="wordcount-workflow">
+    <start to="root"/>
+    <action name="root">
+        <java>
+            <job-tracker>${jobTracker}</job-tracker>
+            <name-node>${nameNode}</name-node>
+            <main-class>org.apache.hadoop.examples.WordCount</main-class>
+            <arg>${inputDir}</arg>
+            <arg>${outputDir}</arg>
+        </java>
+        <ok to="end"/>
+        <error to="fail"/>
+    </action>
+    <kill name="fail">
+        <message>Java failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
+    </kill>
+    <end name="end"/>
+</workflow-app>
\ No newline at end of file