knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmin...@apache.org
Subject git commit: Fix minor error in KnoxShell samples.
Date Fri, 22 Mar 2013 15:54:06 GMT
Updated Branches:
  refs/heads/master c1fdad633 -> 2b97d8bb3


Fix minor error in KnoxShell samples.


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

Branch: refs/heads/master
Commit: 2b97d8bb353f96271e4015e5a73364c50dfa2bb1
Parents: c1fdad6
Author: Kevin Minder <kevin.minder@hortonworks.com>
Authored: Fri Mar 22 11:54:01 2013 -0400
Committer: Kevin Minder <kevin.minder@hortonworks.com>
Committed: Fri Mar 22 11:54:01 2013 -0400

----------------------------------------------------------------------
 gateway-release/samples/ExamplePutFile.groovy |    2 +-
 gateway-site/src/site/markdown/client.md.vm   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/2b97d8bb/gateway-release/samples/ExamplePutFile.groovy
----------------------------------------------------------------------
diff --git a/gateway-release/samples/ExamplePutFile.groovy b/gateway-release/samples/ExamplePutFile.groovy
index 952a5f4..9debf9e 100644
--- a/gateway-release/samples/ExamplePutFile.groovy
+++ b/gateway-release/samples/ExamplePutFile.groovy
@@ -27,7 +27,7 @@ dataFile = "README"
 
 hadoop = Hadoop.login( gateway, username, password )
 Hdfs.rm( hadoop ).file( "/tmp/example" ).recursive().now()
-Hdfs.put( hadoop ).file( dataFile ).to( "/tmp/example/README" ).now().string
+Hdfs.put( hadoop ).file( dataFile ).to( "/tmp/example/README" ).now()
 text = Hdfs.ls( hadoop ).dir( "/tmp/example" ).now().string
 json = (new JsonSlurper()).parseText( text )
 println json.FileStatuses.FileStatus.pathSuffix

http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/2b97d8bb/gateway-site/src/site/markdown/client.md.vm
----------------------------------------------------------------------
diff --git a/gateway-site/src/site/markdown/client.md.vm b/gateway-site/src/site/markdown/client.md.vm
index 87f5260..12efa2f 100644
--- a/gateway-site/src/site/markdown/client.md.vm
+++ b/gateway-site/src/site/markdown/client.md.vm
@@ -148,7 +148,7 @@ This script file is available in the distribution but for convenience,
this is t
 
     hadoop = Hadoop.login( gateway, username, password )
     Hdfs.rm( hadoop ).file( "/tmp/example" ).recursive().now()
-    Hdfs.put( hadoop ).file( dataFile ).to( "/tmp/example/README" ).now().string
+    Hdfs.put( hadoop ).file( dataFile ).to( "/tmp/example/README" ).now()
     text = Hdfs.ls( hadoop ).dir( "/tmp/example" ).now().string
     json = (new JsonSlurper()).parseText( text )
     println json.FileStatuses.FileStatus.pathSuffix


Mime
View raw message