http://git-wip-us.apache.org/repos/asf/hbase-site/blob/2b11656f/apidocs/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html
----------------------------------------------------------------------
diff --git 
a/apidocs/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html
 
b/apidocs/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html
index b9d323c..ff7fe9a 100644
--- 
a/apidocs/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html
+++ 
b/apidocs/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html
@@ -397,7 +397,7 @@ extends <a 
href="../../../../../org/apache/hadoop/hbase/client/RetriesExhaustedE
 <ul class="blockList">
 <li class="blockList">
 <h4>getExhaustiveDescription</h4>
-<pre>public&nbsp;<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true";
 title="class or interface in java.lang">String</a>&nbsp;<a 
href="../../../../../src-html/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html#line.129">getExhaustiveDescription</a>()</pre>
+<pre>public&nbsp;<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true";
 title="class or interface in java.lang">String</a>&nbsp;<a 
href="../../../../../src-html/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html#line.128">getExhaustiveDescription</a>()</pre>
 </li>
 </ul>
 <a name="classifyExs-java.util.List-">
@@ -406,7 +406,7 @@ extends <a 
href="../../../../../org/apache/hadoop/hbase/client/RetriesExhaustedE
 <ul class="blockList">
 <li class="blockList">
 <h4>classifyExs</h4>
-<pre>public static&nbsp;<a 
href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true";
 title="class or interface in java.util">Map</a>&lt;<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true";
 title="class or interface in java.lang">String</a>,<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true";
 title="class or interface in java.lang">Integer</a>&gt;&nbsp;<a 
href="../../../../../src-html/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html#line.152">classifyExs</a>(<a
 
href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true";
 title="class or interface in java.util">List</a>&lt;<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true";
 title="class or interface in java.lang">Throwable</a>&gt;&nbsp;ths)</pre>
+<pre>public static&nbsp;<a 
href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true";
 title="class or interface in java.util">Map</a>&lt;<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true";
 title="class or interface in java.lang">String</a>,<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true";
 title="class or interface in java.lang">Integer</a>&gt;&nbsp;<a 
href="../../../../../src-html/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html#line.151">classifyExs</a>(<a
 
href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true";
 title="class or interface in java.util">List</a>&lt;<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true";
 title="class or interface in java.lang">Throwable</a>&gt;&nbsp;ths)</pre>
 </li>
 </ul>
 <a name="getDesc-java.util.Map-">
@@ -415,7 +415,7 @@ extends <a 
href="../../../../../org/apache/hadoop/hbase/client/RetriesExhaustedE
 <ul class="blockListLast">
 <li class="blockList">
 <h4>getDesc</h4>
-<pre>public static&nbsp;<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true";
 title="class or interface in java.lang">String</a>&nbsp;<a 
