hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject [44/51] [partial] hbase-site git commit: Published site at 2cc48e039d1f800832ac8880bbc820982e0ac8a5.
Date Mon, 01 Feb 2016 16:57:40 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a7e5a8ce/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/CellCounter.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/CellCounter.html b/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/CellCounter.html
index bcb6f9a..d3e03ce 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/CellCounter.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/CellCounter.html
@@ -128,186 +128,187 @@
 <span class="sourceLineNo">120</span>      try {<a name="line.120"></a>
 <span class="sourceLineNo">121</span>        context.getCounter(Counters.ROWS).increment(1);<a name="line.121"></a>
 <span class="sourceLineNo">122</span>        context.write(new Text("Total ROWS"), new IntWritable(1));<a name="line.122"></a>
-<span class="sourceLineNo">123</span><a name="line.123"></a>
-<span class="sourceLineNo">124</span>        for (Cell value : values.listCells()) {<a name="line.124"></a>
-<span class="sourceLineNo">125</span>          currentRowKey = Bytes.toStringBinary(CellUtil.cloneRow(value));<a name="line.125"></a>
-<span class="sourceLineNo">126</span>          String thisRowFamilyName = Bytes.toStringBinary(CellUtil.cloneFamily(value));<a name="line.126"></a>
-<span class="sourceLineNo">127</span>          if (!thisRowFamilyName.equals(currentFamilyName)) {<a name="line.127"></a>
-<span class="sourceLineNo">128</span>            currentFamilyName = thisRowFamilyName;<a name="line.128"></a>
-<span class="sourceLineNo">129</span>            context.getCounter("CF", thisRowFamilyName).increment(1);<a name="line.129"></a>
-<span class="sourceLineNo">130</span>            if (1 == context.getCounter("CF", thisRowFamilyName).getValue()) {<a name="line.130"></a>
-<span class="sourceLineNo">131</span>              context.write(new Text("Total Families Across all Rows"), new IntWritable(1));<a name="line.131"></a>
-<span class="sourceLineNo">132</span>              context.write(new Text(thisRowFamilyName), new IntWritable(1));<a name="line.132"></a>
-<span class="sourceLineNo">133</span>            }<a name="line.133"></a>
-<span class="sourceLineNo">134</span>          }<a name="line.134"></a>
-<span class="sourceLineNo">135</span>          String thisRowQualifierName = thisRowFamilyName + separator<a name="line.135"></a>
-<span class="sourceLineNo">136</span>              + Bytes.toStringBinary(CellUtil.cloneQualifier(value));<a name="line.136"></a>
-<span class="sourceLineNo">137</span>          if (!thisRowQualifierName.equals(currentQualifierName)) {<a name="line.137"></a>
-<span class="sourceLineNo">138</span>            currentQualifierName = thisRowQualifierName;<a name="line.138"></a>
-<span class="sourceLineNo">139</span>            context.getCounter("CFQL", thisRowQualifierName).increment(1);<a name="line.139"></a>
-<span class="sourceLineNo">140</span>            context.write(new Text("Total Qualifiers across all Rows"),<a name="line.140"></a>
-<span class="sourceLineNo">141</span>              new IntWritable(1));<a name="line.141"></a>
-<span class="sourceLineNo">142</span>            context.write(new Text(thisRowQualifierName), new IntWritable(1));<a name="line.142"></a>
-<span class="sourceLineNo">143</span>            // Intialize versions<a name="line.143"></a>
-<span class="sourceLineNo">144</span>            context.getCounter("QL_VERSIONS", currentRowKey + separator +<a name="line.144"></a>
-<span class="sourceLineNo">145</span>              thisRowQualifierName).increment(1);<a name="line.145"></a>
-<span class="sourceLineNo">146</span>            context.write(new Text(currentRowKey + separator<a name="line.146"></a>
-<span class="sourceLineNo">147</span>                + thisRowQualifierName + "_Versions"), new IntWritable(1));<a name="line.147"></a>
+<span class="sourceLineNo">123</span>        if (values != null &amp;&amp; !values.isEmpty()) {<a name="line.123"></a>
+<span class="sourceLineNo">124</span>          for (Cell value : values.listCells()) {<a name="line.124"></a>
+<span class="sourceLineNo">125</span>            currentRowKey = Bytes.toStringBinary(CellUtil.cloneRow(value));<a name="line.125"></a>
+<span class="sourceLineNo">126</span>            String thisRowFamilyName = Bytes.toStringBinary(CellUtil.cloneFamily(value));<a name="line.126"></a>
+<span class="sourceLineNo">127</span>            if (!thisRowFamilyName.equals(currentFamilyName)) {<a name="line.127"></a>
+<span class="sourceLineNo">128</span>              currentFamilyName = thisRowFamilyName;<a name="line.128"></a>
+<span class="sourceLineNo">129</span>              context.getCounter("CF", thisRowFamilyName).increment(1);<a name="line.129"></a>
+<span class="sourceLineNo">130</span>              if (1 == context.getCounter("CF", thisRowFamilyName).getValue()) {<a name="line.130"></a>
+<span class="sourceLineNo">131</span>                context.write(new Text("Total Families Across all Rows"), new IntWritable(1));<a name="line.131"></a>
+<span class="sourceLineNo">132</span>                context.write(new Text(thisRowFamilyName), new IntWritable(1));<a name="line.132"></a>
+<span class="sourceLineNo">133</span>              }<a name="line.133"></a>
+<span class="sourceLineNo">134</span>            }<a name="line.134"></a>
+<span class="sourceLineNo">135</span>            String thisRowQualifierName = thisRowFamilyName + separator<a name="line.135"></a>
+<span class="sourceLineNo">136</span>                + Bytes.toStringBinary(CellUtil.cloneQualifier(value));<a name="line.136"></a>
+<span class="sourceLineNo">137</span>            if (!thisRowQualifierName.equals(currentQualifierName)) {<a name="line.137"></a>
+<span class="sourceLineNo">138</span>              currentQualifierName = thisRowQualifierName;<a name="line.138"></a>
+<span class="sourceLineNo">139</span>              context.getCounter("CFQL", thisRowQualifierName).increment(1);<a name="line.139"></a>
+<span class="sourceLineNo">140</span>              context.write(new Text("Total Qualifiers across all Rows"),<a name="line.140"></a>
+<span class="sourceLineNo">141</span>                  new IntWritable(1));<a name="line.141"></a>
+<span class="sourceLineNo">142</span>              context.write(new Text(thisRowQualifierName), new IntWritable(1));<a name="line.142"></a>
+<span class="sourceLineNo">143</span>              // Intialize versions<a name="line.143"></a>
+<span class="sourceLineNo">144</span>              context.getCounter("QL_VERSIONS", currentRowKey + separator +<a name="line.144"></a>
+<span class="sourceLineNo">145</span>                  thisRowQualifierName).increment(1);<a name="line.145"></a>
+<span class="sourceLineNo">146</span>              context.write(new Text(currentRowKey + separator<a name="line.146"></a>
+<span class="sourceLineNo">147</span>                  + thisRowQualifierName + "_Versions"), new IntWritable(1));<a name="line.147"></a>
 <span class="sourceLineNo">148</span><a name="line.148"></a>
-<span class="sourceLineNo">149</span>          } else {<a name="line.149"></a>
-<span class="sourceLineNo">150</span>            // Increment versions<a name="line.150"></a>
-<span class="sourceLineNo">151</span>            currentQualifierName = thisRowQualifierName;<a name="line.151"></a>
-<span class="sourceLineNo">152</span>            context.getCounter("QL_VERSIONS", currentRowKey + separator +<a name="line.152"></a>
-<span class="sourceLineNo">153</span>              thisRowQualifierName).increment(1);<a name="line.153"></a>
-<span class="sourceLineNo">154</span>            context.write(new Text(currentRowKey + separator<a name="line.154"></a>
-<span class="sourceLineNo">155</span>                + thisRowQualifierName + "_Versions"), new IntWritable(1));<a name="line.155"></a>
-<span class="sourceLineNo">156</span>          }<a name="line.156"></a>
-<span class="sourceLineNo">157</span>        }<a name="line.157"></a>
-<span class="sourceLineNo">158</span>      } catch (InterruptedException e) {<a name="line.158"></a>
-<span class="sourceLineNo">159</span>        e.printStackTrace();<a name="line.159"></a>
-<span class="sourceLineNo">160</span>      }<a name="line.160"></a>
-<span class="sourceLineNo">161</span>    }<a name="line.161"></a>
-<span class="sourceLineNo">162</span>  }<a name="line.162"></a>
-<span class="sourceLineNo">163</span><a name="line.163"></a>
-<span class="sourceLineNo">164</span>  static class IntSumReducer&lt;Key&gt; extends Reducer&lt;Key, IntWritable,<a name="line.164"></a>
-<span class="sourceLineNo">165</span>      Key, IntWritable&gt; {<a name="line.165"></a>
-<span class="sourceLineNo">166</span><a name="line.166"></a>
-<span class="sourceLineNo">167</span>    private IntWritable result = new IntWritable();<a name="line.167"></a>
-<span class="sourceLineNo">168</span>    public void reduce(Key key, Iterable&lt;IntWritable&gt; values,<a name="line.168"></a>
-<span class="sourceLineNo">169</span>      Context context)<a name="line.169"></a>
-<span class="sourceLineNo">170</span>    throws IOException, InterruptedException {<a name="line.170"></a>
-<span class="sourceLineNo">171</span>      int sum = 0;<a name="line.171"></a>
-<span class="sourceLineNo">172</span>      for (IntWritable val : values) {<a name="line.172"></a>
-<span class="sourceLineNo">173</span>        sum += val.get();<a name="line.173"></a>
-<span class="sourceLineNo">174</span>      }<a name="line.174"></a>
-<span class="sourceLineNo">175</span>      result.set(sum);<a name="line.175"></a>
-<span class="sourceLineNo">176</span>      context.write(key, result);<a name="line.176"></a>
-<span class="sourceLineNo">177</span>    }<a name="line.177"></a>
-<span class="sourceLineNo">178</span>  }<a name="line.178"></a>
-<span class="sourceLineNo">179</span><a name="line.179"></a>
-<span class="sourceLineNo">180</span>  /**<a name="line.180"></a>
-<span class="sourceLineNo">181</span>   * Sets up the actual job.<a name="line.181"></a>
-<span class="sourceLineNo">182</span>   *<a name="line.182"></a>
-<span class="sourceLineNo">183</span>   * @param conf The current configuration.<a name="line.183"></a>
-<span class="sourceLineNo">184</span>   * @param args The command line parameters.<a name="line.184"></a>
-<span class="sourceLineNo">185</span>   * @return The newly created job.<a name="line.185"></a>
-<span class="sourceLineNo">186</span>   * @throws IOException When setting up the job fails.<a name="line.186"></a>
-<span class="sourceLineNo">187</span>   */<a name="line.187"></a>
-<span class="sourceLineNo">188</span>  public static Job createSubmittableJob(Configuration conf, String[] args)<a name="line.188"></a>
-<span class="sourceLineNo">189</span>      throws IOException {<a name="line.189"></a>
-<span class="sourceLineNo">190</span>    String tableName = args[0];<a name="line.190"></a>
-<span class="sourceLineNo">191</span>    Path outputDir = new Path(args[1]);<a name="line.191"></a>
-<span class="sourceLineNo">192</span>    String reportSeparatorString = (args.length &gt; 2) ? args[2]: ":";<a name="line.192"></a>
-<span class="sourceLineNo">193</span>    conf.set("ReportSeparator", reportSeparatorString);<a name="line.193"></a>
-<span class="sourceLineNo">194</span>    Job job = Job.getInstance(conf, conf.get(JOB_NAME_CONF_KEY, NAME + "_" + tableName));<a name="line.194"></a>
-<span class="sourceLineNo">195</span>    job.setJarByClass(CellCounter.class);<a name="line.195"></a>
-<span class="sourceLineNo">196</span>    Scan scan = getConfiguredScanForJob(conf, args);<a name="line.196"></a>
-<span class="sourceLineNo">197</span>    TableMapReduceUtil.initTableMapperJob(tableName, scan,<a name="line.197"></a>
-<span class="sourceLineNo">198</span>        CellCounterMapper.class, ImmutableBytesWritable.class, Result.class, job);<a name="line.198"></a>
-<span class="sourceLineNo">199</span>    job.setNumReduceTasks(1);<a name="line.199"></a>
-<span class="sourceLineNo">200</span>    job.setMapOutputKeyClass(Text.class);<a name="line.200"></a>
-<span class="sourceLineNo">201</span>    job.setMapOutputValueClass(IntWritable.class);<a name="line.201"></a>
-<span class="sourceLineNo">202</span>    job.setOutputFormatClass(TextOutputFormat.class);<a name="line.202"></a>
-<span class="sourceLineNo">203</span>    job.setOutputKeyClass(Text.class);<a name="line.203"></a>
-<span class="sourceLineNo">204</span>    job.setOutputValueClass(IntWritable.class);<a name="line.204"></a>
-<span class="sourceLineNo">205</span>    FileOutputFormat.setOutputPath(job, outputDir);<a name="line.205"></a>
-<span class="sourceLineNo">206</span>    job.setReducerClass(IntSumReducer.class);<a name="line.206"></a>
-<span class="sourceLineNo">207</span>    return job;<a name="line.207"></a>
-<span class="sourceLineNo">208</span>  }<a name="line.208"></a>
-<span class="sourceLineNo">209</span><a name="line.209"></a>
-<span class="sourceLineNo">210</span>  private static Scan getConfiguredScanForJob(Configuration conf, String[] args) throws IOException {<a name="line.210"></a>
-<span class="sourceLineNo">211</span>    Scan s = new Scan();<a name="line.211"></a>
-<span class="sourceLineNo">212</span>    // Set Scan Versions<a name="line.212"></a>
-<span class="sourceLineNo">213</span>    s.setMaxVersions(Integer.MAX_VALUE);<a name="line.213"></a>
-<span class="sourceLineNo">214</span>    s.setCacheBlocks(false);<a name="line.214"></a>
-<span class="sourceLineNo">215</span>    // Set Scan Column Family<a name="line.215"></a>
-<span class="sourceLineNo">216</span>    if (conf.get(TableInputFormat.SCAN_COLUMN_FAMILY) != null) {<a name="line.216"></a>
-<span class="sourceLineNo">217</span>      s.addFamily(Bytes.toBytes(conf.get(TableInputFormat.SCAN_COLUMN_FAMILY)));<a name="line.217"></a>
-<span class="sourceLineNo">218</span>    }<a name="line.218"></a>
-<span class="sourceLineNo">219</span>    // Set RowFilter or Prefix Filter if applicable.<a name="line.219"></a>
-<span class="sourceLineNo">220</span>    Filter rowFilter = getRowFilter(args);<a name="line.220"></a>
-<span class="sourceLineNo">221</span>    if (rowFilter!= null) {<a name="line.221"></a>
-<span class="sourceLineNo">222</span>      LOG.info("Setting Row Filter for counter.");<a name="line.222"></a>
-<span class="sourceLineNo">223</span>      s.setFilter(rowFilter);<a name="line.223"></a>
-<span class="sourceLineNo">224</span>    }<a name="line.224"></a>
-<span class="sourceLineNo">225</span>    // Set TimeRange if defined<a name="line.225"></a>
-<span class="sourceLineNo">226</span>    long timeRange[] = getTimeRange(args);<a name="line.226"></a>
-<span class="sourceLineNo">227</span>    if (timeRange != null) {<a name="line.227"></a>
-<span class="sourceLineNo">228</span>      LOG.info("Setting TimeRange for counter.");<a name="line.228"></a>
-<span class="sourceLineNo">229</span>      s.setTimeRange(timeRange[0], timeRange[1]);<a name="line.229"></a>
-<span class="sourceLineNo">230</span>    }<a name="line.230"></a>
-<span class="sourceLineNo">231</span>    return s;<a name="line.231"></a>
-<span class="sourceLineNo">232</span>  }<a name="line.232"></a>
-<span class="sourceLineNo">233</span><a name="line.233"></a>
+<span class="sourceLineNo">149</span>            } else {<a name="line.149"></a>
+<span class="sourceLineNo">150</span>              // Increment versions<a name="line.150"></a>
+<span class="sourceLineNo">151</span>              currentQualifierName = thisRowQualifierName;<a name="line.151"></a>
+<span class="sourceLineNo">152</span>              context.getCounter("QL_VERSIONS", currentRowKey + separator +<a name="line.152"></a>
+<span class="sourceLineNo">153</span>                  thisRowQualifierName).increment(1);<a name="line.153"></a>
+<span class="sourceLineNo">154</span>              context.write(new Text(currentRowKey + separator<a name="line.154"></a>
+<span class="sourceLineNo">155</span>                  + thisRowQualifierName + "_Versions"), new IntWritable(1));<a name="line.155"></a>
+<span class="sourceLineNo">156</span>            }<a name="line.156"></a>
+<span class="sourceLineNo">157</span>          }<a name="line.157"></a>
+<span class="sourceLineNo">158</span>        }<a name="line.158"></a>
+<span class="sourceLineNo">159</span>      } catch (InterruptedException e) {<a name="line.159"></a>
+<span class="sourceLineNo">160</span>        e.printStackTrace();<a name="line.160"></a>
+<span class="sourceLineNo">161</span>      }<a name="line.161"></a>
+<span class="sourceLineNo">162</span>    }<a name="line.162"></a>
+<span class="sourceLineNo">163</span>  }<a name="line.163"></a>
+<span class="sourceLineNo">164</span><a name="line.164"></a>
+<span class="sourceLineNo">165</span>  static class IntSumReducer&lt;Key&gt; extends Reducer&lt;Key, IntWritable,<a name="line.165"></a>
+<span class="sourceLineNo">166</span>      Key, IntWritable&gt; {<a name="line.166"></a>
+<span class="sourceLineNo">167</span><a name="line.167"></a>
+<span class="sourceLineNo">168</span>    private IntWritable result = new IntWritable();<a name="line.168"></a>
+<span class="sourceLineNo">169</span>    public void reduce(Key key, Iterable&lt;IntWritable&gt; values,<a name="line.169"></a>
+<span class="sourceLineNo">170</span>      Context context)<a name="line.170"></a>
+<span class="sourceLineNo">171</span>    throws IOException, InterruptedException {<a name="line.171"></a>
+<span class="sourceLineNo">172</span>      int sum = 0;<a name="line.172"></a>
+<span class="sourceLineNo">173</span>      for (IntWritable val : values) {<a name="line.173"></a>
+<span class="sourceLineNo">174</span>        sum += val.get();<a name="line.174"></a>
+<span class="sourceLineNo">175</span>      }<a name="line.175"></a>
+<span class="sourceLineNo">176</span>      result.set(sum);<a name="line.176"></a>
+<span class="sourceLineNo">177</span>      context.write(key, result);<a name="line.177"></a>
+<span class="sourceLineNo">178</span>    }<a name="line.178"></a>
+<span class="sourceLineNo">179</span>  }<a name="line.179"></a>
+<span class="sourceLineNo">180</span><a name="line.180"></a>
+<span class="sourceLineNo">181</span>  /**<a name="line.181"></a>
+<span class="sourceLineNo">182</span>   * Sets up the actual job.<a name="line.182"></a>
+<span class="sourceLineNo">183</span>   *<a name="line.183"></a>
+<span class="sourceLineNo">184</span>   * @param conf The current configuration.<a name="line.184"></a>
+<span class="sourceLineNo">185</span>   * @param args The command line parameters.<a name="line.185"></a>
+<span class="sourceLineNo">186</span>   * @return The newly created job.<a name="line.186"></a>
+<span class="sourceLineNo">187</span>   * @throws IOException When setting up the job fails.<a name="line.187"></a>
+<span class="sourceLineNo">188</span>   */<a name="line.188"></a>
+<span class="sourceLineNo">189</span>  public static Job createSubmittableJob(Configuration conf, String[] args)<a name="line.189"></a>
+<span class="sourceLineNo">190</span>      throws IOException {<a name="line.190"></a>
+<span class="sourceLineNo">191</span>    String tableName = args[0];<a name="line.191"></a>
+<span class="sourceLineNo">192</span>    Path outputDir = new Path(args[1]);<a name="line.192"></a>
+<span class="sourceLineNo">193</span>    String reportSeparatorString = (args.length &gt; 2) ? args[2]: ":";<a name="line.193"></a>
+<span class="sourceLineNo">194</span>    conf.set("ReportSeparator", reportSeparatorString);<a name="line.194"></a>
+<span class="sourceLineNo">195</span>    Job job = Job.getInstance(conf, conf.get(JOB_NAME_CONF_KEY, NAME + "_" + tableName));<a name="line.195"></a>
+<span class="sourceLineNo">196</span>    job.setJarByClass(CellCounter.class);<a name="line.196"></a>
+<span class="sourceLineNo">197</span>    Scan scan = getConfiguredScanForJob(conf, args);<a name="line.197"></a>
+<span class="sourceLineNo">198</span>    TableMapReduceUtil.initTableMapperJob(tableName, scan,<a name="line.198"></a>
+<span class="sourceLineNo">199</span>        CellCounterMapper.class, ImmutableBytesWritable.class, Result.class, job);<a name="line.199"></a>
+<span class="sourceLineNo">200</span>    job.setNumReduceTasks(1);<a name="line.200"></a>
+<span class="sourceLineNo">201</span>    job.setMapOutputKeyClass(Text.class);<a name="line.201"></a>
+<span class="sourceLineNo">202</span>    job.setMapOutputValueClass(IntWritable.class);<a name="line.202"></a>
+<span class="sourceLineNo">203</span>    job.setOutputFormatClass(TextOutputFormat.class);<a name="line.203"></a>
+<span class="sourceLineNo">204</span>    job.setOutputKeyClass(Text.class);<a name="line.204"></a>
+<span class="sourceLineNo">205</span>    job.setOutputValueClass(IntWritable.class);<a name="line.205"></a>
+<span class="sourceLineNo">206</span>    FileOutputFormat.setOutputPath(job, outputDir);<a name="line.206"></a>
+<span class="sourceLineNo">207</span>    job.setReducerClass(IntSumReducer.class);<a name="line.207"></a>
+<span class="sourceLineNo">208</span>    return job;<a name="line.208"></a>
+<span class="sourceLineNo">209</span>  }<a name="line.209"></a>
+<span class="sourceLineNo">210</span><a name="line.210"></a>
+<span class="sourceLineNo">211</span>  private static Scan getConfiguredScanForJob(Configuration conf, String[] args) throws IOException {<a name="line.211"></a>
+<span class="sourceLineNo">212</span>    Scan s = new Scan();<a name="line.212"></a>
+<span class="sourceLineNo">213</span>    // Set Scan Versions<a name="line.213"></a>
+<span class="sourceLineNo">214</span>    s.setMaxVersions(Integer.MAX_VALUE);<a name="line.214"></a>
+<span class="sourceLineNo">215</span>    s.setCacheBlocks(false);<a name="line.215"></a>
+<span class="sourceLineNo">216</span>    // Set Scan Column Family<a name="line.216"></a>
+<span class="sourceLineNo">217</span>    if (conf.get(TableInputFormat.SCAN_COLUMN_FAMILY) != null) {<a name="line.217"></a>
+<span class="sourceLineNo">218</span>      s.addFamily(Bytes.toBytes(conf.get(TableInputFormat.SCAN_COLUMN_FAMILY)));<a name="line.218"></a>
+<span class="sourceLineNo">219</span>    }<a name="line.219"></a>
+<span class="sourceLineNo">220</span>    // Set RowFilter or Prefix Filter if applicable.<a name="line.220"></a>
+<span class="sourceLineNo">221</span>    Filter rowFilter = getRowFilter(args);<a name="line.221"></a>
+<span class="sourceLineNo">222</span>    if (rowFilter!= null) {<a name="line.222"></a>
+<span class="sourceLineNo">223</span>      LOG.info("Setting Row Filter for counter.");<a name="line.223"></a>
+<span class="sourceLineNo">224</span>      s.setFilter(rowFilter);<a name="line.224"></a>
+<span class="sourceLineNo">225</span>    }<a name="line.225"></a>
+<span class="sourceLineNo">226</span>    // Set TimeRange if defined<a name="line.226"></a>
+<span class="sourceLineNo">227</span>    long timeRange[] = getTimeRange(args);<a name="line.227"></a>
+<span class="sourceLineNo">228</span>    if (timeRange != null) {<a name="line.228"></a>
+<span class="sourceLineNo">229</span>      LOG.info("Setting TimeRange for counter.");<a name="line.229"></a>
+<span class="sourceLineNo">230</span>      s.setTimeRange(timeRange[0], timeRange[1]);<a name="line.230"></a>
+<span class="sourceLineNo">231</span>    }<a name="line.231"></a>
+<span class="sourceLineNo">232</span>    return s;<a name="line.232"></a>
+<span class="sourceLineNo">233</span>  }<a name="line.233"></a>
 <span class="sourceLineNo">234</span><a name="line.234"></a>
