knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmc...@apache.org
Subject svn commit: r1588703 - in /knox: site/books/knox-0-4-0/knox-0-4-0-new.html site/books/knox-0-4-0/knox-0-4-0.html trunk/books/0.4.0/book_client-details.md
Date Sat, 19 Apr 2014 20:16:09 GMT
Author: lmccay
Date: Sat Apr 19 20:16:08 2014
New Revision: 1588703

URL: http://svn.apache.org/r1588703
Log:
KNOX-347 changes per vtkhir

Modified:
    knox/site/books/knox-0-4-0/knox-0-4-0-new.html
    knox/site/books/knox-0-4-0/knox-0-4-0.html
    knox/trunk/books/0.4.0/book_client-details.md

Modified: knox/site/books/knox-0-4-0/knox-0-4-0-new.html
URL: http://svn.apache.org/viewvc/knox/site/books/knox-0-4-0/knox-0-4-0-new.html?rev=1588703&r1=1588702&r2=1588703&view=diff
==============================================================================
--- knox/site/books/knox-0-4-0/knox-0-4-0-new.html (original)
+++ knox/site/books/knox-0-4-0/knox-0-4-0-new.html Sat Apr 19 20:16:08 2014
@@ -1253,7 +1253,7 @@ APACHE_HOME/bin/apachectl -k stop
 <pre><code>set verbosity QUIET
 set show-last-result false
 </code></pre><p>Also when running interactively use the <code>exit</code>
command to terminate the shell. Using <code>^C</code> to exit can sometimes leaves
the parent shell in a problematic state.</p><p>The shell can also be used to execute
a script by passing a single filename argument.</p>
-<pre><code>java -jar bin/shell.jar samples/ExampleWebHdfsPutGetFile.groovy
+<pre><code>java -jar bin/shell.jar samples/ExampleWebHdfsPutGet.groovy
 </code></pre><h3><a id="Examples"></a>Examples</h3><p>Once
the shell can be launched the DSL can be used to interact with the gateway and Hadoop. Below
is a very simple example of an interactive shell session to upload a file to HDFS.</p>
 <pre><code>java -jar bin/shell.jar
 knox:000&gt; session = Hadoop.login( &quot;https://localhost:8443/gateway/sandbox&quot;,
&quot;guest&quot;, &quot;guest-password&quot; )
@@ -1463,16 +1463,16 @@ dep/httpcore-4.2.2.jar
 dep/commons-lang3-3.1.jar
 dep/commons-codec-1.7.jar
 </code></pre><p>So on Linux/MacOS you would need this command</p>
-<pre><code>groovy -cp lib/gateway-shell-0.2.0-SNAPSHOT.jar:dep/httpclient-4.2.3.jar:dep/httpcore-4.2.2.jar:dep/commons-lang3-3.1.jar:dep/commons-codec-1.7.jar
samples/ExampleWebHdfsPutGet.groovy
+<pre><code>groovy -cp lib/gateway-shell-0.4.0.jar:dep/httpclient-4.2.5.jar:dep/httpcore-4.2.4.jar:dep/commons-lang3-3.1.jar:dep/commons-codec-1.7.jar
samples/ExampleWebHdfsPutGet.groovy
 </code></pre><p>and on Windows you would need this command</p>
-<pre><code>groovy -cp lib/gateway-shell-0.2.0-SNAPSHOT.jar;dep/httpclient-4.2.3.jar;dep/httpcore-4.2.2.jar;dep/commons-lang3-3.1.jar;dep/commons-codec-1.7.jar
samples/ExampleWebHdfsPutGet.groovy
-</code></pre><p>The exact list of required JARs is likely to change from
release to release so it is recommended that you utilize the wrapper <code>bin/shell.jar</code>.</p><p>In
addition because the DSL can be used via standard Groovy, the Groovy integrations in many
popular IDEs (e.g. IntelliJ , Eclipse) can also be used. This makes it particularly nice to
develop and execute scripts to interact with Hadoop. The code-completion features in modern
IDEs in particular provides immense value. All that is required is to add the shell-0.2.0.jar
to the projects class path.</p><p>There are a variety of Groovy tools that make
it very easy to work with the standard interchange formats (i.e. JSON and XML). In Groovy
the creation of XML or JSON is typically done via a &ldquo;builder&rdquo; and parsing
done via a &ldquo;slurper&rdquo;. In addition once JSON or XML is &ldquo;slurped&rdquo;
the GPath, an XPath like feature build into Groovy can be used to access data.</p>
+<pre><code>groovy -cp lib/gateway-shell-0.4.0.jar;dep/httpclient-4.2.5.jar;dep/httpcore-4.2.4.jar;dep/commons-lang3-3.1.jar;dep/commons-codec-1.7.jar
samples/ExampleWebHdfsPutGet.groovy
+</code></pre><p>The exact list of required JARs is likely to change from
release to release so it is recommended that you utilize the wrapper <code>bin/shell.jar</code>.</p><p>In
addition because the DSL can be used via standard Groovy, the Groovy integrations in many
popular IDEs (e.g. IntelliJ , Eclipse) can also be used. This makes it particularly nice to
develop and execute scripts to interact with Hadoop. The code-completion features in modern
IDEs in particular provides immense value. All that is required is to add the gateway-shell-0.4.0.jar
to the projects class path.</p><p>There are a variety of Groovy tools that make
it very easy to work with the standard interchange formats (i.e. JSON and XML). In Groovy
the creation of XML or JSON is typically done via a &ldquo;builder&rdquo; and parsing
done via a &ldquo;slurper&rdquo;. In addition once JSON or XML is &ldquo;slurped&rdquo;
the GPath, an XPath like feature build into Groovy can be used to access data.</p>
 <ul>
   <li>XML
   <ul>