href="../../../../../src-html/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html#line.176">getDesc</a>(<a
 
href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true";
 title="class or interface in java.util">Map</a>&lt;<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true";
 title="class or interface in java.lang">String</a>,<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true";
 title="class or interface in 
java.lang">Integer</a>&gt;&nbsp;classificaton)</pre>
+<pre>public static&nbsp;<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true";
 title="class or interface in java.lang">String</a>&nbsp;<a 
href="../../../../../src-html/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html#line.175">getDesc</a>(<a
 
href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true";
 title="class or interface in java.util">Map</a>&lt;<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true";
 title="class or interface in java.lang">String</a>,<a 
href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true";
 title="class or interface in 
java.lang">Integer</a>&gt;&nbsp;classificaton)</pre>
 </li>
 </ul>
 </li>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/2b11656f/apidocs/src-html/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html
----------------------------------------------------------------------
diff --git 
a/apidocs/src-html/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html
 
b/apidocs/src-html/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html
index 205572e..f6a9063 100644
--- 
a/apidocs/src-html/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html
+++ 
b/apidocs/src-html/org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.html
@@ -125,75 +125,74 @@
 <span class="sourceLineNo">117</span>    String s = 
getDesc(classifyExs(exceptions));<a name="line.117"></a>
 <span class="sourceLineNo">118</span>    StringBuilder addrs = new 
StringBuilder(s);<a name="line.118"></a>
 <span class="sourceLineNo">119</span>    addrs.append("servers with issues: 
");<a name="line.119"></a>
-<span class="sourceLineNo">120</span>    Set&lt;String&gt; uniqAddr = new 
HashSet&lt;&gt;();<a name="line.120"></a>
-<span class="sourceLineNo">121</span>    uniqAddr.addAll(hostnamePort);<a 
name="line.121"></a>
-<span class="sourceLineNo">122</span><a name="line.122"></a>
-<span class="sourceLineNo">123</span>    for (String addr : uniqAddr) {<a 
name="line.123"></a>
-<span class="sourceLineNo">124</span>      addrs.append(addr).append(", ");<a 
name="line.124"></a>
-<span class="sourceLineNo">125</span>    }<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    return uniqAddr.isEmpty() ? 
addrs.toString() : addrs.substring(0, addrs.length() - 2);<a 
name="line.126"></a>
-<span class="sourceLineNo">127</span>  }<a name="line.127"></a>
-<span class="sourceLineNo">128</span><a name="line.128"></a>
-<span class="sourceLineNo">129</span>  public String 
getExhaustiveDescription() {<a name="line.129"></a>
-<span class="sourceLineNo">130</span>    StringWriter errorWriter = new 
StringWriter();<a name="line.130"></a>
-<span class="sourceLineNo">131</span>    PrintWriter pw = new 
PrintWriter(errorWriter);<a name="line.131"></a>
-<span class="sourceLineNo">132</span>    for (int i = 0; i &lt; 
this.exceptions.size(); ++i) {<a name="line.132"></a>
-<span class="sourceLineNo">133</span>      Throwable t = 
this.exceptions.get(i);<a name="line.133"></a>
-<span class="sourceLineNo">134</span>      Row action = this.actions.get(i);<a 
name="line.134"></a>
-<span class="sourceLineNo">135</span>      String server = 
this.hostnameAndPort.get(i);<a name="line.135"></a>
-<span class="sourceLineNo">136</span>      pw.append("exception");<a 
name="line.136"></a>
-<span class="sourceLineNo">137</span>      if (this.exceptions.size() &gt; 1) 
{<a name="line.137"></a>
-<span class="sourceLineNo">138</span>        pw.append(" #" + i);<a 
name="line.138"></a>
-<span class="sourceLineNo">139</span>      }<a name="line.139"></a>
-<span class="sourceLineNo">140</span>      pw.append(" from " + server + " for 
"<a name="line.140"></a>
-<span class="sourceLineNo">141</span>        + ((action == null) ? "unknown 
key" : Bytes.toStringBinary(action.getRow())));<a name="line.141"></a>
-<span class="sourceLineNo">142</span>      if (t != null) {<a 
name="line.142"></a>
-<span class="sourceLineNo">143</span>        pw.println();<a 
name="line.143"></a>
-<span class="sourceLineNo">144</span>        t.printStackTrace(pw);<a 
name="line.144"></a>
-<span class="sourceLineNo">145</span>      }<a name="line.145"></a>
-<span class="sourceLineNo">146</span>    }<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    pw.flush();<a name="line.147"></a>
-<span class="sourceLineNo">148</span>    return errorWriter.toString();<a 
name="line.148"></a>
-<span class="sourceLineNo">149</span>  }<a name="line.149"></a>
+<span class="sourceLineNo">120</span>    Set&lt;String&gt; uniqAddr = new 
HashSet&lt;&gt;(hostnamePort);<a name="line.120"></a>
+<span class="sourceLineNo">121</span><a name="line.121"></a>
+<span class="sourceLineNo">122</span>    for (String addr : uniqAddr) {<a 
name="line.122"></a>
+<span class="sourceLineNo">123</span>      addrs.append(addr).append(", ");<a 
name="line.123"></a>
+<span class="sourceLineNo">124</span>    }<a name="line.124"></a>
+<span class="sourceLineNo">125</span>    return uniqAddr.isEmpty() ? 
addrs.toString() : addrs.substring(0, addrs.length() - 2);<a 
name="line.125"></a>
+<span class="sourceLineNo">126</span>  }<a name="line.126"></a>
+<span class="sourceLineNo">127</span><a name="line.127"></a>
+<span class="sourceLineNo">128</span>  public String 
getExhaustiveDescription() {<a name="line.128"></a>
+<span class="sourceLineNo">129</span>    StringWriter errorWriter = new 
StringWriter();<a name="line.129"></a>
+<span class="sourceLineNo">130</span>    PrintWriter pw = new 
PrintWriter(errorWriter);<a name="line.130"></a>
+<span class="sourceLineNo">131</span>    for (int i = 0; i &lt; 
this.exceptions.size(); ++i) {<a name="line.131"></a>
+<span class="sourceLineNo">132</span>      Throwable t = 
this.exceptions.get(i);<a name="line.132"></a>
+<span class="sourceLineNo">133</span>      Row action = this.actions.get(i);<a 
name="line.133"></a>
+<span class="sourceLineNo">134</span>      String server = 
this.hostnameAndPort.get(i);<a name="line.134"></a>
+<span class="sourceLineNo">135</span>      pw.append("exception");<a 
name="line.135"></a>
+<span class="sourceLineNo">136</span>      if (this.exceptions.size() &gt; 1) 
{<a name="line.136"></a>
+<span class="sourceLineNo">137</span>        pw.append(" #" + i);<a 
name="line.137"></a>
+<span class="sourceLineNo">138</span>      }<a name="line.138"></a>
+<span class="sourceLineNo">139</span>      pw.append(" from " + server + " for 
"<a name="line.139"></a>
+<span class="sourceLineNo">140</span>        + ((action == null) ? "unknown 
key" : Bytes.toStringBinary(action.getRow())));<a name="line.140"></a>
+<span class="sourceLineNo">141</span>      if (t != null) {<a 
name="line.141"></a>
+<span class="sourceLineNo">142</span>        pw.println();<a 
name="line.142"></a>
+<span class="sourceLineNo">143</span>        t.printStackTrace(pw);<a 
name="line.143"></a>
+<span class="sourceLineNo">144</span>      }<a name="line.144"></a>
+<span class="sourceLineNo">145</span>    }<a name="line.145"></a>
+<span class="sourceLineNo">146</span>    pw.flush();<a name="line.146"></a>
+<span class="sourceLineNo">147</span>    return errorWriter.toString();<a 
name="line.147"></a>
+<span class="sourceLineNo">148</span>  }<a name="line.148"></a>
+<span class="sourceLineNo">149</span><a name="line.149"></a>
 <span class="sourceLineNo">150</span><a name="line.150"></a>
-<span class="sourceLineNo">151</span><a name="line.151"></a>
-<span class="sourceLineNo">152</span>  public static Map&lt;String, 
Integer&gt; classifyExs(List&lt;Throwable&gt; ths) {<a name="line.152"></a>
-<span class="sourceLineNo">153</span>    Map&lt;String, Integer&gt; cls = new 
HashMap&lt;&gt;();<a name="line.153"></a>
-<span class="sourceLineNo">154</span>    for (Throwable t : ths) {<a 
name="line.154"></a>
-<span class="sourceLineNo">155</span>      if (t == null) continue;<a 
name="line.155"></a>
-<span class="sourceLineNo">156</span>      String name = "";<a 
name="line.156"></a>
-<span class="sourceLineNo">157</span>      if (t instanceof 
DoNotRetryIOException ||<a name="line.157"></a>
-<span class="sourceLineNo">158</span>          t instanceof 
RegionTooBusyException) {<a name="line.158"></a>
-<span class="sourceLineNo">159</span>        // If RegionTooBusyException, 
print message since it has Region name in it.<a name="line.159"></a>
-<span class="sourceLineNo">160</span>        // RegionTooBusyException message 
was edited to remove variance. Has regionname, server,<a name="line.160"></a>
-<span class="sourceLineNo">161</span>        // and why the exception; no 
longer has duration it waited on lock nor current memsize.<a 
name="line.161"></a>
-<span class="sourceLineNo">162</span>        name = t.getMessage();<a 
name="line.162"></a>
-<span class="sourceLineNo">163</span>      } else {<a name="line.163"></a>
-<span class="sourceLineNo">164</span>        name = 
t.getClass().getSimpleName();<a name="line.164"></a>
-<span class="sourceLineNo">165</span>      }<a name="line.165"></a>
-<span class="sourceLineNo">166</span>      Integer i = cls.get(name);<a 
name="line.166"></a>
-<span class="sourceLineNo">167</span>      if (i == null) {<a 
name="line.167"></a>
-<span class="sourceLineNo">168</span>        i = 0;<a name="line.168"></a>
-<span class="sourceLineNo">169</span>      }<a name="line.169"></a>
-<span class="sourceLineNo">170</span>      i += 1;<a name="line.170"></a>
-<span class="sourceLineNo">171</span>      cls.put(name, i);<a 
name="line.171"></a>
-<span class="sourceLineNo">172</span>    }<a name="line.172"></a>
-<span class="sourceLineNo">173</span>    return cls;<a name="line.173"></a>
-<span class="sourceLineNo">174</span>  }<a name="line.174"></a>
-<span class="sourceLineNo">175</span><a name="line.175"></a>
-<span class="sourceLineNo">176</span>  public static String 
getDesc(Map&lt;String,Integer&gt; classificaton) {<a name="line.176"></a>
-<span class="sourceLineNo">177</span>    StringBuilder classificatons =new 
StringBuilder(11);<a name="line.177"></a>
-<span class="sourceLineNo">178</span>    for (Map.Entry&lt;String, Integer&gt; 
e : classificaton.entrySet()) {<a name="line.178"></a>
-<span class="sourceLineNo">179</span>      
classificatons.append(e.getKey());<a name="line.179"></a>
-<span class="sourceLineNo">180</span>      classificatons.append(": ");<a 
name="line.180"></a>
-<span class="sourceLineNo">181</span>      
classificatons.append(e.getValue());<a name="line.181"></a>
-<span class="sourceLineNo">182</span>      classificatons.append(" time");<a 
name="line.182"></a>
-<span class="sourceLineNo">183</span>      
classificatons.append(pluralize(e.getValue()));<a name="line.183"></a>
-<span class="sourceLineNo">184</span>      classificatons.append(", ");<a 
name="line.184"></a>
-<span class="sourceLineNo">185</span>    }<a name="line.185"></a>
-<span class="sourceLineNo">186</span>    return classificatons.toString();<a 
name="line.186"></a>
-<span class="sourceLineNo">187</span>  }<a name="line.187"></a>
-<span class="sourceLineNo">188</span>}<a name="line.188"></a>
+<span class="sourceLineNo">151</span>  public static Map&lt;String, 
Integer&gt; classifyExs(List&lt;Throwable&gt; ths) {<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    Map&lt;String, Integer&gt; cls = new 
HashMap&lt;&gt;();<a name="line.152"></a>
+<span class="sourceLineNo">153</span>    for (Throwable t : ths) {<a 
name="line.153"></a>
+<span class="sourceLineNo">154</span>      if (t == null) continue;<a 
name="line.154"></a>
+<span class="sourceLineNo">155</span>      String name = "";<a 
name="line.155"></a>
+<span class="sourceLineNo">156</span>      if (t instanceof 
DoNotRetryIOException ||<a name="line.156"></a>
+<span class="sourceLineNo">157</span>          t instanceof 
RegionTooBusyException) {<a name="line.157"></a>
+<span class="sourceLineNo">158</span>        // If RegionTooBusyException, 
print message since it has Region name in it.<a name="line.158"></a>
+<span class="sourceLineNo">159</span>        // RegionTooBusyException message 
was edited to remove variance. Has regionname, server,<a name="line.159"></a>
+<span class="sourceLineNo">160</span>        // and why the exception; no 
longer has duration it waited on lock nor current memsize.<a 
name="line.160"></a>
+<span class="sourceLineNo">161</span>        name = t.getMessage();<a 
name="line.161"></a>
+<span class="sourceLineNo">162</span>      } else {<a name="line.162"></a>
+<span class="sourceLineNo">163</span>        name = 
t.getClass().getSimpleName();<a name="line.163"></a>
+<span class="sourceLineNo">164</span>      }<a name="line.164"></a>
+<span class="sourceLineNo">165</span>      Integer i = cls.get(name);<a 
name="line.165"></a>
+<span class="sourceLineNo">166</span>      if (i == null) {<a 
name="line.166"></a>
+<span class="sourceLineNo">167</span>        i = 0;<a name="line.167"></a>
+<span class="sourceLineNo">168</span>      }<a name="line.168"></a>
+<span class="sourceLineNo">169</span>      i += 1;<a name="line.169"></a>
+<span class="sourceLineNo">170</span>      cls.put(name, i);<a 
name="line.170"></a>
+<span class="sourceLineNo">171</span>    }<a name="line.171"></a>
+<span class="sourceLineNo">172</span>    return cls;<a name="line.172"></a>
+<span class="sourceLineNo">173</span>  }<a name="line.173"></a>
+<span class="sourceLineNo">174</span><a name="line.174"></a>
+<span class="sourceLineNo">175</span>  public static String 
getDesc(Map&lt;String,Integer&gt; classificaton) {<a name="line.175"></a>
+<span class="sourceLineNo">176</span>    StringBuilder classificatons =new 
StringBuilder(11);<a name="line.176"></a>
+<span class="sourceLineNo">177</span>    for (Map.Entry&lt;String, Integer&gt; 
e : classificaton.entrySet()) {<a name="line.177"></a>
+<span class="sourceLineNo">178</span>      
classificatons.append(e.getKey());<a name="line.178"></a>
+<span class="sourceLineNo">179</span>      classificatons.append(": ");<a 
name="line.179"></a>
+<span class="sourceLineNo">180</span>      
classificatons.append(e.getValue());<a name="line.180"></a>
+<span class="sourceLineNo">181</span>      classificatons.append(" time");<a 
name="line.181"></a>
+<span class="sourceLineNo">182</span>      
classificatons.append(pluralize(e.getValue()));<a name="line.182"></a>
+<span class="sourceLineNo">183</span>      classificatons.append(", ");<a 
name="line.183"></a>
+<span class="sourceLineNo">184</span>    }<a name="line.184"></a>
+<span class="sourceLineNo">185</span>    return classificatons.toString();<a 
name="line.185"></a>
+<span class="sourceLineNo">186</span>  }<a name="line.186"></a>
+<span class="sourceLineNo">187</span>}<a name="line.187"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/2b11656f/book.html
----------------------------------------------------------------------
diff --git a/book.html b/book.html
index ba28ae9..4460f6c 100644
--- a/book.html
+++ b/book.html
@@ -20694,24 +20694,15 @@ println(Bytes.toString(value))</code></pre>
 <h3 id="_setting_the_classpath_2"><a class="anchor" 
href="#_setting_the_classpath_2"></a>98.1. Setting the Classpath</h3>
 <div class="paragraph">
 <p>To use Jython with HBase, your CLASSPATH must include HBase&#8217;s 
classpath as well as
-the Jython JARs required by your code. First, use the following command on a 
server
-running the HBase RegionServer process, to get HBase&#8217;s classpath.</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="CodeRay highlight"><code data-lang="bash">$ ps aux |grep 
regionserver| awk -F 'java.library.path=' {'print $2'} | awk {'print $1'}
-
-/usr/lib/hadoop/lib/native:/usr/lib/hbase/lib/native/Linux-amd64-64</code></pre>
-</div>
+the Jython JARs required by your code.</p>
 </div>
 <div class="paragraph">
-<p>Set the <code>$CLASSPATH</code> environment variable to include the path 
you found in the previous
-step, plus the path to <code>jython.jar</code> and each additional 
Jython-related JAR needed for
-your project.</p>
+<p>Set the path to directory containing the <code>jython.jar</code> and each 
additional Jython-related JAR needed for
+your project. Then export HBASE_CLASSPATH pointing to the $JYTHON_HOME env. 
variable.</p>
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="CodeRay highlight"><code data-lang="bash">$ export 
CLASSPATH=$CLASSPATH:/usr/lib/hadoop/lib/native:/usr/lib/hbase/lib/native/Linux-amd64-64:/path/to/jython.jar</code></pre>
+<pre class="CodeRay highlight"><code data-lang="bash">$ export 
HBASE_CLASSPATH=/directory/jython.jar</code></pre>
 </div>
 </div>
 <div class="paragraph">
@@ -20725,55 +20716,52 @@ $ bin/hbase org.python.util.jython</p>
 <div class="title">Example 27. Table Creation, Population, Get, and Delete 
with Jython</div>
 <div class="content">
 <div class="paragraph">
-<p>The following Jython code example creates a table, populates it with data, 
fetches
-the data, and deletes the table.</p>
+<p>The following Jython code example checks for table,
+if it exists, deletes it and then creates it. Then it
+populates the table with data and fetches the data.</p>
 </div>
 <div class="listingblock">
 <div class="content">
 <pre class="CodeRay highlight"><code data-lang="jython">import java.lang
-from org.apache.hadoop.hbase import HBaseConfiguration, HTableDescriptor, 
HColumnDescriptor, HConstants, TableName
-from org.apache.hadoop.hbase.client import HBaseAdmin, HTable, Get
-from org.apache.hadoop.hbase.io import Cell, RowResult
+from org.apache.hadoop.hbase import HBaseConfiguration, HTableDescriptor, 
HColumnDescriptor, TableName
+from org.apache.hadoop.hbase.client import Admin, Connection, 
ConnectionFactory, Get, Put, Result, Table
+from org.apache.hadoop.conf import Configuration
 
 # First get a conf object.  This will read in the configuration
 # that is out in your hbase-*.xml files such as location of the
 # hbase master node.
-conf = HBaseConfiguration()
+conf = HBaseConfiguration.create()
+connection = ConnectionFactory.createConnection(conf)
+admin = connection.getAdmin()
 
-# Create a table named 'test' that has two column families,
-# one named 'content, and the other 'anchor'.  The colons
-# are required for column family names.
-tablename = TableName.valueOf(&quot;test&quot;)
+# Create a table named 'test' that has a column family
+# named 'content'.
+tableName = TableName.valueOf(&quot;test&quot;)
+table = connection.getTable(tableName)
 
-desc = HTableDescriptor(tablename)
-desc.addFamily(HColumnDescriptor(&quot;content:&quot;))
-desc.addFamily(HColumnDescriptor(&quot;anchor:&quot;))
-admin = HBaseAdmin(conf)
+desc = HTableDescriptor(tableName)
+desc.addFamily(HColumnDescriptor(&quot;content&quot;))
 
 # Drop and recreate if it exists
-if admin.tableExists(tablename):
-    admin.disableTable(tablename)
-    admin.deleteTable(tablename)
-admin.createTable(desc)
+if admin.tableExists(tableName):
+    admin.disableTable(tableName)
+    admin.deleteTable(tableName)
 
-tables = admin.listTables()
-table = HTable(conf, tablename)
+admin.createTable(desc)
 
 # Add content to 'column:' on a row named 'row_x'
 row = 'row_x'
-update = Get(row)
-update.put('content:', 'some content')
-table.commit(update)
+put = Put(row)
+put.addColumn(&quot;content&quot;, &quot;qual&quot;, &quot;some content&quot;)
+table.put(put)
 
 # Now fetch the content just added, returns a byte[]
-data_row = table.get(row, &quot;content:&quot;)
-data = java.lang.String(data_row.value, &quot;UTF8&quot;)
+get = Get(row)
 
-print &quot;The fetched row contains the value '%s'&quot; % data
+result = table.get(get)
+data = java.lang.String(result.getValue(&quot;content&quot;, 
&quot;qual&quot;), &quot;UTF8&quot;)
 
-# Delete the table.
-admin.disableTable(desc.getName())
-admin.deleteTable(desc.getName())</code></pre>
+print &quot;The fetched row contains the value '%s'&quot; % data</code></pre>
 </div>
 </div>
 </div>
@@ -20786,25 +20774,24 @@ admin.deleteTable(desc.getName())</code></pre>
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="CodeRay highlight"><code data-lang="jython"># Print all rows that 
are members of a particular column family
-# by passing a regex for family qualifier
-
-import java.lang
-
-from org.apache.hadoop.hbase import HBaseConfiguration
-from org.apache.hadoop.hbase.client import HTable
-
-conf = HBaseConfiguration()
-
-table = HTable(conf, &quot;wiki&quot;)
-col = &quot;title:.*$&quot;
-
-scanner = table.getScanner([col], &quot;&quot;)
+<pre class="CodeRay highlight"><code data-lang="jython">import java.lang
+from org.apache.hadoop.hbase import TableName, HBaseConfiguration
+from org.apache.hadoop.hbase.client import Connection, ConnectionFactory, 
Result, ResultScanner, Table, Admin
+from org.apache.hadoop.conf import Configuration
+conf = HBaseConfiguration.create()
+connection = ConnectionFactory.createConnection(conf)
+admin = connection.getAdmin()
+tableName = TableName.valueOf('wiki')
+table = connection.getTable(tableName)
+
+cf = &quot;title&quot;
+attr = &quot;attr&quot;
+scanner = table.getScanner(cf)
 while 1:
     result = scanner.next()
     if not result:
-        break
-    print java.lang.String(result.row), 
java.lang.String(result.get('title:').value)</code></pre>
+       break
+    print java.lang.String(result.row), java.lang.String(result.getValue(cf, 
attr))</code></pre>
 </div>
 </div>
 </div>
@@ -40385,7 +40372,7 @@ 
org/apache/hadoop/hbase/security/access/AccessControlClient.revoke:(Lorg/apache/
 <div id="footer">
 <div id="footer-text">
 Version 3.0.0-SNAPSHOT<br>
-Last updated 2018-06-20 04:06:07 UTC
+Last updated 2018-06-21 05:09:48 UTC
 </div>
 </div>
 </body>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/2b11656f/bulk-loads.html
----------------------------------------------------------------------
diff --git a/bulk-loads.html b/bulk-loads.html
index 22f2b07..c796608 100644
--- a/bulk-loads.html
+++ b/bulk-loads.html
@@ -7,7 +7,7 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20180620" />
+    <meta name="Date-Revision-yyyymmdd" content="20180621" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013;  
       Bulk Loads in Apache HBase (TM)
@@ -306,7 +306,7 @@ under the License. -->
                         <a href="https://www.apache.org/";>The Apache Software 
Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 
2018-06-20</li>
+                  <li id="publishDate" class="pull-right">Last Published: 
2018-06-21</li>
             </p>
                 </div>
 

Reply via email to