-<span class="sourceLineNo">235</span>  private static Filter getRowFilter(String[] args) {<a name="line.235"></a>
-<span class="sourceLineNo">236</span>    Filter rowFilter = null;<a name="line.236"></a>
-<span class="sourceLineNo">237</span>    String filterCriteria = (args.length &gt; 3) ? args[3]: null;<a name="line.237"></a>
-<span class="sourceLineNo">238</span>    if (filterCriteria == null) return null;<a name="line.238"></a>
-<span class="sourceLineNo">239</span>    if (filterCriteria.startsWith("^")) {<a name="line.239"></a>
-<span class="sourceLineNo">240</span>      String regexPattern = filterCriteria.substring(1, filterCriteria.length());<a name="line.240"></a>
-<span class="sourceLineNo">241</span>      rowFilter = new RowFilter(CompareFilter.CompareOp.EQUAL, new RegexStringComparator(regexPattern));<a name="line.241"></a>
-<span class="sourceLineNo">242</span>    } else {<a name="line.242"></a>
-<span class="sourceLineNo">243</span>      rowFilter = new PrefixFilter(Bytes.toBytes(filterCriteria));<a name="line.243"></a>
-<span class="sourceLineNo">244</span>    }<a name="line.244"></a>
-<span class="sourceLineNo">245</span>    return rowFilter;<a name="line.245"></a>
-<span class="sourceLineNo">246</span>  }<a name="line.246"></a>
-<span class="sourceLineNo">247</span><a name="line.247"></a>
-<span class="sourceLineNo">248</span>  private static long[] getTimeRange(String[] args) throws IOException {<a name="line.248"></a>
-<span class="sourceLineNo">249</span>    final String startTimeArgKey = "--starttime=";<a name="line.249"></a>
-<span class="sourceLineNo">250</span>    final String endTimeArgKey = "--endtime=";<a name="line.250"></a>
-<span class="sourceLineNo">251</span>    long startTime = 0L;<a name="line.251"></a>
-<span class="sourceLineNo">252</span>    long endTime = 0L;<a name="line.252"></a>
-<span class="sourceLineNo">253</span><a name="line.253"></a>
-<span class="sourceLineNo">254</span>    for (int i = 1; i &lt; args.length; i++) {<a name="line.254"></a>
-<span class="sourceLineNo">255</span>      System.out.println("i:" + i + "arg[i]" + args[i]);<a name="line.255"></a>
-<span class="sourceLineNo">256</span>      if (args[i].startsWith(startTimeArgKey)) {<a name="line.256"></a>
-<span class="sourceLineNo">257</span>        startTime = Long.parseLong(args[i].substring(startTimeArgKey.length()));<a name="line.257"></a>
-<span class="sourceLineNo">258</span>      }<a name="line.258"></a>
-<span class="sourceLineNo">259</span>      if (args[i].startsWith(endTimeArgKey)) {<a name="line.259"></a>
-<span class="sourceLineNo">260</span>        endTime = Long.parseLong(args[i].substring(endTimeArgKey.length()));<a name="line.260"></a>
-<span class="sourceLineNo">261</span>      }<a name="line.261"></a>
-<span class="sourceLineNo">262</span>    }<a name="line.262"></a>
-<span class="sourceLineNo">263</span><a name="line.263"></a>
-<span class="sourceLineNo">264</span>    if (startTime == 0 &amp;&amp; endTime == 0)<a name="line.264"></a>
-<span class="sourceLineNo">265</span>      return null;<a name="line.265"></a>
-<span class="sourceLineNo">266</span><a name="line.266"></a>
-<span class="sourceLineNo">267</span>    endTime = endTime == 0 ? HConstants.LATEST_TIMESTAMP : endTime;<a name="line.267"></a>
-<span class="sourceLineNo">268</span>    return new long [] {startTime, endTime};<a name="line.268"></a>
-<span class="sourceLineNo">269</span>  }<a name="line.269"></a>
-<span class="sourceLineNo">270</span><a name="line.270"></a>
-<span class="sourceLineNo">271</span>  @Override<a name="line.271"></a>
-<span class="sourceLineNo">272</span>  public int run(String[] args) throws Exception {<a name="line.272"></a>
-<span class="sourceLineNo">273</span>    if (args.length &lt; 2) {<a name="line.273"></a>
-<span class="sourceLineNo">274</span>      System.err.println("ERROR: Wrong number of parameters: " + args.length);<a name="line.274"></a>
-<span class="sourceLineNo">275</span>      System.err.println("Usage: CellCounter ");<a name="line.275"></a>
-<span class="sourceLineNo">276</span>      System.err.println("       &lt;tablename&gt; &lt;outputDir&gt; &lt;reportSeparator&gt; [^[regex pattern] or " +<a name="line.276"></a>
-<span class="sourceLineNo">277</span>        "[Prefix] for row filter]] --starttime=[starttime] --endtime=[endtime]");<a name="line.277"></a>
-<span class="sourceLineNo">278</span>      System.err.println("  Note: -D properties will be applied to the conf used. ");<a name="line.278"></a>
-<span class="sourceLineNo">279</span>      System.err.println("  Additionally, the following SCAN properties can be specified");<a name="line.279"></a>
-<span class="sourceLineNo">280</span>      System.err.println("  to get fine grained control on what is counted..");<a name="line.280"></a>
-<span class="sourceLineNo">281</span>      System.err.println("   -D " + TableInputFormat.SCAN_COLUMN_FAMILY + "=&lt;familyName&gt;");<a name="line.281"></a>
-<span class="sourceLineNo">282</span>      System.err.println(" &lt;reportSeparator&gt; parameter can be used to override the default report separator " +<a name="line.282"></a>
-<span class="sourceLineNo">283</span>          "string : used to separate the rowId/column family name and qualifier name.");<a name="line.283"></a>
-<span class="sourceLineNo">284</span>      System.err.println(" [^[regex pattern] or [Prefix] parameter can be used to limit the cell counter count " +<a name="line.284"></a>
-<span class="sourceLineNo">285</span>          "operation to a limited subset of rows from the table based on regex or prefix pattern.");<a name="line.285"></a>
-<span class="sourceLineNo">286</span>      return -1;<a name="line.286"></a>
-<span class="sourceLineNo">287</span>    }<a name="line.287"></a>
-<span class="sourceLineNo">288</span>    Job job = createSubmittableJob(getConf(), args);<a name="line.288"></a>
-<span class="sourceLineNo">289</span>    return (job.waitForCompletion(true) ? 0 : 1);<a name="line.289"></a>
-<span class="sourceLineNo">290</span>  }<a name="line.290"></a>
-<span class="sourceLineNo">291</span><a name="line.291"></a>
-<span class="sourceLineNo">292</span>  /**<a name="line.292"></a>
-<span class="sourceLineNo">293</span>   * Main entry point.<a name="line.293"></a>
-<span class="sourceLineNo">294</span>   * @param args The command line parameters.<a name="line.294"></a>
-<span class="sourceLineNo">295</span>   * @throws Exception When running the job fails.<a name="line.295"></a>
-<span class="sourceLineNo">296</span>   */<a name="line.296"></a>
-<span class="sourceLineNo">297</span>  public static void main(String[] args) throws Exception {<a name="line.297"></a>
-<span class="sourceLineNo">298</span>    int errCode = ToolRunner.run(HBaseConfiguration.create(), new CellCounter(), args);<a name="line.298"></a>
-<span class="sourceLineNo">299</span>    System.exit(errCode);<a name="line.299"></a>
-<span class="sourceLineNo">300</span>  }<a name="line.300"></a>
-<span class="sourceLineNo">301</span><a name="line.301"></a>
-<span class="sourceLineNo">302</span>}<a name="line.302"></a>
+<span class="sourceLineNo">235</span><a name="line.235"></a>
+<span class="sourceLineNo">236</span>  private static Filter getRowFilter(String[] args) {<a name="line.236"></a>
+<span class="sourceLineNo">237</span>    Filter rowFilter = null;<a name="line.237"></a>
+<span class="sourceLineNo">238</span>    String filterCriteria = (args.length &gt; 3) ? args[3]: null;<a name="line.238"></a>
+<span class="sourceLineNo">239</span>    if (filterCriteria == null) return null;<a name="line.239"></a>
+<span class="sourceLineNo">240</span>    if (filterCriteria.startsWith("^")) {<a name="line.240"></a>
+<span class="sourceLineNo">241</span>      String regexPattern = filterCriteria.substring(1, filterCriteria.length());<a name="line.241"></a>
+<span class="sourceLineNo">242</span>      rowFilter = new RowFilter(CompareFilter.CompareOp.EQUAL, new RegexStringComparator(regexPattern));<a name="line.242"></a>
+<span class="sourceLineNo">243</span>    } else {<a name="line.243"></a>
+<span class="sourceLineNo">244</span>      rowFilter = new PrefixFilter(Bytes.toBytes(filterCriteria));<a name="line.244"></a>
+<span class="sourceLineNo">245</span>    }<a name="line.245"></a>
+<span class="sourceLineNo">246</span>    return rowFilter;<a name="line.246"></a>
+<span class="sourceLineNo">247</span>  }<a name="line.247"></a>
+<span class="sourceLineNo">248</span><a name="line.248"></a>
+<span class="sourceLineNo">249</span>  private static long[] getTimeRange(String[] args) throws IOException {<a name="line.249"></a>
+<span class="sourceLineNo">250</span>    final String startTimeArgKey = "--starttime=";<a name="line.250"></a>
+<span class="sourceLineNo">251</span>    final String endTimeArgKey = "--endtime=";<a name="line.251"></a>
+<span class="sourceLineNo">252</span>    long startTime = 0L;<a name="line.252"></a>
+<span class="sourceLineNo">253</span>    long endTime = 0L;<a name="line.253"></a>
+<span class="sourceLineNo">254</span><a name="line.254"></a>
+<span class="sourceLineNo">255</span>    for (int i = 1; i &lt; args.length; i++) {<a name="line.255"></a>
+<span class="sourceLineNo">256</span>      System.out.println("i:" + i + "arg[i]" + args[i]);<a name="line.256"></a>
+<span class="sourceLineNo">257</span>      if (args[i].startsWith(startTimeArgKey)) {<a name="line.257"></a>
+<span class="sourceLineNo">258</span>        startTime = Long.parseLong(args[i].substring(startTimeArgKey.length()));<a name="line.258"></a>
+<span class="sourceLineNo">259</span>      }<a name="line.259"></a>
+<span class="sourceLineNo">260</span>      if (args[i].startsWith(endTimeArgKey)) {<a name="line.260"></a>
+<span class="sourceLineNo">261</span>        endTime = Long.parseLong(args[i].substring(endTimeArgKey.length()));<a name="line.261"></a>
+<span class="sourceLineNo">262</span>      }<a name="line.262"></a>
+<span class="sourceLineNo">263</span>    }<a name="line.263"></a>
+<span class="sourceLineNo">264</span><a name="line.264"></a>
+<span class="sourceLineNo">265</span>    if (startTime == 0 &amp;&amp; endTime == 0)<a name="line.265"></a>
+<span class="sourceLineNo">266</span>      return null;<a name="line.266"></a>
+<span class="sourceLineNo">267</span><a name="line.267"></a>
+<span class="sourceLineNo">268</span>    endTime = endTime == 0 ? HConstants.LATEST_TIMESTAMP : endTime;<a name="line.268"></a>
+<span class="sourceLineNo">269</span>    return new long [] {startTime, endTime};<a name="line.269"></a>
+<span class="sourceLineNo">270</span>  }<a name="line.270"></a>
+<span class="sourceLineNo">271</span><a name="line.271"></a>
+<span class="sourceLineNo">272</span>  @Override<a name="line.272"></a>
+<span class="sourceLineNo">273</span>  public int run(String[] args) throws Exception {<a name="line.273"></a>
+<span class="sourceLineNo">274</span>    if (args.length &lt; 2) {<a name="line.274"></a>
+<span class="sourceLineNo">275</span>      System.err.println("ERROR: Wrong number of parameters: " + args.length);<a name="line.275"></a>
+<span class="sourceLineNo">276</span>      System.err.println("Usage: CellCounter ");<a name="line.276"></a>
+<span class="sourceLineNo">277</span>      System.err.println("       &lt;tablename&gt; &lt;outputDir&gt; &lt;reportSeparator&gt; [^[regex pattern] or " +<a name="line.277"></a>
+<span class="sourceLineNo">278</span>        "[Prefix] for row filter]] --starttime=[starttime] --endtime=[endtime]");<a name="line.278"></a>
+<span class="sourceLineNo">279</span>      System.err.println("  Note: -D properties will be applied to the conf used. ");<a name="line.279"></a>
+<span class="sourceLineNo">280</span>      System.err.println("  Additionally, the following SCAN properties can be specified");<a name="line.280"></a>
+<span class="sourceLineNo">281</span>      System.err.println("  to get fine grained control on what is counted..");<a name="line.281"></a>
+<span class="sourceLineNo">282</span>      System.err.println("   -D " + TableInputFormat.SCAN_COLUMN_FAMILY + "=&lt;familyName&gt;");<a name="line.282"></a>
+<span class="sourceLineNo">283</span>      System.err.println(" &lt;reportSeparator&gt; parameter can be used to override the default report separator " +<a name="line.283"></a>
+<span class="sourceLineNo">284</span>          "string : used to separate the rowId/column family name and qualifier name.");<a name="line.284"></a>
+<span class="sourceLineNo">285</span>      System.err.println(" [^[regex pattern] or [Prefix] parameter can be used to limit the cell counter count " +<a name="line.285"></a>
+<span class="sourceLineNo">286</span>          "operation to a limited subset of rows from the table based on regex or prefix pattern.");<a name="line.286"></a>
+<span class="sourceLineNo">287</span>      return -1;<a name="line.287"></a>
+<span class="sourceLineNo">288</span>    }<a name="line.288"></a>
+<span class="sourceLineNo">289</span>    Job job = createSubmittableJob(getConf(), args);<a name="line.289"></a>
+<span class="sourceLineNo">290</span>    return (job.waitForCompletion(true) ? 0 : 1);<a name="line.290"></a>
+<span class="sourceLineNo">291</span>  }<a name="line.291"></a>
+<span class="sourceLineNo">292</span><a name="line.292"></a>
+<span class="sourceLineNo">293</span>  /**<a name="line.293"></a>
+<span class="sourceLineNo">294</span>   * Main entry point.<a name="line.294"></a>
+<span class="sourceLineNo">295</span>   * @param args The command line parameters.<a name="line.295"></a>
+<span class="sourceLineNo">296</span>   * @throws Exception When running the job fails.<a name="line.296"></a>
+<span class="sourceLineNo">297</span>   */<a name="line.297"></a>
+<span class="sourceLineNo">298</span>  public static void main(String[] args) throws Exception {<a name="line.298"></a>
+<span class="sourceLineNo">299</span>    int errCode = ToolRunner.run(HBaseConfiguration.create(), new CellCounter(), args);<a name="line.299"></a>
+<span class="sourceLineNo">300</span>    System.exit(errCode);<a name="line.300"></a>
+<span class="sourceLineNo">301</span>  }<a name="line.301"></a>
+<span class="sourceLineNo">302</span><a name="line.302"></a>
+<span class="sourceLineNo">303</span>}<a name="line.303"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a7e5a8ce/book.html
----------------------------------------------------------------------
diff --git a/book.html b/book.html
index 02adb7a..3c65466 100644
--- a/book.html
+++ b/book.html
@@ -23,7 +23,7 @@
 <div id="toctitle">Contents</div>
 <ul class="sectlevel1">
 <li><a href="#_preface">Preface</a></li>
