RANGER-246 - Environment file for Kafka authorization

Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/ce663e40
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/ce663e40
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/ce663e40

Branch: refs/heads/ranger-0.5
Commit: ce663e407cf8ab9081e04f6c2e9a6dac38d49172
Parents: 8469e64
Author: Don Bosco Durai <[email protected]>
Authored: Tue Jun 2 08:35:06 2015 -0700
Committer: Don Bosco Durai <[email protected]>
Committed: Tue Jun 2 08:35:06 2015 -0700

----------------------------------------------------------------------
 plugin-kafka/conf/kafka-ranger-env.sh | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/ce663e40/plugin-kafka/conf/kafka-ranger-env.sh
----------------------------------------------------------------------
diff --git a/plugin-kafka/conf/kafka-ranger-env.sh 
b/plugin-kafka/conf/kafka-ranger-env.sh
new file mode 100755
index 0000000..2ec122d
--- /dev/null
+++ b/plugin-kafka/conf/kafka-ranger-env.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# 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.
+
+curr_dir=`pwd`
+cd `dirname $0`; script_dir=`pwd`; cd $curr_dir
+export CLASSPATH="$CLASSPATH:${script_dir}:/etc/kafka/conf"

Reply via email to