You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by km...@apache.org on 2013/09/16 18:23:25 UTC
git commit: KNOX-128: Change samples to use guest user.
Updated Branches:
refs/heads/master eb5a6b841 -> 7955d8ddf
KNOX-128: Change samples to use guest user.
Project: http://git-wip-us.apache.org/repos/asf/incubator-knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-knox/commit/7955d8dd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-knox/tree/7955d8dd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-knox/diff/7955d8dd
Branch: refs/heads/master
Commit: 7955d8ddf87627b5ae38050bacffe5154c47c355
Parents: eb5a6b8
Author: Kevin Minder <ke...@hortonworks.com>
Authored: Mon Sep 16 12:23:17 2013 -0400
Committer: Kevin Minder <ke...@hortonworks.com>
Committed: Mon Sep 16 12:23:17 2013 -0400
----------------------------------------------------------------------
gateway-release/home/conf/users.ldif | 22 +--------
.../home/samples/ExampleOozieWorkflow.groovy | 20 ++++-----
.../home/samples/ExampleWebHCatJob.groovy | 36 ++++++++-------
.../home/samples/ExampleWebHdfsGet.groovy | 37 ---------------
.../home/samples/ExampleWebHdfsLs.groovy | 4 +-
.../home/samples/ExampleWebHdfsPut.groovy | 35 ---------------
.../home/samples/ExampleWebHdfsPutGet.groovy | 34 ++++++++++++++
.../home/samples/HiveJDBCSample.java | 16 +++----
.../home/samples/SampleScript.groovy | 8 ++--
gateway-release/home/templates/users.ldif | 11 +++--
.../home/templates/workflow-configuration.xml | 47 --------------------
.../home/templates/workflow-definition.xml | 36 ---------------
.../hadoop/gateway/shell/hbase/Example.groovy | 4 +-
hsso-release/home/conf/users.ldif | 10 ++---
hsso-release/home/templates/users.ldif | 10 ++---
15 files changed, 96 insertions(+), 234 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-release/home/conf/users.ldif
----------------------------------------------------------------------
diff --git a/gateway-release/home/conf/users.ldif b/gateway-release/home/conf/users.ldif
index a635656..fdd0296 100644
--- a/gateway-release/home/conf/users.ldif
+++ b/gateway-release/home/conf/users.ldif
@@ -25,32 +25,12 @@ ou: people
# entry for a sample end user
# please replace with site specific values
-dn: uid=bob,ou=people,dc=hadoop,dc=apache,dc=org
-objectclass:top
-objectclass:person
-objectclass:organizationalPerson
-objectclass:inetOrgPerson
-cn: Bob
-sn: Smith
-uid: bob
-userPassword:bob-password
-
-dn: uid=hue,ou=people,dc=hadoop,dc=apache,dc=org
-objectclass:top
-objectclass:person
-objectclass:organizationalPerson
-objectclass:inetOrgPerson
-cn: Hue
-sn: Hue
-uid: hue
-userPassword:hue-password
-
dn: uid=guest,ou=people,dc=hadoop,dc=apache,dc=org
objectclass:top
objectclass:person
objectclass:organizationalPerson
objectclass:inetOrgPerson
cn: Guest
-sn: Guest
+sn: User
uid: guest
userPassword:guest-password
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-release/home/samples/ExampleOozieWorkflow.groovy
----------------------------------------------------------------------
diff --git a/gateway-release/home/samples/ExampleOozieWorkflow.groovy b/gateway-release/home/samples/ExampleOozieWorkflow.groovy
index 5055b35..094b2b0 100644
--- a/gateway-release/home/samples/ExampleOozieWorkflow.groovy
+++ b/gateway-release/home/samples/ExampleOozieWorkflow.groovy
@@ -94,24 +94,24 @@ configuration = """\
session = Hadoop.login( gateway, username, password )
-println "Delete " + jobDir + " " + Hdfs.rm( session ).file( jobDir ).recursive().now().statusCode
-println "Mkdir " + jobDir + " " + Hdfs.mkdir( session ).dir( jobDir ).now().statusCode
+println "Delete " + jobDir + ": " + Hdfs.rm( session ).file( jobDir ).recursive().now().statusCode
+println "Mkdir " + jobDir + ": " + Hdfs.mkdir( session ).dir( jobDir ).now().statusCode
putData = Hdfs.put(session).file( inputFile ).to( jobDir + "/input/FILE" ).later() {
- println "Put " + jobDir + "/input/FILE " + it.statusCode }
+ println "Put " + jobDir + "/input/FILE: " + it.statusCode }
putJar = Hdfs.put(session).file( jarFile ).to( jobDir + "/lib/hadoop-examples.jar" ).later() {
- println "Put " + jobDir + "/lib/hadoop-examples.jar " + it.statusCode }
+ println "Put " + jobDir + "/lib/hadoop-examples.jar: " + it.statusCode }
putWorkflow = Hdfs.put(session).text( definition ).to( jobDir + "/workflow.xml" ).later() {
- println "Put " + jobDir + "/workflow.xml " + it.statusCode }
+ println "Put " + jobDir + "/workflow.xml: " + it.statusCode }
session.waitFor( putWorkflow, putData, putJar )
jobId = Workflow.submit(session).text( configuration ).now().jobId
-println "Submitted job " + jobId
+println "Submitted job: " + jobId
-println "Polling up to 60s for completion..."
+println "Polling up to 60s for job completion..."
status = "UNKNOWN";
count = 0;
while( status != "SUCCEEDED" && count++ < 60 ) {
@@ -119,10 +119,10 @@ while( status != "SUCCEEDED" && count++ < 60 ) {
json = Workflow.status(session).jobId( jobId ).now().string
status = JsonPath.read( json, "\$.status" )
}
-println "Job status " + status
+println "Job status: " + status
-text = Hdfs.ls( session ).dir( jobDir ).now().string
+text = Hdfs.ls( session ).dir( jobDir + "/output" ).now().string
json = (new JsonSlurper()).parseText( text )
println json.FileStatuses.FileStatus.pathSuffix
-println "Shutdown " + session.shutdown( 10, SECONDS )
\ No newline at end of file
+println "Session closed: " + session.shutdown( 10, SECONDS )
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-release/home/samples/ExampleWebHCatJob.groovy
----------------------------------------------------------------------
diff --git a/gateway-release/home/samples/ExampleWebHCatJob.groovy b/gateway-release/home/samples/ExampleWebHCatJob.groovy
index bd4fb56..3bcfe47 100644
--- a/gateway-release/home/samples/ExampleWebHCatJob.groovy
+++ b/gateway-release/home/samples/ExampleWebHCatJob.groovy
@@ -16,6 +16,7 @@
* limitations under the License.
*/
import com.jayway.jsonpath.JsonPath
+import groovy.json.JsonSlurper
import org.apache.hadoop.gateway.shell.Hadoop
import org.apache.hadoop.gateway.shell.hdfs.Hdfs
import org.apache.hadoop.gateway.shell.job.Job
@@ -23,33 +24,34 @@ import org.apache.hadoop.gateway.shell.job.Job
import static java.util.concurrent.TimeUnit.SECONDS
gateway = "https://localhost:8443/gateway/sample"
-username = "hue"
-password = "hue-password"
+username = "guest"
+password = username + "-password"
+jobDir = "/user/" + username + "/test"
dataFile = "LICENSE"
jarFile = "samples/hadoop-examples.jar"
session = Hadoop.login( gateway, username, password )
-println "Delete /tmp/test " + Hdfs.rm( session ).file( "/tmp/test" ).recursive().now().statusCode
-println "Create /tmp/test " + Hdfs.mkdir( session ).dir( "/tmp/test").now().statusCode
+println "Delete " + jobDir + ": " + Hdfs.rm( session ).file( jobDir ).recursive().now().statusCode
+println "Create " + jobDir + ": " + Hdfs.mkdir( session ).dir( jobDir ).now().statusCode
-putData = Hdfs.put(session).file( dataFile ).to( "/tmp/test/input/FILE" ).later() {
- println "Put /tmp/test/input/FILE " + it.statusCode }
+putData = Hdfs.put( session ).file( dataFile ).to( jobDir + "/input/" + dataFile ).later() {
+ println "Put " + jobDir + "/input/" + dataFile + ": " + it.statusCode }
-putJar = Hdfs.put(session).file( jarFile ).to( "/tmp/test/hadoop-examples.jar" ).later() {
- println "Put /tmp/test/hadoop-examples.jar " + it.statusCode }
+putJar = Hdfs.put( session ).file( jarFile ).to( jobDir + "/lib/hadoop-examples.jar" ).later() {
+ println "Put " + jobDir + "/lib/hadoop-examples.jar: " + it.statusCode }
session.waitFor( putData, putJar )
jobId = Job.submitJava(session) \
- .jar( "/tmp/test/hadoop-examples.jar" ) \
+ .jar( jobDir + "/lib/hadoop-examples.jar" ) \
.app( "wordcount" ) \
- .input( "/tmp/test/input" ) \
- .output( "/tmp/test/output" ) \
+ .input( jobDir + "/input" ) \
+ .output( jobDir + "/output" ) \
.now().jobId
-println "Submitted job " + jobId
+println "Submitted job: " + jobId
-println "Polling for completion..."
+println "Polling up to 60s for job completion..."
done = false
count = 0
while( !done && count++ < 60 ) {
@@ -57,6 +59,10 @@ while( !done && count++ < 60 ) {
json = Job.queryStatus(session).jobId(jobId).now().string
done = JsonPath.read( json, "\$.status.jobComplete" )
}
-println "Done " + done
+println "Job status: " + done
-println "Shutdown " + session.shutdown( 10, SECONDS )
\ No newline at end of file
+text = Hdfs.ls( session ).dir( jobDir + "/output" ).now().string
+json = (new JsonSlurper()).parseText( text )
+println json.FileStatuses.FileStatus.pathSuffix
+
+println "Session closed: " + session.shutdown( 10, SECONDS )
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-release/home/samples/ExampleWebHdfsGet.groovy
----------------------------------------------------------------------
diff --git a/gateway-release/home/samples/ExampleWebHdfsGet.groovy b/gateway-release/home/samples/ExampleWebHdfsGet.groovy
deleted file mode 100644
index bb95b94..0000000
--- a/gateway-release/home/samples/ExampleWebHdfsGet.groovy
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * 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.
- */
-
-import groovy.json.JsonSlurper
-import org.apache.hadoop.gateway.shell.Hadoop
-import org.apache.hadoop.gateway.shell.hdfs.Hdfs
-
-gateway = "https://localhost:8443/gateway/sample"
-username = "hue"
-password = "hue-password"
-dataDir = "/user/" + username + "/example"
-dataFile = "README"
-
-session = Hadoop.login( gateway, username, password )
-Hdfs.rm( session ).file( dataDir ).recursive().now()
-Hdfs.put( session ).file( dataFile ).to( dataDir + "/" + dataFile ).now()
-text = Hdfs.ls( session ).dir( dataDir ).now().string
-json = (new JsonSlurper()).parseText( text )
-println json.FileStatuses.FileStatus.pathSuffix
-text = Hdfs.get( session ).from( dataDir + "/" + dataFile ).now().string
-println text
-session.shutdown()
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-release/home/samples/ExampleWebHdfsLs.groovy
----------------------------------------------------------------------
diff --git a/gateway-release/home/samples/ExampleWebHdfsLs.groovy b/gateway-release/home/samples/ExampleWebHdfsLs.groovy
index 04e7c2d..f284f84 100644
--- a/gateway-release/home/samples/ExampleWebHdfsLs.groovy
+++ b/gateway-release/home/samples/ExampleWebHdfsLs.groovy
@@ -21,8 +21,8 @@ import org.apache.hadoop.gateway.shell.Hadoop
import org.apache.hadoop.gateway.shell.hdfs.Hdfs
gateway = "https://localhost:8443/gateway/sample"
-username = "hue"
-password = "hue-password"
+username = "guest"
+password = username + "-password"
session = Hadoop.login( gateway, username, password )
text = Hdfs.ls( session ).dir( "/" ).now().string
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-release/home/samples/ExampleWebHdfsPut.groovy
----------------------------------------------------------------------
diff --git a/gateway-release/home/samples/ExampleWebHdfsPut.groovy b/gateway-release/home/samples/ExampleWebHdfsPut.groovy
deleted file mode 100644
index 2412448..0000000
--- a/gateway-release/home/samples/ExampleWebHdfsPut.groovy
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * 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.
- */
-
-import groovy.json.JsonSlurper
-import org.apache.hadoop.gateway.shell.Hadoop
-import org.apache.hadoop.gateway.shell.hdfs.Hdfs
-
-gateway = "https://localhost:8443/gateway/sample"
-username = "hue"
-password = "hue-password"
-dataDir = "/user/" + username + "/example"
-dataFile = "README"
-
-session = Hadoop.login( gateway, username, password )
-Hdfs.rm( session ).file( dataDir ).recursive().now()
-Hdfs.put( session ).file( dataFile ).to( dataDir + "/" + dataFile ).now()
-text = Hdfs.ls( session ).dir( dataDir ).now().string
-json = (new JsonSlurper()).parseText( text )
-println json.FileStatuses.FileStatus.pathSuffix
-session.shutdown()
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-release/home/samples/ExampleWebHdfsPutGet.groovy
----------------------------------------------------------------------
diff --git a/gateway-release/home/samples/ExampleWebHdfsPutGet.groovy b/gateway-release/home/samples/ExampleWebHdfsPutGet.groovy
new file mode 100644
index 0000000..72fbb35
--- /dev/null
+++ b/gateway-release/home/samples/ExampleWebHdfsPutGet.groovy
@@ -0,0 +1,34 @@
+/**
+ * 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.
+ */
+import org.apache.hadoop.gateway.shell.Hadoop
+import org.apache.hadoop.gateway.shell.hdfs.Hdfs
+
+gateway = "https://localhost:8443/gateway/sample"
+username = "guest"
+password = username + "-password"
+dataDir = "/user/" + username + "/example"
+dataFile = "README"
+
+session = Hadoop.login( gateway, username, password )
+Hdfs.rm( session ).file( dataDir ).recursive().now()
+
+Hdfs.put( session ).file( dataFile ).to( dataDir + "/" + dataFile ).now()
+
+println Hdfs.get( session ).from( dataDir + "/" + dataFile ).now().string
+
+session.shutdown()
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-release/home/samples/HiveJDBCSample.java
----------------------------------------------------------------------
diff --git a/gateway-release/home/samples/HiveJDBCSample.java b/gateway-release/home/samples/HiveJDBCSample.java
index dbb5fb5..f7b383f 100644
--- a/gateway-release/home/samples/HiveJDBCSample.java
+++ b/gateway-release/home/samples/HiveJDBCSample.java
@@ -33,30 +33,28 @@ public class HiveJDBCSample {
ResultSet resultSet = null;
try {
- String user = "bob";
- String password = "bob-password";
+ String user = "guest";
+ String password = user + "-password";
String gatewayHost = "localhost";
int gatewayPort = 8443;
String contextPath = "gateway/sample/hive/api/v1";
String connectionString = String.format( "jdbc:hive2://%s:%d/?hive.server2.servermode=https;hive.server2.http.path=%s", gatewayHost, gatewayPort, contextPath );
- // load Hive JDBC Driver
+ // Load Hive JDBC Driver
Class.forName( "org.apache.hive.jdbc.HiveDriver" );
- //Class.forName("java.lang.Object");
- // configure JDBC connection
+ // Configure JDBC connection
connection = DriverManager.getConnection( connectionString, user, password );
statement = connection.createStatement();
- // disable Hive authorization - it could be ommited if Hive authorization
- // was configured properly
+ // Disable Hive authorization - This can be ommited if Hive authorization is configured properly
statement.execute( "set hive.security.authorization.enabled=false" );
- // create sample table
+ // Create sample table
statement.execute( "CREATE TABLE logs(column1 string, column2 string, column3 string, column4 string, column5 string, column6 string, column7 string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ' '" );
- // load data into Hive from file /tmp/log.txt which is placed on the local file system
+ // Load data into Hive from file /tmp/log.txt which is placed on the local file system
statement.execute( "LOAD DATA LOCAL INPATH '/tmp/sample.log' OVERWRITE INTO TABLE logs" );
resultSet = statement.executeQuery( "SELECT * FROM logs" );
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-release/home/samples/SampleScript.groovy
----------------------------------------------------------------------
diff --git a/gateway-release/home/samples/SampleScript.groovy b/gateway-release/home/samples/SampleScript.groovy
index 379b220..9e3753f 100644
--- a/gateway-release/home/samples/SampleScript.groovy
+++ b/gateway-release/home/samples/SampleScript.groovy
@@ -18,11 +18,11 @@
import org.apache.hadoop.gateway.shell.Hadoop
gateway = "https://localhost:8443/gateway/sample"
-username = "hue"
-password = "hue-password"
+username = "guest"
+password = username + "-password"
session = Hadoop.login( gateway, username, password )
-println "JSON=" + SampleService.simple(session).param("/tmp").now().string
+println "JSON=" + SampleService.simple( session ).param( "/tmp" ).now().string
-println "Names=" + SampleService.complex(session).param("/tmp").now().names
\ No newline at end of file
+println "Names=" + SampleService.complex( session ).param( "/tmp" ).now().names
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-release/home/templates/users.ldif
----------------------------------------------------------------------
diff --git a/gateway-release/home/templates/users.ldif b/gateway-release/home/templates/users.ldif
index d7aa901..fdd0296 100644
--- a/gateway-release/home/templates/users.ldif
+++ b/gateway-release/home/templates/users.ldif
@@ -25,13 +25,12 @@ ou: people
# entry for a sample end user
# please replace with site specific values
-dn: uid=bob,ou=people,dc=hadoop,dc=apache,dc=org
+dn: uid=guest,ou=people,dc=hadoop,dc=apache,dc=org
objectclass:top
objectclass:person
objectclass:organizationalPerson
objectclass:inetOrgPerson
-cn: Bob
-sn: Smith
-uid: bob
-userPassword:bob-password
-
+cn: Guest
+sn: User
+uid: guest
+userPassword:guest-password
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-release/home/templates/workflow-configuration.xml
----------------------------------------------------------------------
diff --git a/gateway-release/home/templates/workflow-configuration.xml b/gateway-release/home/templates/workflow-configuration.xml
deleted file mode 100644
index eff0103..0000000
--- a/gateway-release/home/templates/workflow-configuration.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?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>bob</value>
- </property>
- <property>
- <name>inputDir</name>
- <value>/tmp/test/input</value>
- </property>
- <property>
- <name>outputDir</name>
- <value>/tmp/test/output</value>
- </property>
-</configuration>
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-release/home/templates/workflow-definition.xml
----------------------------------------------------------------------
diff --git a/gateway-release/home/templates/workflow-definition.xml b/gateway-release/home/templates/workflow-definition.xml
deleted file mode 100644
index a608d6b..0000000
--- a/gateway-release/home/templates/workflow-definition.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<?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
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/gateway-shell/src/main/java/org/apache/hadoop/gateway/shell/hbase/Example.groovy
----------------------------------------------------------------------
diff --git a/gateway-shell/src/main/java/org/apache/hadoop/gateway/shell/hbase/Example.groovy b/gateway-shell/src/main/java/org/apache/hadoop/gateway/shell/hbase/Example.groovy
index bf1b67e..e3856e8 100644
--- a/gateway-shell/src/main/java/org/apache/hadoop/gateway/shell/hbase/Example.groovy
+++ b/gateway-shell/src/main/java/org/apache/hadoop/gateway/shell/hbase/Example.groovy
@@ -22,8 +22,8 @@ import org.apache.hadoop.gateway.shell.Hadoop
import static java.util.concurrent.TimeUnit.SECONDS
gateway = "https://localhost:8443/gateway/sample"
-username = "bob"
-password = "bob-password"
+username = "guest"
+password = "guest-password"
tableName = "test_table"
session = Hadoop.login(gateway, username, password)
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/hsso-release/home/conf/users.ldif
----------------------------------------------------------------------
diff --git a/hsso-release/home/conf/users.ldif b/hsso-release/home/conf/users.ldif
index 458b6ef..55c311e 100644
--- a/hsso-release/home/conf/users.ldif
+++ b/hsso-release/home/conf/users.ldif
@@ -25,12 +25,12 @@ ou: people
# entry for a sample end user
# please replace with site specific values
-dn: uid=bob,ou=people,dc=hadoop,dc=apache,dc=org
+dn: uid=guest,ou=people,dc=hadoop,dc=apache,dc=org
objectclass:top
objectclass:person
objectclass:organizationalPerson
objectclass:inetOrgPerson
-cn: Bob
-sn: Smith
-uid: bob
-userPassword:bob-password
+cn: Guest
+sn: User
+uid: gest
+userPassword:guest-password
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/7955d8dd/hsso-release/home/templates/users.ldif
----------------------------------------------------------------------
diff --git a/hsso-release/home/templates/users.ldif b/hsso-release/home/templates/users.ldif
index 458b6ef..fdd0296 100644
--- a/hsso-release/home/templates/users.ldif
+++ b/hsso-release/home/templates/users.ldif
@@ -25,12 +25,12 @@ ou: people
# entry for a sample end user
# please replace with site specific values
-dn: uid=bob,ou=people,dc=hadoop,dc=apache,dc=org
+dn: uid=guest,ou=people,dc=hadoop,dc=apache,dc=org
objectclass:top
objectclass:person
objectclass:organizationalPerson
objectclass:inetOrgPerson
-cn: Bob
-sn: Smith
-uid: bob
-userPassword:bob-password
+cn: Guest
+sn: User
+uid: guest
+userPassword:guest-password
\ No newline at end of file