-<li><a href="#_getting_started">Getting Started</a>
+<li><a href="#getting_started">Getting Started</a>
 <ul class="sectlevel1">
 <li><a href="#_introduction">1. Introduction</a></li>
 <li><a href="#quickstart">2. Quick Start - Standalone HBase</a></li>
@@ -361,9 +361,61 @@ Yours, the HBase Community.</p>
 <div class="paragraph">
 <p>To protect existing HBase installations from new vulnerabilities, please <strong>do not</strong> use JIRA to report security-related bugs. Instead, send your report to the mailing list <a href="mailto:private@apache.org">private@apache.org</a>, which allows anyone to send messages, but restricts who can read them. Someone on that list will contact you to follow up on your report.</p>
 </div>
+<div class="paragraph">
+<div class="title">Support and Testing Expectations</div>
+<p>The phrases /supported/, /not supported/, /tested/, and /not tested/ occur several
+places throughout this guide. In the interest of clarity, here is a brief explanation
+of what is generally meant by these phrases, in the context of HBase.</p>
+</div>
+<div class="admonitionblock note">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-note" title="Note"></i>
+</td>
+<td class="content">
+Commercial technical support for Apache HBase is provided by many Hadoop vendors.
+This is not the sense in which the term /support/ is used in the context of the
+Apache HBase project. The Apache HBase team assumes no responsibility for your
+HBase clusters, your configuration, or your data.
+</td>
+</tr>
+</table>
+</div>
+<div class="dlist">
+<dl>
+<dt class="hdlist1">Supported</dt>
+<dd>
+<p>In the context of Apache HBase, /supported/ means that HBase is designed to work
+in the way described, and deviation from the defined behavior or functionality should
+be reported as a bug.</p>
+</dd>
+<dt class="hdlist1">Not Supported</dt>
+<dd>
+<p>In the context of Apache HBase, /not supported/ means that a use case or use pattern
+is not expected to work and should be considered an antipattern. If you think this
+designation should be reconsidered for a given feature or use pattern, file a JIRA
+or start a discussion on one of the mailing lists.</p>
+</dd>
+<dt class="hdlist1">Tested</dt>
+<dd>
+<p>In the context of Apache HBase, /tested/ means that a feature is covered by unit
+or integration tests, and has been proven to work as expected.</p>
+</dd>
+<dt class="hdlist1">Not Tested</dt>
+<dd>
+<p>In the context of Apache HBase, /not tested/ means that a feature or use pattern
+may or may notwork in a given way, and may or may not corrupt your data or cause
+operational issues. It is an unknown, and there are no guarantees. If you can provide
+proof that a feature designated as /not tested/ does work in a given way, please
+submit the tests and/or the metrics so that other users can gain certainty about
+such features or use patterns.</p>
+</dd>
+</dl>
+</div>
 </div>
 </div>