-    <li>Markup Builder [Overview]<a href="http://groovy.codehaus.org/Creating+XML+using+Groovy's+MarkupBuilder)">http://groovy.codehaus.org/Creating+XML+using+Groovy's+MarkupBuilder)</a>,
<a href="http://groovy.codehaus.org/api/groovy/xml/MarkupBuilder.html">API</a></li>
-    <li>XML Slurper [Overview]<a href="http://groovy.codehaus.org/Reading+XML+using+Groovy's+XmlSlurper)">http://groovy.codehaus.org/Reading+XML+using+Groovy's+XmlSlurper)</a>,
<a href="http://groovy.codehaus.org/api/groovy/util/XmlSlurper.html">API</a></li>
-    <li>XPath [Overview]<a href="http://groovy.codehaus.org/GPath)">http://groovy.codehaus.org/GPath)</a>,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/xml/xpath/XPath.html">API</a></li>
+    <li>Markup Builder <a href="http://groovy.codehaus.org/Creating+XML+using+Groovy's+MarkupBuilder">Overview</a>,
<a href="http://groovy.codehaus.org/api/groovy/xml/MarkupBuilder.html">API</a></li>
+    <li>XML Slurper <a href="http://groovy.codehaus.org/Reading+XML+using+Groovy's+XmlSlurper">Overview</a>,
<a href="http://groovy.codehaus.org/api/groovy/util/XmlSlurper.html">API</a></li>
+    <li>XPath <a href="http://groovy.codehaus.org/GPath">Overview</a>,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/xml/xpath/XPath.html">API</a></li>
   </ul></li>
   <li>JSON
   <ul>

Modified: knox/site/books/knox-0-4-0/knox-0-4-0.html
URL: http://svn.apache.org/viewvc/knox/site/books/knox-0-4-0/knox-0-4-0.html?rev=1588703&r1=1588702&r2=1588703&view=diff
==============================================================================
--- knox/site/books/knox-0-4-0/knox-0-4-0.html (original)
+++ knox/site/books/knox-0-4-0/knox-0-4-0.html Sat Apr 19 20:16:08 2014
@@ -1253,7 +1253,7 @@ APACHE_HOME/bin/apachectl -k stop
 <pre><code>set verbosity QUIET
 set show-last-result false
 </code></pre><p>Also when running interactively use the <code>exit</code>
command to terminate the shell. Using <code>^C</code> to exit can sometimes leaves
the parent shell in a problematic state.</p><p>The shell can also be used to execute
a script by passing a single filename argument.</p>
-<pre><code>java -jar bin/shell.jar samples/ExampleWebHdfsPutGetFile.groovy
+<pre><code>java -jar bin/shell.jar samples/ExampleWebHdfsPutGet.groovy
 </code></pre><h3><a id="Examples"></a>Examples</h3><p>Once
the shell can be launched the DSL can be used to interact with the gateway and Hadoop. Below
is a very simple example of an interactive shell session to upload a file to HDFS.</p>
 <pre><code>java -jar bin/shell.jar
 knox:000&gt; session = Hadoop.login( &quot;https://localhost:8443/gateway/sandbox&quot;,
&quot;guest&quot;, &quot;guest-password&quot; )
@@ -1463,16 +1463,16 @@ dep/httpcore-4.2.2.jar
 dep/commons-lang3-3.1.jar
 dep/commons-codec-1.7.jar
 </code></pre><p>So on Linux/MacOS you would need this command</p>
