knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject [1/6] knox git commit: KNOX-865 Added a release module and refactored samples
Date Fri, 10 Feb 2017 19:43:34 GMT
Repository: knox
Updated Branches:
  refs/heads/master f1dcae4dc -> 761dd5d44


http://git-wip-us.apache.org/repos/asf/knox/blob/761dd5d4/gateway-shell-samples/src/main/resources/samples/sandbox-with-knox-inside.xml
----------------------------------------------------------------------
diff --git a/gateway-shell-samples/src/main/resources/samples/sandbox-with-knox-inside.xml
b/gateway-shell-samples/src/main/resources/samples/sandbox-with-knox-inside.xml
new file mode 100644
index 0000000..9c92ead
--- /dev/null
+++ b/gateway-shell-samples/src/main/resources/samples/sandbox-with-knox-inside.xml
@@ -0,0 +1,96 @@
+<?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.
+-->
+<topology>
+
+    <gateway>
+        <provider>
+            <role>authentication</role>
+            <name>ShiroProvider</name>
+            <enabled>true</enabled>
+            <param>
+                <name>main.ldapRealm</name>
+                <value>org.apache.hadoop.gateway.shirorealm.KnoxLdapRealm</value>
+            </param>
+            <param>
+                <name>main.ldapContextFactory</name>
+                <value>org.apache.hadoop.gateway.shirorealm.KnoxLdapContextFactory</value>
+            </param>
+            <param>
+                <name>main.ldapRealm.contextFactory</name>
+                <value>$ldapContextFactory</value>
+            </param>
+            <param>
+                <name>main.ldapRealm.userDnTemplate</name>
+                <value>uid={0},ou=people,dc=hadoop,dc=apache,dc=org</value>
+            </param>
+            <param>
+                <name>main.ldapRealm.contextFactory.url</name>
+                <value>ldap://localhost:33389</value>
+            </param>
+            <param>
+                <name>main.ldapRealm.contextFactory.authenticationMechanism</name>
+                <value>simple</value>
+            </param>
+            <param>
+                <name>urls./**</name>
+                <value>authcBasic</value>
+            </param>
+        </provider>
+        <provider>
+            <role>identity-assertion</role>
+            <name>Default</name>
+            <enabled>true</enabled>
+        </provider>
+        <provider>
+            <role>hostmap</role>
+            <name>static</name>
+            <enabled>true</enabled>
+            <param><name>localhost</name><value>sandbox,sandbox.hortonworks.com</value></param>
+        </provider>
+    </gateway>
+
+    <service>
+        <role>NAMENODE</role>
+        <url>hdfs://sandbox:8020</url>
+    </service>
+    <service>
+        <role>JOBTRACKER</role>
+        <url>rpc://sandbox:8050</url>
+    </service>
+    <service>
+        <role>WEBHDFS</role>
+        <url>http://sandbox:50070/webhdfs</url>
+    </service>
+    <service>
+        <role>WEBHCAT</role>
+        <url>http://sandbox:50111/templeton</url>
+    </service>
+    <service>
+        <role>OOZIE</role>
+        <url>http://sandbox:11000/oozie</url>
+    </service>
+    <service>
+        <role>STARGATE</role>
+        <url>http://sandbox:60080</url>
+    </service>
+    <service>
+        <role>HIVE</role>
+        <url>http://sandbox:10001/cliservice</url>
+    </service>
+
+</topology>

http://git-wip-us.apache.org/repos/asf/knox/blob/761dd5d4/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index a5393ea..2f0ab89 100644
--- a/pom.xml
+++ b/pom.xml
@@ -91,6 +91,8 @@
         <module>gateway-service-test</module>
         <module>gateway-test-release</module>
         <module>gateway-applications</module>
+        <module>gateway-shell-samples</module>
+        <module>gateway-shell-release</module>
     </modules>
 
     <properties>
@@ -671,6 +673,16 @@
                 <artifactId>gateway-applications</artifactId>
                 <version>${gateway-version}</version>
             </dependency>
+            <dependency>
+                <groupId>${gateway-group}</groupId>
+                <artifactId>gateway-shell-release</artifactId>
+                <version>${gateway-version}</version>
+            </dependency>
+            <dependency>
+                <groupId>${gateway-group}</groupId>
+                <artifactId>gateway-shell-samples</artifactId>
+                <version>${gateway-version}</version>
+            </dependency>
 
         <dependency>
             <groupId>org.picketlink</groupId>


Mime
View raw message