-<h1 id="_getting_started" class="sect0"><a class="anchor" href="#_getting_started"></a>Getting Started</h1>
+<h1 id="getting_started" class="sect0"><a class="anchor" href="#getting_started"></a>Getting Started</h1>
 <div class="sect1">
 <h2 id="_introduction"><a class="anchor" href="#_introduction"></a>1. Introduction</h2>
 <div class="sectionbody">
@@ -1244,8 +1296,10 @@ Still, you can test what happens when the primary Master or a RegionServer disap
 <h1 id="configuration" class="sect0"><a class="anchor" href="#configuration"></a>Apache HBase Configuration</h1>
 <div class="openblock partintro">
 <div class="content">
-This chapter expands upon the <a href="#getting_started">[getting_started]</a> chapter to further explain configuration of Apache HBase.
-Please read this chapter carefully, especially the <a href="#basic.prerequisites">Basic Prerequisites</a> to ensure that your HBase testing and deployment goes smoothly, and prevent data loss.
+This chapter expands upon the <a href="#getting_started">Getting Started</a> chapter to further explain configuration of Apache HBase.
+Please read this chapter carefully, especially the <a href="#basic.prerequisites">Basic Prerequisites</a>
+to ensure that your HBase testing and deployment goes smoothly, and prevent data loss.
+Familiarize yourself with <a href="#hbase_supported_tested_definitions">[hbase_supported_tested_definitions]</a> as well.
 </div>
 </div>
 <div class="sect1">