-<pre><code>groovy -cp lib/gateway-shell-0.2.0-SNAPSHOT.jar:dep/httpclient-4.2.3.jar:dep/httpcore-4.2.2.jar:dep/commons-lang3-3.1.jar:dep/commons-codec-1.7.jar
samples/ExampleWebHdfsPutGet.groovy
+<pre><code>groovy -cp lib/gateway-shell-0.4.0.jar:dep/httpclient-4.2.5.jar:dep/httpcore-4.2.4.jar:dep/commons-lang3-3.1.jar:dep/commons-codec-1.7.jar
samples/ExampleWebHdfsPutGet.groovy
 </code></pre><p>and on Windows you would need this command</p>
-<pre><code>groovy -cp lib/gateway-shell-0.2.0-SNAPSHOT.jar;dep/httpclient-4.2.3.jar;dep/httpcore-4.2.2.jar;dep/commons-lang3-3.1.jar;dep/commons-codec-1.7.jar
samples/ExampleWebHdfsPutGet.groovy
-</code></pre><p>The exact list of required JARs is likely to change from
release to release so it is recommended that you utilize the wrapper <code>bin/shell.jar</code>.</p><p>In
addition because the DSL can be used via standard Groovy, the Groovy integrations in many
popular IDEs (e.g. IntelliJ , Eclipse) can also be used. This makes it particularly nice to
develop and execute scripts to interact with Hadoop. The code-completion features in modern
IDEs in particular provides immense value. All that is required is to add the shell-0.2.0.jar
to the projects class path.</p><p>There are a variety of Groovy tools that make
it very easy to work with the standard interchange formats (i.e. JSON and XML). In Groovy
the creation of XML or JSON is typically done via a &ldquo;builder&rdquo; and parsing
done via a &ldquo;slurper&rdquo;. In addition once JSON or XML is &ldquo;slurped&rdquo;
the GPath, an XPath like feature build into Groovy can be used to access data.</p>
+<pre><code>groovy -cp lib/gateway-shell-0.4.0.jar;dep/httpclient-4.2.5.jar;dep/httpcore-4.2.4.jar;dep/commons-lang3-3.1.jar;dep/commons-codec-1.7.jar
samples/ExampleWebHdfsPutGet.groovy
+</code></pre><p>The exact list of required JARs is likely to change from
release to release so it is recommended that you utilize the wrapper <code>bin/shell.jar</code>.</p><p>In
addition because the DSL can be used via standard Groovy, the Groovy integrations in many
popular IDEs (e.g. IntelliJ , Eclipse) can also be used. This makes it particularly nice to
develop and execute scripts to interact with Hadoop. The code-completion features in modern
IDEs in particular provides immense value. All that is required is to add the gateway-shell-0.4.0.jar
to the projects class path.</p><p>There are a variety of Groovy tools that make
it very easy to work with the standard interchange formats (i.e. JSON and XML). In Groovy
the creation of XML or JSON is typically done via a &ldquo;builder&rdquo; and parsing
done via a &ldquo;slurper&rdquo;. In addition once JSON or XML is &ldquo;slurped&rdquo;
the GPath, an XPath like feature build into Groovy can be used to access data.</p>
 <ul>
   <li>XML
   <ul>
-    <li>Markup Builder [Overview]<a href="http://groovy.codehaus.org/Creating+XML+using+Groovy's+MarkupBuilder)">http://groovy.codehaus.org/Creating+XML+using+Groovy's+MarkupBuilder)</a>,
<a href="http://groovy.codehaus.org/api/groovy/xml/MarkupBuilder.html">API</a></li>
-    <li>XML Slurper [Overview]<a href="http://groovy.codehaus.org/Reading+XML+using+Groovy's+XmlSlurper)">http://groovy.codehaus.org/Reading+XML+using+Groovy's+XmlSlurper)</a>,
<a href="http://groovy.codehaus.org/api/groovy/util/XmlSlurper.html">API</a></li>
-    <li>XPath [Overview]<a href="http://groovy.codehaus.org/GPath)">http://groovy.codehaus.org/GPath)</a>,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/xml/xpath/XPath.html">API</a></li>
+    <li>Markup Builder <a href="http://groovy.codehaus.org/Creating+XML+using+Groovy's+MarkupBuilder">Overview</a>,
<a href="http://groovy.codehaus.org/api/groovy/xml/MarkupBuilder.html">API</a></li>
+    <li>XML Slurper <a href="http://groovy.codehaus.org/Reading+XML+using+Groovy's+XmlSlurper">Overview</a>,
<a href="http://groovy.codehaus.org/api/groovy/util/XmlSlurper.html">API</a></li>
+    <li>XPath <a href="http://groovy.codehaus.org/GPath">Overview</a>,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/javax/xml/xpath/XPath.html">API</a></li>
   </ul></li>
   <li>JSON
   <ul>

