You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by bz...@apache.org on 2015/05/12 01:43:14 UTC

oozie git commit: OOZIE-2224 Add example worklfow.xml for hive in secure mode (venkatnrangan via bzhang)

Repository: oozie
Updated Branches:
  refs/heads/master 8d381099b -> 39f7ad9c0


OOZIE-2224 Add example worklfow.xml for hive in secure mode (venkatnrangan via bzhang)


Project: http://git-wip-us.apache.org/repos/asf/oozie/repo
Commit: http://git-wip-us.apache.org/repos/asf/oozie/commit/39f7ad9c
Tree: http://git-wip-us.apache.org/repos/asf/oozie/tree/39f7ad9c
Diff: http://git-wip-us.apache.org/repos/asf/oozie/diff/39f7ad9c

Branch: refs/heads/master
Commit: 39f7ad9c0673349676d73125f93c2e1f3bfb0e39
Parents: 8d38109
Author: Bowen Zhang <bo...@yahoo.com>
Authored: Mon May 11 16:37:06 2015 -0700
Committer: Bowen Zhang <bo...@yahoo.com>
Committed: Mon May 11 16:41:27 2015 -0700

----------------------------------------------------------------------
 examples/src/main/apps/hive/README              |  1 +
 .../src/main/apps/hive/workflow.xml.security    | 60 ++++++++++++++++++++
 release-log.txt                                 |  1 +
 3 files changed, 62 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/oozie/blob/39f7ad9c/examples/src/main/apps/hive/README
----------------------------------------------------------------------
diff --git a/examples/src/main/apps/hive/README b/examples/src/main/apps/hive/README
new file mode 100644
index 0000000..93acc80
--- /dev/null
+++ b/examples/src/main/apps/hive/README
@@ -0,0 +1 @@
+For secure clusters, copy workflow.xml.security to workflow.xml and fix the metastore location appropriately.

http://git-wip-us.apache.org/repos/asf/oozie/blob/39f7ad9c/examples/src/main/apps/hive/workflow.xml.security
----------------------------------------------------------------------
diff --git a/examples/src/main/apps/hive/workflow.xml.security b/examples/src/main/apps/hive/workflow.xml.security
new file mode 100644
index 0000000..3532131
--- /dev/null
+++ b/examples/src/main/apps/hive/workflow.xml.security
@@ -0,0 +1,60 @@
+<?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.5" name="hive-wf">
+    <credentials>
+      <credential name='hcatauth' type='hcat'>
+         <property>
+            <name>hcat.metastore.uri</name>
+            <value>thrift://<host>:<port></value>
+         </property>
+         <property>
+             <name>hcat.metastore.principal</name>
+             <value>hive/<host>@<realm></value>
+         </property>
+      </credential>
+    </credentials>
+    <start to="hive-node"/>
+
+    <action name="hive-node" cred="hcatauth">
+        <hive xmlns="uri:oozie:hive-action:0.3">
+            <job-tracker>${jobTracker}</job-tracker>
+            <name-node>${nameNode}</name-node>
+            <prepare>
+                <delete path="${nameNode}/user/${wf:user()}/${examplesRoot}/output-data/hive"/>
+                <mkdir path="${nameNode}/user/${wf:user()}/${examplesRoot}/output-data"/>
+            </prepare>
+            <configuration>
+                <property>
+                    <name>mapred.job.queue.name</name>
+                    <value>${queueName}</value>
+                </property>
+            </configuration>
+            <script>script.q</script>
+            <param>INPUT=/user/${wf:user()}/${examplesRoot}/input-data/table</param>
+            <param>OUTPUT=/user/${wf:user()}/${examplesRoot}/output-data/hive</param>
+        </hive>
+        <ok to="end"/>
+        <error to="fail"/>
+    </action>
+
+    <kill name="fail">
+        <message>Hive failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
+    </kill>
+    <end name="end"/>
+</workflow-app>

http://git-wip-us.apache.org/repos/asf/oozie/blob/39f7ad9c/release-log.txt
----------------------------------------------------------------------
diff --git a/release-log.txt b/release-log.txt
index a2c0fe6..342c79f 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -1,5 +1,6 @@
 -- Oozie 4.2.0 release (trunk - unreleased)
 
+OOZIE-2224 Add example worklfow.xml for hive in secure mode (venkatnrangan via bzhang)
 OOZIE-2227 PartitionDependencyManagerService keeps on purging delete coord actions (puru)
 OOZIE-2163 Remove CoordinatorStore (seoeun25 via bzhang)
 OOZIE-2221 Oozie audit log has null id for some of input request (puru)