@@ -5723,7 +5777,7 @@ It may be possible to skip across versions&#8201;&#8212;&#8201;for example go fr
 </table>
 </div>
 <div class="paragraph">
-<p>Review <a href="#configuration">Apache HBase Configuration</a>, in particular <a href="#hadoop"><a href="http://hadoop.apache.org">Hadoop</a></a>.</p>
+<p>Review <a href="#configuration">Apache HBase Configuration</a>, in particular <a href="#hadoop"><a href="http://hadoop.apache.org">Hadoop</a></a>. Familiarize yourself with <a href="#hbase_supported_tested_definitions">[hbase_supported_tested_definitions]</a>.</p>
 </div>
 </div>
 </div>
@@ -33005,7 +33059,7 @@ The server will return cellblocks compressed using this same compressor as long
 <div id="footer">
 <div id="footer-text">
 Version 2.0.0-SNAPSHOT<br>
-Last updated 2016-01-29 14:48:00 UTC
+Last updated 2016-02-01 14:47:10 UTC
 </div>
 </div>
 </body>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a7e5a8ce/bulk-loads.html
----------------------------------------------------------------------
diff --git a/bulk-loads.html b/bulk-loads.html
index 0f3a8c8..b4e0ed3 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="20160129" />
+    <meta name="Date-Revision-yyyymmdd" content="20160201" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013;  
       Bulk Loads in Apache HBase (TM)
@@ -305,7 +305,7 @@ under the License. -->
                         <a href="http://www.apache.org/">The Apache Software Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2016-01-29</li>
+                  <li id="publishDate" class="pull-right">Last Published: 2016-02-01</li>
             </p>
                 </div>
 


Mime
View raw message