Modified: knox/trunk/books/0.4.0/book_client-details.md
URL: http://svn.apache.org/viewvc/knox/trunk/books/0.4.0/book_client-details.md?rev=1588703&r1=1588702&r2=1588703&view=diff
==============================================================================
--- knox/trunk/books/0.4.0/book_client-details.md (original)
+++ knox/trunk/books/0.4.0/book_client-details.md Sat Apr 19 20:16:08 2014
@@ -81,7 +81,7 @@ Using `^C` to exit can sometimes leaves 
 
 The shell can also be used to execute a script by passing a single filename argument.
 
-    java -jar bin/shell.jar samples/ExampleWebHdfsPutGetFile.groovy
+    java -jar bin/shell.jar samples/ExampleWebHdfsPutGet.groovy
 
 
 ### Examples ###
@@ -487,27 +487,27 @@ The JARs currently required by the clien
 
 So on Linux/MacOS you would need this command
 
-    groovy -cp lib/gateway-shell-0.2.0-SNAPSHOT.jar:dep/httpclient-4.2.3.jar:dep/httpcore-4.2.2.jar:dep/commons-lang3-3.1.jar:dep/commons-codec-1.7.jar
samples/ExampleWebHdfsPutGet.groovy
+    groovy -cp lib/gateway-shell-0.4.0.jar:dep/httpclient-4.2.5.jar:dep/httpcore-4.2.4.jar:dep/commons-lang3-3.1.jar:dep/commons-codec-1.7.jar
samples/ExampleWebHdfsPutGet.groovy
 
 and on Windows you would need this command
 
-    groovy -cp lib/gateway-shell-0.2.0-SNAPSHOT.jar;dep/httpclient-4.2.3.jar;dep/httpcore-4.2.2.jar;dep/commons-lang3-3.1.jar;dep/commons-codec-1.7.jar
samples/ExampleWebHdfsPutGet.groovy
+    groovy -cp lib/gateway-shell-0.4.0.jar;dep/httpclient-4.2.5.jar;dep/httpcore-4.2.4.jar;dep/commons-lang3-3.1.jar;dep/commons-codec-1.7.jar
samples/ExampleWebHdfsPutGet.groovy
 
 The exact list of required JARs is likely to change from release to release so it is recommended
that you utilize the wrapper `bin/shell.jar`.
 
 In addition because the DSL can be used via standard Groovy, the Groovy integrations in many
popular IDEs (e.g. IntelliJ , Eclipse) can also be used.
 This makes it particularly nice to develop and execute scripts to interact with Hadoop.
 The code-completion features in modern IDEs in particular provides immense value.
-All that is required is to add the shell-0.2.0.jar to the projects class path.
+All that is required is to add the gateway-shell-0.4.0.jar to the projects class path.
 
 There are a variety of Groovy tools that make it very easy to work with the standard interchange
formats (i.e. JSON and XML).
 In Groovy the creation of XML or JSON is typically done via a "builder" and parsing done
via a "slurper".
 In addition once JSON or XML is "slurped" the GPath, an XPath like feature build into Groovy
can be used to access data.
 
 * XML
-    * Markup Builder [Overview]http://groovy.codehaus.org/Creating+XML+using+Groovy's+MarkupBuilder),
[API](http://groovy.codehaus.org/api/groovy/xml/MarkupBuilder.html)
-    * XML Slurper [Overview]http://groovy.codehaus.org/Reading+XML+using+Groovy's+XmlSlurper),
[API](http://groovy.codehaus.org/api/groovy/util/XmlSlurper.html)
-    * XPath [Overview]http://groovy.codehaus.org/GPath), [API](http://docs.oracle.com/javase/1.5.0/docs/api/javax/xml/xpath/XPath.html)
+    * Markup Builder [Overview](http://groovy.codehaus.org/Creating+XML+using+Groovy's+MarkupBuilder),
[API](http://groovy.codehaus.org/api/groovy/xml/MarkupBuilder.html)
+    * XML Slurper [Overview](http://groovy.codehaus.org/Reading+XML+using+Groovy's+XmlSlurper),
[API](http://groovy.codehaus.org/api/groovy/util/XmlSlurper.html)
+    * XPath [Overview](http://groovy.codehaus.org/GPath), [API](http://docs.oracle.com/javase/1.5.0/docs/api/javax/xml/xpath/XPath.html)
 * JSON
     * JSON Builder [API](http://groovy.codehaus.org/gapi/groovy/json/JsonBuilder.html)
     * JSON Slurper [API](http://groovy.codehaus.org/gapi/groovy/json/JsonSlurper.html)



Mime
View raw message