Published site at f9e69b51e1997c6de2ed74f9edbc6947b11c88dc.
Project: http://git-wip-us.apache.org/repos/asf/hbase-site/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase-site/commit/29e33858 Tree: http://git-wip-us.apache.org/repos/asf/hbase-site/tree/29e33858 Diff: http://git-wip-us.apache.org/repos/asf/hbase-site/diff/29e33858 Branch: refs/heads/asf-site Commit: 29e338589e144b02781eb9128017f7ba6438848d Parents: 75eda56 Author: jenkins <[email protected]> Authored: Fri Jan 22 16:20:46 2016 +0000 Committer: Misty Stanley-Jones <[email protected]> Committed: Fri Jan 22 09:00:03 2016 -0800 ---------------------------------------------------------------------- acid-semantics.html | 4 +- apache_hbase_reference_guide.pdf | Bin 14205622 -> 14205622 bytes apache_hbase_reference_guide.pdfmarks | 4 +- .../hbase/mapreduce/TableMapReduceUtil.html | 8 +- .../hbase/mapreduce/TableMapReduceUtil.html | 452 ++-- book.html | 2 +- bulk-loads.html | 4 +- checkstyle-aggregate.html | 26 +- coc.html | 4 +- cygwin.html | 4 +- dependencies.html | 4 +- dependency-convergence.html | 4 +- dependency-info.html | 4 +- dependency-management.html | 4 +- devapidocs/index-all.html | 2 + .../class-use/InterfaceStability.Unstable.html | 12 +- .../hbase/classification/package-tree.html | 6 +- .../hadoop/hbase/client/package-tree.html | 6 +- .../hadoop/hbase/executor/package-tree.html | 2 +- .../hadoop/hbase/filter/package-tree.html | 10 +- .../hadoop/hbase/io/hfile/package-tree.html | 6 +- .../hbase/mapreduce/TableMapReduceUtil.html | 16 +- .../hadoop/hbase/mapreduce/package-tree.html | 4 +- .../hadoop/hbase/master/package-tree.html | 6 +- .../org/apache/hadoop/hbase/package-tree.html | 12 +- .../hadoop/hbase/procedure2/package-tree.html | 2 +- .../hadoop/hbase/quotas/package-tree.html | 4 +- .../hadoop/hbase/regionserver/StoreScanner.html | 4 +- .../hadoop/hbase/regionserver/package-tree.html | 20 +- .../hbase/security/access/package-tree.html | 4 +- .../hadoop/hbase/security/package-tree.html | 2 +- ...icationTokenSecretManager.LeaderElector.html | 18 +- .../token/AuthenticationTokenSecretManager.html | 31 +- .../hadoop/hbase/thrift/package-tree.html | 2 +- .../tmpl/master/MasterStatusTmpl.ImplData.html | 270 +- .../hbase/tmpl/master/MasterStatusTmpl.html | 108 +- .../hbase/tmpl/master/MasterStatusTmplImpl.html | 54 +- .../regionserver/RSStatusTmpl.ImplData.html | 60 +- .../hbase/tmpl/regionserver/RSStatusTmpl.html | 24 +- .../tmpl/regionserver/RSStatusTmplImpl.html | 12 +- .../apache/hadoop/hbase/util/package-tree.html | 8 +- .../apache/hadoop/hbase/wal/package-tree.html | 2 +- .../hbase/mapreduce/TableMapReduceUtil.html | 452 ++-- ...StoreScanner.StoreScannerCompactionRace.html | 2 +- .../hadoop/hbase/regionserver/StoreScanner.html | 2 +- ...icationTokenSecretManager.LeaderElector.html | 139 +- .../token/AuthenticationTokenSecretManager.html | 139 +- .../tmpl/master/MasterStatusTmpl.ImplData.html | 270 +- .../tmpl/master/MasterStatusTmpl.Intf.html | 270 +- .../hbase/tmpl/master/MasterStatusTmpl.html | 270 +- .../hbase/tmpl/master/MasterStatusTmplImpl.html | 72 +- .../regionserver/RSStatusTmpl.ImplData.html | 60 +- .../tmpl/regionserver/RSStatusTmpl.Intf.html | 60 +- .../hbase/tmpl/regionserver/RSStatusTmpl.html | 60 +- .../tmpl/regionserver/RSStatusTmplImpl.html | 16 +- ...BaseFsck.CheckRegionConsistencyWorkItem.html | 2 +- .../HBaseFsck.ErrorReporter.ERROR_CODE.html | 2 +- .../hbase/util/HBaseFsck.ErrorReporter.html | 2 +- .../hbase/util/HBaseFsck.FileLockCallable.html | 2 +- .../hbase/util/HBaseFsck.HBaseFsckTool.html | 2 +- .../hadoop/hbase/util/HBaseFsck.HbckInfo.html | 2 +- .../hadoop/hbase/util/HBaseFsck.HdfsEntry.html | 2 +- .../hadoop/hbase/util/HBaseFsck.MetaEntry.html | 2 +- .../hbase/util/HBaseFsck.OnlineEntry.html | 2 +- .../util/HBaseFsck.PrintingErrorReporter.html | 2 +- .../HBaseFsck.RegionBoundariesInformation.html | 2 +- .../util/HBaseFsck.RegionRepairException.html | 2 +- .../HBaseFsck.TableInfo.HDFSIntegrityFixer.html | 2 +- ...aseFsck.TableInfo.IntegrityFixSuggester.html | 2 +- .../hadoop/hbase/util/HBaseFsck.TableInfo.html | 2 +- .../hbase/util/HBaseFsck.WorkItemHdfsDir.html | 2 +- .../util/HBaseFsck.WorkItemHdfsRegionInfo.html | 2 +- .../util/HBaseFsck.WorkItemOverlapMerge.html | 2 +- .../hbase/util/HBaseFsck.WorkItemRegion.html | 2 +- .../org/apache/hadoop/hbase/util/HBaseFsck.html | 2 +- distribution-management.html | 4 +- export_control.html | 4 +- hbase-annotations/checkstyle.html | 6 +- hbase-annotations/dependencies.html | 6 +- hbase-annotations/dependency-convergence.html | 6 +- hbase-annotations/dependency-info.html | 6 +- hbase-annotations/dependency-management.html | 6 +- hbase-annotations/distribution-management.html | 6 +- hbase-annotations/index.html | 6 +- hbase-annotations/integration.html | 6 +- hbase-annotations/issue-tracking.html | 6 +- hbase-annotations/license.html | 6 +- hbase-annotations/mail-lists.html | 6 +- hbase-annotations/plugin-management.html | 6 +- hbase-annotations/plugins.html | 6 +- hbase-annotations/project-info.html | 6 +- hbase-annotations/project-reports.html | 6 +- hbase-annotations/project-summary.html | 6 +- hbase-annotations/source-repository.html | 6 +- hbase-annotations/team-list.html | 6 +- hbase-spark/checkstyle.html | 6 +- hbase-spark/dependencies.html | 6 +- hbase-spark/dependency-convergence.html | 6 +- hbase-spark/dependency-info.html | 6 +- hbase-spark/dependency-management.html | 6 +- hbase-spark/distribution-management.html | 6 +- hbase-spark/index.html | 6 +- hbase-spark/integration.html | 6 +- hbase-spark/issue-tracking.html | 6 +- hbase-spark/license.html | 6 +- hbase-spark/mail-lists.html | 6 +- hbase-spark/plugin-management.html | 6 +- hbase-spark/plugins.html | 6 +- hbase-spark/project-info.html | 6 +- hbase-spark/project-reports.html | 6 +- hbase-spark/project-summary.html | 6 +- hbase-spark/source-repository.html | 6 +- hbase-spark/team-list.html | 6 +- index.html | 4 +- integration.html | 4 +- issue-tracking.html | 4 +- license.html | 4 +- mail-lists.html | 4 +- metrics.html | 4 +- modules.html | 4 +- old_news.html | 4 +- plugin-management.html | 4 +- plugins.html | 4 +- poweredbyhbase.html | 4 +- project-info.html | 4 +- project-reports.html | 4 +- project-summary.html | 4 +- pseudo-distributed.html | 4 +- replication.html | 4 +- resources.html | 4 +- source-repository.html | 4 +- sponsors.html | 4 +- supportingprojects.html | 4 +- team-list.html | 4 +- testdevapidocs/index-all.html | 4 + .../hadoop/hbase/io/hfile/package-tree.html | 2 +- .../org/apache/hadoop/hbase/package-tree.html | 12 +- .../hadoop/hbase/procedure2/package-tree.html | 2 +- .../hadoop/hbase/regionserver/package-tree.html | 2 +- ...AuthenticationTokenSecretManagerForTest.html | 2 +- .../apache/hadoop/hbase/test/package-tree.html | 2 +- .../hadoop/hbase/util/TestHBaseFsckOneRS.html | 85 +- .../apache/hadoop/hbase/wal/package-tree.html | 2 +- .../hadoop/hbase/util/TestHBaseFsckOneRS.html | 2452 +++++++++--------- .../hadoop/hbase/util/TestHBaseFsckOneRS.html | 2452 +++++++++--------- .../hbase/mapreduce/TableMapReduceUtil.html | 452 ++-- .../hadoop/hbase/regionserver/StoreScanner.html | 2 +- .../token/AuthenticationTokenSecretManager.html | 139 +- .../hbase/tmpl/common/TaskMonitorTmpl.html | 60 +- .../hbase/tmpl/common/TaskMonitorTmplImpl.html | 16 +- .../hbase/tmpl/master/MasterStatusTmpl.html | 270 +- .../hbase/tmpl/master/MasterStatusTmplImpl.html | 72 +- .../hbase/tmpl/regionserver/RSStatusTmpl.html | 60 +- .../tmpl/regionserver/RSStatusTmplImpl.html | 16 +- .../org/apache/hadoop/hbase/util/HBaseFsck.html | 2 +- 155 files changed, 4817 insertions(+), 4680 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/acid-semantics.html ---------------------------------------------------------------------- diff --git a/acid-semantics.html b/acid-semantics.html index 25d9bcc..beb5e4c 100644 --- a/acid-semantics.html +++ b/acid-semantics.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="20160121" /> + <meta name="Date-Revision-yyyymmdd" content="20160122" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Apache HBase (TM) ACID Properties @@ -600,7 +600,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-21</li> + <li id="publishDate" class="pull-right">Last Published: 2016-01-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/apache_hbase_reference_guide.pdf ---------------------------------------------------------------------- diff --git a/apache_hbase_reference_guide.pdf b/apache_hbase_reference_guide.pdf index 137a324..5d08993 100644 Binary files a/apache_hbase_reference_guide.pdf and b/apache_hbase_reference_guide.pdf differ http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/apache_hbase_reference_guide.pdfmarks ---------------------------------------------------------------------- diff --git a/apache_hbase_reference_guide.pdfmarks b/apache_hbase_reference_guide.pdfmarks index 2ff6856..5dddb48 100644 --- a/apache_hbase_reference_guide.pdfmarks +++ b/apache_hbase_reference_guide.pdfmarks @@ -2,8 +2,8 @@ /Author (Apache HBase Team) /Subject () /Keywords () - /ModDate (D:20160121150036) - /CreationDate (D:20160121150036) + /ModDate (D:20160122161716) + /CreationDate (D:20160122161716) /Creator (Asciidoctor PDF 1.5.0.alpha.6, based on Prawn 1.2.1) /Producer () /DOCINFO pdfmark http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/apidocs/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html ---------------------------------------------------------------------- diff --git a/apidocs/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html b/apidocs/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html index f7f83e1..e531f43 100644 --- a/apidocs/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html +++ b/apidocs/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html @@ -971,7 +971,7 @@ public static void <a href="../../../../../src-html/org/apache/hadoop/ <div class="block">Add HBase and its dependencies (only) to the job configuration. <p> This is intended as a low-level API, facilitating code reuse between this - class and its mapred counterpart. It also of use to extenral tools that + class and its mapred counterpart. It also of use to external tools that need to build a MapReduce job that interacts with HBase but want fine-grained control over the jars shipped to the cluster. </p></div> @@ -987,7 +987,7 @@ public static void <a href="../../../../../src-html/org/apache/hadoop/ <ul class="blockList"> <li class="blockList"> <h4>buildDependencyClasspath</h4> -<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#line.795">buildDependencyClasspath</a>(org.apache.hadoop.conf.Configuration conf)</pre> +<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#line.811">buildDependencyClasspath</a>(org.apache.hadoop.conf.Configuration conf)</pre> <div class="block">Returns a classpath string built from the content of the "tmpjars" value in <code>conf</code>. Also exposed to shell scripts via `bin/hbase mapredcp`.</div> </li> @@ -998,7 +998,7 @@ public static void <a href="../../../../../src-html/org/apache/hadoop/ <ul class="blockList"> <li class="blockList"> <h4>addDependencyJars</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#line.819">addDependencyJars</a>(org.apache.hadoop.mapreduce.Job job) +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#line.835">addDependencyJars</a>(org.apache.hadoop.mapreduce.Job job) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Add the HBase dependency jars as well as jars for any of the configured job classes to the job configuration, so that JobClient will ship them @@ -1013,7 +1013,7 @@ public static void <a href="../../../../../src-html/org/apache/hadoop/ <ul class="blockListLast"> <li class="blockList"> <h4>addDependencyJars</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#line.843">addDependencyJars</a>(org.apache.hadoop.conf.Configuration conf, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#line.859">addDependencyJars</a>(org.apache.hadoop.conf.Configuration conf, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>... classes) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Add the jars containing the given classes to the job's configuration http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html ---------------------------------------------------------------------- diff --git a/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html b/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html index 271fd72..4bcfbd0 100644 --- a/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html +++ b/apidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html @@ -771,7 +771,7 @@ <span class="sourceLineNo">763</span> * Add HBase and its dependencies (only) to the job configuration.<a name="line.763"></a> <span class="sourceLineNo">764</span> * <p><a name="line.764"></a> <span class="sourceLineNo">765</span> * This is intended as a low-level API, facilitating code reuse between this<a name="line.765"></a> -<span class="sourceLineNo">766</span> * class and its mapred counterpart. It also of use to extenral tools that<a name="line.766"></a> +<span class="sourceLineNo">766</span> * class and its mapred counterpart. It also of use to external tools that<a name="line.766"></a> <span class="sourceLineNo">767</span> * need to build a MapReduce job that interacts with HBase but want<a name="line.767"></a> <span class="sourceLineNo">768</span> * fine-grained control over the jars shipped to the cluster.<a name="line.768"></a> <span class="sourceLineNo">769</span> * </p><a name="line.769"></a> @@ -780,224 +780,240 @@ <span class="sourceLineNo">772</span> * @see <a href="https://issues.apache.org/jira/browse/PIG-3285">PIG-3285</a><a name="line.772"></a> <span class="sourceLineNo">773</span> */<a name="line.773"></a> <span class="sourceLineNo">774</span> public static void addHBaseDependencyJars(Configuration conf) throws IOException {<a name="line.774"></a> -<span class="sourceLineNo">775</span> addDependencyJars(conf,<a name="line.775"></a> -<span class="sourceLineNo">776</span> // explicitly pull a class from each module<a name="line.776"></a> -<span class="sourceLineNo">777</span> org.apache.hadoop.hbase.HConstants.class, // hbase-common<a name="line.777"></a> -<span class="sourceLineNo">778</span> org.apache.hadoop.hbase.protobuf.generated.ClientProtos.class, // hbase-protocol<a name="line.778"></a> -<span class="sourceLineNo">779</span> org.apache.hadoop.hbase.client.Put.class, // hbase-client<a name="line.779"></a> -<span class="sourceLineNo">780</span> org.apache.hadoop.hbase.CompatibilityFactory.class, // hbase-hadoop-compat<a name="line.780"></a> -<span class="sourceLineNo">781</span> org.apache.hadoop.hbase.mapreduce.TableMapper.class, // hbase-server<a name="line.781"></a> -<span class="sourceLineNo">782</span> // pull necessary dependencies<a name="line.782"></a> -<span class="sourceLineNo">783</span> org.apache.zookeeper.ZooKeeper.class,<a name="line.783"></a> -<span class="sourceLineNo">784</span> io.netty.channel.Channel.class,<a name="line.784"></a> -<span class="sourceLineNo">785</span> com.google.protobuf.Message.class,<a name="line.785"></a> -<span class="sourceLineNo">786</span> com.google.common.collect.Lists.class,<a name="line.786"></a> -<span class="sourceLineNo">787</span> org.apache.htrace.Trace.class,<a name="line.787"></a> -<span class="sourceLineNo">788</span> com.codahale.metrics.MetricRegistry.class);<a name="line.788"></a> -<span class="sourceLineNo">789</span> }<a name="line.789"></a> -<span class="sourceLineNo">790</span><a name="line.790"></a> -<span class="sourceLineNo">791</span> /**<a name="line.791"></a> -<span class="sourceLineNo">792</span> * Returns a classpath string built from the content of the "tmpjars" value in {@code conf}.<a name="line.792"></a> -<span class="sourceLineNo">793</span> * Also exposed to shell scripts via `bin/hbase mapredcp`.<a name="line.793"></a> -<span class="sourceLineNo">794</span> */<a name="line.794"></a> -<span class="sourceLineNo">795</span> public static String buildDependencyClasspath(Configuration conf) {<a name="line.795"></a> -<span class="sourceLineNo">796</span> if (conf == null) {<a name="line.796"></a> -<span class="sourceLineNo">797</span> throw new IllegalArgumentException("Must provide a configuration object.");<a name="line.797"></a> -<span class="sourceLineNo">798</span> }<a name="line.798"></a> -<span class="sourceLineNo">799</span> Set<String> paths = new HashSet<String>(conf.getStringCollection("tmpjars"));<a name="line.799"></a> -<span class="sourceLineNo">800</span> if (paths.size() == 0) {<a name="line.800"></a> -<span class="sourceLineNo">801</span> throw new IllegalArgumentException("Configuration contains no tmpjars.");<a name="line.801"></a> -<span class="sourceLineNo">802</span> }<a name="line.802"></a> -<span class="sourceLineNo">803</span> StringBuilder sb = new StringBuilder();<a name="line.803"></a> -<span class="sourceLineNo">804</span> for (String s : paths) {<a name="line.804"></a> -<span class="sourceLineNo">805</span> // entries can take the form 'file:/path/to/file.jar'.<a name="line.805"></a> -<span class="sourceLineNo">806</span> int idx = s.indexOf(":");<a name="line.806"></a> -<span class="sourceLineNo">807</span> if (idx != -1) s = s.substring(idx + 1);<a name="line.807"></a> -<span class="sourceLineNo">808</span> if (sb.length() > 0) sb.append(File.pathSeparator);<a name="line.808"></a> -<span class="sourceLineNo">809</span> sb.append(s);<a name="line.809"></a> -<span class="sourceLineNo">810</span> }<a name="line.810"></a> -<span class="sourceLineNo">811</span> return sb.toString();<a name="line.811"></a> -<span class="sourceLineNo">812</span> }<a name="line.812"></a> -<span class="sourceLineNo">813</span><a name="line.813"></a> -<span class="sourceLineNo">814</span> /**<a name="line.814"></a> -<span class="sourceLineNo">815</span> * Add the HBase dependency jars as well as jars for any of the configured<a name="line.815"></a> -<span class="sourceLineNo">816</span> * job classes to the job configuration, so that JobClient will ship them<a name="line.816"></a> -<span class="sourceLineNo">817</span> * to the cluster and add them to the DistributedCache.<a name="line.817"></a> -<span class="sourceLineNo">818</span> */<a name="line.818"></a> -<span class="sourceLineNo">819</span> public static void addDependencyJars(Job job) throws IOException {<a name="line.819"></a> -<span class="sourceLineNo">820</span> addHBaseDependencyJars(job.getConfiguration());<a name="line.820"></a> -<span class="sourceLineNo">821</span> try {<a name="line.821"></a> -<span class="sourceLineNo">822</span> addDependencyJars(job.getConfiguration(),<a name="line.822"></a> -<span class="sourceLineNo">823</span> // when making changes here, consider also mapred.TableMapReduceUtil<a name="line.823"></a> -<span class="sourceLineNo">824</span> // pull job classes<a name="line.824"></a> -<span class="sourceLineNo">825</span> job.getMapOutputKeyClass(),<a name="line.825"></a> -<span class="sourceLineNo">826</span> job.getMapOutputValueClass(),<a name="line.826"></a> -<span class="sourceLineNo">827</span> job.getInputFormatClass(),<a name="line.827"></a> -<span class="sourceLineNo">828</span> job.getOutputKeyClass(),<a name="line.828"></a> -<span class="sourceLineNo">829</span> job.getOutputValueClass(),<a name="line.829"></a> -<span class="sourceLineNo">830</span> job.getOutputFormatClass(),<a name="line.830"></a> -<span class="sourceLineNo">831</span> job.getPartitionerClass(),<a name="line.831"></a> -<span class="sourceLineNo">832</span> job.getCombinerClass());<a name="line.832"></a> -<span class="sourceLineNo">833</span> } catch (ClassNotFoundException e) {<a name="line.833"></a> -<span class="sourceLineNo">834</span> throw new IOException(e);<a name="line.834"></a> -<span class="sourceLineNo">835</span> }<a name="line.835"></a> -<span class="sourceLineNo">836</span> }<a name="line.836"></a> -<span class="sourceLineNo">837</span><a name="line.837"></a> -<span class="sourceLineNo">838</span> /**<a name="line.838"></a> -<span class="sourceLineNo">839</span> * Add the jars containing the given classes to the job's configuration<a name="line.839"></a> -<span class="sourceLineNo">840</span> * such that JobClient will ship them to the cluster and add them to<a name="line.840"></a> -<span class="sourceLineNo">841</span> * the DistributedCache.<a name="line.841"></a> -<span class="sourceLineNo">842</span> */<a name="line.842"></a> -<span class="sourceLineNo">843</span> public static void addDependencyJars(Configuration conf,<a name="line.843"></a> -<span class="sourceLineNo">844</span> Class<?>... classes) throws IOException {<a name="line.844"></a> -<span class="sourceLineNo">845</span><a name="line.845"></a> -<span class="sourceLineNo">846</span> FileSystem localFs = FileSystem.getLocal(conf);<a name="line.846"></a> -<span class="sourceLineNo">847</span> Set<String> jars = new HashSet<String>();<a name="line.847"></a> -<span class="sourceLineNo">848</span> // Add jars that are already in the tmpjars variable<a name="line.848"></a> -<span class="sourceLineNo">849</span> jars.addAll(conf.getStringCollection("tmpjars"));<a name="line.849"></a> -<span class="sourceLineNo">850</span><a name="line.850"></a> -<span class="sourceLineNo">851</span> // add jars as we find them to a map of contents jar name so that we can avoid<a name="line.851"></a> -<span class="sourceLineNo">852</span> // creating new jars for classes that have already been packaged.<a name="line.852"></a> -<span class="sourceLineNo">853</span> Map<String, String> packagedClasses = new HashMap<String, String>();<a name="line.853"></a> -<span class="sourceLineNo">854</span><a name="line.854"></a> -<span class="sourceLineNo">855</span> // Add jars containing the specified classes<a name="line.855"></a> -<span class="sourceLineNo">856</span> for (Class<?> clazz : classes) {<a name="line.856"></a> -<span class="sourceLineNo">857</span> if (clazz == null) continue;<a name="line.857"></a> -<span class="sourceLineNo">858</span><a name="line.858"></a> -<span class="sourceLineNo">859</span> Path path = findOrCreateJar(clazz, localFs, packagedClasses);<a name="line.859"></a> -<span class="sourceLineNo">860</span> if (path == null) {<a name="line.860"></a> -<span class="sourceLineNo">861</span> LOG.warn("Could not find jar for class " + clazz +<a name="line.861"></a> -<span class="sourceLineNo">862</span> " in order to ship it to the cluster.");<a name="line.862"></a> -<span class="sourceLineNo">863</span> continue;<a name="line.863"></a> -<span class="sourceLineNo">864</span> }<a name="line.864"></a> -<span class="sourceLineNo">865</span> if (!localFs.exists(path)) {<a name="line.865"></a> -<span class="sourceLineNo">866</span> LOG.warn("Could not validate jar file " + path + " for class "<a name="line.866"></a> -<span class="sourceLineNo">867</span> + clazz);<a name="line.867"></a> -<span class="sourceLineNo">868</span> continue;<a name="line.868"></a> -<span class="sourceLineNo">869</span> }<a name="line.869"></a> -<span class="sourceLineNo">870</span> jars.add(path.toString());<a name="line.870"></a> -<span class="sourceLineNo">871</span> }<a name="line.871"></a> -<span class="sourceLineNo">872</span> if (jars.isEmpty()) return;<a name="line.872"></a> -<span class="sourceLineNo">873</span><a name="line.873"></a> -<span class="sourceLineNo">874</span> conf.set("tmpjars", StringUtils.arrayToString(jars.toArray(new String[jars.size()])));<a name="line.874"></a> -<span class="sourceLineNo">875</span> }<a name="line.875"></a> -<span class="sourceLineNo">876</span><a name="line.876"></a> -<span class="sourceLineNo">877</span> /**<a name="line.877"></a> -<span class="sourceLineNo">878</span> * Finds the Jar for a class or creates it if it doesn't exist. If the class is in<a name="line.878"></a> -<span class="sourceLineNo">879</span> * a directory in the classpath, it creates a Jar on the fly with the<a name="line.879"></a> -<span class="sourceLineNo">880</span> * contents of the directory and returns the path to that Jar. If a Jar is<a name="line.880"></a> -<span class="sourceLineNo">881</span> * created, it is created in the system temporary directory. Otherwise,<a name="line.881"></a> -<span class="sourceLineNo">882</span> * returns an existing jar that contains a class of the same name. Maintains<a name="line.882"></a> -<span class="sourceLineNo">883</span> * a mapping from jar contents to the tmp jar created.<a name="line.883"></a> -<span class="sourceLineNo">884</span> * @param my_class the class to find.<a name="line.884"></a> -<span class="sourceLineNo">885</span> * @param fs the FileSystem with which to qualify the returned path.<a name="line.885"></a> -<span class="sourceLineNo">886</span> * @param packagedClasses a map of class name to path.<a name="line.886"></a> -<span class="sourceLineNo">887</span> * @return a jar file that contains the class.<a name="line.887"></a> -<span class="sourceLineNo">888</span> * @throws IOException<a name="line.888"></a> -<span class="sourceLineNo">889</span> */<a name="line.889"></a> -<span class="sourceLineNo">890</span> private static Path findOrCreateJar(Class<?> my_class, FileSystem fs,<a name="line.890"></a> -<span class="sourceLineNo">891</span> Map<String, String> packagedClasses)<a name="line.891"></a> -<span class="sourceLineNo">892</span> throws IOException {<a name="line.892"></a> -<span class="sourceLineNo">893</span> // attempt to locate an existing jar for the class.<a name="line.893"></a> -<span class="sourceLineNo">894</span> String jar = findContainingJar(my_class, packagedClasses);<a name="line.894"></a> -<span class="sourceLineNo">895</span> if (null == jar || jar.isEmpty()) {<a name="line.895"></a> -<span class="sourceLineNo">896</span> jar = getJar(my_class);<a name="line.896"></a> -<span class="sourceLineNo">897</span> updateMap(jar, packagedClasses);<a name="line.897"></a> -<span class="sourceLineNo">898</span> }<a name="line.898"></a> -<span class="sourceLineNo">899</span><a name="line.899"></a> -<span class="sourceLineNo">900</span> if (null == jar || jar.isEmpty()) {<a name="line.900"></a> -<span class="sourceLineNo">901</span> return null;<a name="line.901"></a> -<span class="sourceLineNo">902</span> }<a name="line.902"></a> -<span class="sourceLineNo">903</span><a name="line.903"></a> -<span class="sourceLineNo">904</span> LOG.debug(String.format("For class %s, using jar %s", my_class.getName(), jar));<a name="line.904"></a> -<span class="sourceLineNo">905</span> return new Path(jar).makeQualified(fs);<a name="line.905"></a> -<span class="sourceLineNo">906</span> }<a name="line.906"></a> -<span class="sourceLineNo">907</span><a name="line.907"></a> -<span class="sourceLineNo">908</span> /**<a name="line.908"></a> -<span class="sourceLineNo">909</span> * Add entries to <code>packagedClasses</code> corresponding to class files<a name="line.909"></a> -<span class="sourceLineNo">910</span> * contained in <code>jar</code>.<a name="line.910"></a> -<span class="sourceLineNo">911</span> * @param jar The jar who's content to list.<a name="line.911"></a> -<span class="sourceLineNo">912</span> * @param packagedClasses map[class -> jar]<a name="line.912"></a> -<span class="sourceLineNo">913</span> */<a name="line.913"></a> -<span class="sourceLineNo">914</span> private static void updateMap(String jar, Map<String, String> packagedClasses) throws IOException {<a name="line.914"></a> -<span class="sourceLineNo">915</span> if (null == jar || jar.isEmpty()) {<a name="line.915"></a> -<span class="sourceLineNo">916</span> return;<a name="line.916"></a> -<span class="sourceLineNo">917</span> }<a name="line.917"></a> -<span class="sourceLineNo">918</span> ZipFile zip = null;<a name="line.918"></a> -<span class="sourceLineNo">919</span> try {<a name="line.919"></a> -<span class="sourceLineNo">920</span> zip = new ZipFile(jar);<a name="line.920"></a> -<span class="sourceLineNo">921</span> for (Enumeration<? extends ZipEntry> iter = zip.entries(); iter.hasMoreElements();) {<a name="line.921"></a> -<span class="sourceLineNo">922</span> ZipEntry entry = iter.nextElement();<a name="line.922"></a> -<span class="sourceLineNo">923</span> if (entry.getName().endsWith("class")) {<a name="line.923"></a> -<span class="sourceLineNo">924</span> packagedClasses.put(entry.getName(), jar);<a name="line.924"></a> -<span class="sourceLineNo">925</span> }<a name="line.925"></a> -<span class="sourceLineNo">926</span> }<a name="line.926"></a> -<span class="sourceLineNo">927</span> } finally {<a name="line.927"></a> -<span class="sourceLineNo">928</span> if (null != zip) zip.close();<a name="line.928"></a> -<span class="sourceLineNo">929</span> }<a name="line.929"></a> -<span class="sourceLineNo">930</span> }<a name="line.930"></a> -<span class="sourceLineNo">931</span><a name="line.931"></a> -<span class="sourceLineNo">932</span> /**<a name="line.932"></a> -<span class="sourceLineNo">933</span> * Find a jar that contains a class of the same name, if any. It will return<a name="line.933"></a> -<span class="sourceLineNo">934</span> * a jar file, even if that is not the first thing on the class path that<a name="line.934"></a> -<span class="sourceLineNo">935</span> * has a class with the same name. Looks first on the classpath and then in<a name="line.935"></a> -<span class="sourceLineNo">936</span> * the <code>packagedClasses</code> map.<a name="line.936"></a> -<span class="sourceLineNo">937</span> * @param my_class the class to find.<a name="line.937"></a> -<span class="sourceLineNo">938</span> * @return a jar file that contains the class, or null.<a name="line.938"></a> -<span class="sourceLineNo">939</span> * @throws IOException<a name="line.939"></a> -<span class="sourceLineNo">940</span> */<a name="line.940"></a> -<span class="sourceLineNo">941</span> private static String findContainingJar(Class<?> my_class, Map<String, String> packagedClasses)<a name="line.941"></a> -<span class="sourceLineNo">942</span> throws IOException {<a name="line.942"></a> -<span class="sourceLineNo">943</span> ClassLoader loader = my_class.getClassLoader();<a name="line.943"></a> -<span class="sourceLineNo">944</span><a name="line.944"></a> -<span class="sourceLineNo">945</span> String class_file = my_class.getName().replaceAll("\\.", "/") + ".class";<a name="line.945"></a> -<span class="sourceLineNo">946</span><a name="line.946"></a> -<span class="sourceLineNo">947</span> if (loader != null) {<a name="line.947"></a> -<span class="sourceLineNo">948</span> // first search the classpath<a name="line.948"></a> -<span class="sourceLineNo">949</span> for (Enumeration<URL> itr = loader.getResources(class_file); itr.hasMoreElements();) {<a name="line.949"></a> -<span class="sourceLineNo">950</span> URL url = itr.nextElement();<a name="line.950"></a> -<span class="sourceLineNo">951</span> if ("jar".equals(url.getProtocol())) {<a name="line.951"></a> -<span class="sourceLineNo">952</span> String toReturn = url.getPath();<a name="line.952"></a> -<span class="sourceLineNo">953</span> if (toReturn.startsWith("file:")) {<a name="line.953"></a> -<span class="sourceLineNo">954</span> toReturn = toReturn.substring("file:".length());<a name="line.954"></a> -<span class="sourceLineNo">955</span> }<a name="line.955"></a> -<span class="sourceLineNo">956</span> // URLDecoder is a misnamed class, since it actually decodes<a name="line.956"></a> -<span class="sourceLineNo">957</span> // x-www-form-urlencoded MIME type rather than actual<a name="line.957"></a> -<span class="sourceLineNo">958</span> // URL encoding (which the file path has). Therefore it would<a name="line.958"></a> -<span class="sourceLineNo">959</span> // decode +s to ' 's which is incorrect (spaces are actually<a name="line.959"></a> -<span class="sourceLineNo">960</span> // either unencoded or encoded as "%20"). Replace +s first, so<a name="line.960"></a> -<span class="sourceLineNo">961</span> // that they are kept sacred during the decoding process.<a name="line.961"></a> -<span class="sourceLineNo">962</span> toReturn = toReturn.replaceAll("\\+", "%2B");<a name="line.962"></a> -<span class="sourceLineNo">963</span> toReturn = URLDecoder.decode(toReturn, "UTF-8");<a name="line.963"></a> -<span class="sourceLineNo">964</span> return toReturn.replaceAll("!.*$", "");<a name="line.964"></a> -<span class="sourceLineNo">965</span> }<a name="line.965"></a> -<span class="sourceLineNo">966</span> }<a name="line.966"></a> -<span class="sourceLineNo">967</span> }<a name="line.967"></a> -<span class="sourceLineNo">968</span><a name="line.968"></a> -<span class="sourceLineNo">969</span> // now look in any jars we've packaged using JarFinder. Returns null when<a name="line.969"></a> -<span class="sourceLineNo">970</span> // no jar is found.<a name="line.970"></a> -<span class="sourceLineNo">971</span> return packagedClasses.get(class_file);<a name="line.971"></a> -<span class="sourceLineNo">972</span> }<a name="line.972"></a> -<span class="sourceLineNo">973</span><a name="line.973"></a> -<span class="sourceLineNo">974</span> /**<a name="line.974"></a> -<span class="sourceLineNo">975</span> * Invoke 'getJar' on a custom JarFinder implementation. Useful for some job<a name="line.975"></a> -<span class="sourceLineNo">976</span> * configuration contexts (HBASE-8140) and also for testing on MRv2.<a name="line.976"></a> -<span class="sourceLineNo">977</span> * check if we have HADOOP-9426.<a name="line.977"></a> -<span class="sourceLineNo">978</span> * @param my_class the class to find.<a name="line.978"></a> -<span class="sourceLineNo">979</span> * @return a jar file that contains the class, or null.<a name="line.979"></a> -<span class="sourceLineNo">980</span> */<a name="line.980"></a> -<span class="sourceLineNo">981</span> private static String getJar(Class<?> my_class) {<a name="line.981"></a> -<span class="sourceLineNo">982</span> String ret = null;<a name="line.982"></a> -<span class="sourceLineNo">983</span> try {<a name="line.983"></a> -<span class="sourceLineNo">984</span> ret = JarFinder.getJar(my_class);<a name="line.984"></a> -<span class="sourceLineNo">985</span> } catch (Exception e) {<a name="line.985"></a> -<span class="sourceLineNo">986</span> // toss all other exceptions, related to reflection failure<a name="line.986"></a> -<span class="sourceLineNo">987</span> throw new RuntimeException("getJar invocation failed.", e);<a name="line.987"></a> -<span class="sourceLineNo">988</span> }<a name="line.988"></a> +<span class="sourceLineNo">775</span><a name="line.775"></a> +<span class="sourceLineNo">776</span> // PrefixTreeCodec is part of the hbase-prefix-tree module. If not included in MR jobs jar<a name="line.776"></a> +<span class="sourceLineNo">777</span> // dependencies, MR jobs that write encoded hfiles will fail.<a name="line.777"></a> +<span class="sourceLineNo">778</span> // We used reflection here so to prevent a circular module dependency.<a name="line.778"></a> +<span class="sourceLineNo">779</span> // TODO - if we extract the MR into a module, make it depend on hbase-prefix-tree.<a name="line.779"></a> +<span class="sourceLineNo">780</span> Class prefixTreeCodecClass = null;<a name="line.780"></a> +<span class="sourceLineNo">781</span> try {<a name="line.781"></a> +<span class="sourceLineNo">782</span> prefixTreeCodecClass =<a name="line.782"></a> +<span class="sourceLineNo">783</span> Class.forName("org.apache.hadoop.hbase.code.prefixtree.PrefixTreeCodec");<a name="line.783"></a> +<span class="sourceLineNo">784</span> } catch (ClassNotFoundException e) {<a name="line.784"></a> +<span class="sourceLineNo">785</span> // this will show up in unit tests but should not show in real deployments<a name="line.785"></a> +<span class="sourceLineNo">786</span> LOG.warn("The hbase-prefix-tree module jar containing PrefixTreeCodec is not present." +<a name="line.786"></a> +<span class="sourceLineNo">787</span> " Continuing without it.");<a name="line.787"></a> +<span class="sourceLineNo">788</span> }<a name="line.788"></a> +<span class="sourceLineNo">789</span><a name="line.789"></a> +<span class="sourceLineNo">790</span> addDependencyJars(conf,<a name="line.790"></a> +<span class="sourceLineNo">791</span> // explicitly pull a class from each module<a name="line.791"></a> +<span class="sourceLineNo">792</span> org.apache.hadoop.hbase.HConstants.class, // hbase-common<a name="line.792"></a> +<span class="sourceLineNo">793</span> org.apache.hadoop.hbase.protobuf.generated.ClientProtos.class, // hbase-protocol<a name="line.793"></a> +<span class="sourceLineNo">794</span> org.apache.hadoop.hbase.client.Put.class, // hbase-client<a name="line.794"></a> +<span class="sourceLineNo">795</span> org.apache.hadoop.hbase.CompatibilityFactory.class, // hbase-hadoop-compat<a name="line.795"></a> +<span class="sourceLineNo">796</span> org.apache.hadoop.hbase.mapreduce.TableMapper.class, // hbase-server<a name="line.796"></a> +<span class="sourceLineNo">797</span> prefixTreeCodecClass, // hbase-prefix-tree (if null will be skipped)<a name="line.797"></a> +<span class="sourceLineNo">798</span> // pull necessary dependencies<a name="line.798"></a> +<span class="sourceLineNo">799</span> org.apache.zookeeper.ZooKeeper.class,<a name="line.799"></a> +<span class="sourceLineNo">800</span> io.netty.channel.Channel.class,<a name="line.800"></a> +<span class="sourceLineNo">801</span> com.google.protobuf.Message.class,<a name="line.801"></a> +<span class="sourceLineNo">802</span> com.google.common.collect.Lists.class,<a name="line.802"></a> +<span class="sourceLineNo">803</span> org.apache.htrace.Trace.class,<a name="line.803"></a> +<span class="sourceLineNo">804</span> com.codahale.metrics.MetricRegistry.class);<a name="line.804"></a> +<span class="sourceLineNo">805</span> }<a name="line.805"></a> +<span class="sourceLineNo">806</span><a name="line.806"></a> +<span class="sourceLineNo">807</span> /**<a name="line.807"></a> +<span class="sourceLineNo">808</span> * Returns a classpath string built from the content of the "tmpjars" value in {@code conf}.<a name="line.808"></a> +<span class="sourceLineNo">809</span> * Also exposed to shell scripts via `bin/hbase mapredcp`.<a name="line.809"></a> +<span class="sourceLineNo">810</span> */<a name="line.810"></a> +<span class="sourceLineNo">811</span> public static String buildDependencyClasspath(Configuration conf) {<a name="line.811"></a> +<span class="sourceLineNo">812</span> if (conf == null) {<a name="line.812"></a> +<span class="sourceLineNo">813</span> throw new IllegalArgumentException("Must provide a configuration object.");<a name="line.813"></a> +<span class="sourceLineNo">814</span> }<a name="line.814"></a> +<span class="sourceLineNo">815</span> Set<String> paths = new HashSet<String>(conf.getStringCollection("tmpjars"));<a name="line.815"></a> +<span class="sourceLineNo">816</span> if (paths.size() == 0) {<a name="line.816"></a> +<span class="sourceLineNo">817</span> throw new IllegalArgumentException("Configuration contains no tmpjars.");<a name="line.817"></a> +<span class="sourceLineNo">818</span> }<a name="line.818"></a> +<span class="sourceLineNo">819</span> StringBuilder sb = new StringBuilder();<a name="line.819"></a> +<span class="sourceLineNo">820</span> for (String s : paths) {<a name="line.820"></a> +<span class="sourceLineNo">821</span> // entries can take the form 'file:/path/to/file.jar'.<a name="line.821"></a> +<span class="sourceLineNo">822</span> int idx = s.indexOf(":");<a name="line.822"></a> +<span class="sourceLineNo">823</span> if (idx != -1) s = s.substring(idx + 1);<a name="line.823"></a> +<span class="sourceLineNo">824</span> if (sb.length() > 0) sb.append(File.pathSeparator);<a name="line.824"></a> +<span class="sourceLineNo">825</span> sb.append(s);<a name="line.825"></a> +<span class="sourceLineNo">826</span> }<a name="line.826"></a> +<span class="sourceLineNo">827</span> return sb.toString();<a name="line.827"></a> +<span class="sourceLineNo">828</span> }<a name="line.828"></a> +<span class="sourceLineNo">829</span><a name="line.829"></a> +<span class="sourceLineNo">830</span> /**<a name="line.830"></a> +<span class="sourceLineNo">831</span> * Add the HBase dependency jars as well as jars for any of the configured<a name="line.831"></a> +<span class="sourceLineNo">832</span> * job classes to the job configuration, so that JobClient will ship them<a name="line.832"></a> +<span class="sourceLineNo">833</span> * to the cluster and add them to the DistributedCache.<a name="line.833"></a> +<span class="sourceLineNo">834</span> */<a name="line.834"></a> +<span class="sourceLineNo">835</span> public static void addDependencyJars(Job job) throws IOException {<a name="line.835"></a> +<span class="sourceLineNo">836</span> addHBaseDependencyJars(job.getConfiguration());<a name="line.836"></a> +<span class="sourceLineNo">837</span> try {<a name="line.837"></a> +<span class="sourceLineNo">838</span> addDependencyJars(job.getConfiguration(),<a name="line.838"></a> +<span class="sourceLineNo">839</span> // when making changes here, consider also mapred.TableMapReduceUtil<a name="line.839"></a> +<span class="sourceLineNo">840</span> // pull job classes<a name="line.840"></a> +<span class="sourceLineNo">841</span> job.getMapOutputKeyClass(),<a name="line.841"></a> +<span class="sourceLineNo">842</span> job.getMapOutputValueClass(),<a name="line.842"></a> +<span class="sourceLineNo">843</span> job.getInputFormatClass(),<a name="line.843"></a> +<span class="sourceLineNo">844</span> job.getOutputKeyClass(),<a name="line.844"></a> +<span class="sourceLineNo">845</span> job.getOutputValueClass(),<a name="line.845"></a> +<span class="sourceLineNo">846</span> job.getOutputFormatClass(),<a name="line.846"></a> +<span class="sourceLineNo">847</span> job.getPartitionerClass(),<a name="line.847"></a> +<span class="sourceLineNo">848</span> job.getCombinerClass());<a name="line.848"></a> +<span class="sourceLineNo">849</span> } catch (ClassNotFoundException e) {<a name="line.849"></a> +<span class="sourceLineNo">850</span> throw new IOException(e);<a name="line.850"></a> +<span class="sourceLineNo">851</span> }<a name="line.851"></a> +<span class="sourceLineNo">852</span> }<a name="line.852"></a> +<span class="sourceLineNo">853</span><a name="line.853"></a> +<span class="sourceLineNo">854</span> /**<a name="line.854"></a> +<span class="sourceLineNo">855</span> * Add the jars containing the given classes to the job's configuration<a name="line.855"></a> +<span class="sourceLineNo">856</span> * such that JobClient will ship them to the cluster and add them to<a name="line.856"></a> +<span class="sourceLineNo">857</span> * the DistributedCache.<a name="line.857"></a> +<span class="sourceLineNo">858</span> */<a name="line.858"></a> +<span class="sourceLineNo">859</span> public static void addDependencyJars(Configuration conf,<a name="line.859"></a> +<span class="sourceLineNo">860</span> Class<?>... classes) throws IOException {<a name="line.860"></a> +<span class="sourceLineNo">861</span><a name="line.861"></a> +<span class="sourceLineNo">862</span> FileSystem localFs = FileSystem.getLocal(conf);<a name="line.862"></a> +<span class="sourceLineNo">863</span> Set<String> jars = new HashSet<String>();<a name="line.863"></a> +<span class="sourceLineNo">864</span> // Add jars that are already in the tmpjars variable<a name="line.864"></a> +<span class="sourceLineNo">865</span> jars.addAll(conf.getStringCollection("tmpjars"));<a name="line.865"></a> +<span class="sourceLineNo">866</span><a name="line.866"></a> +<span class="sourceLineNo">867</span> // add jars as we find them to a map of contents jar name so that we can avoid<a name="line.867"></a> +<span class="sourceLineNo">868</span> // creating new jars for classes that have already been packaged.<a name="line.868"></a> +<span class="sourceLineNo">869</span> Map<String, String> packagedClasses = new HashMap<String, String>();<a name="line.869"></a> +<span class="sourceLineNo">870</span><a name="line.870"></a> +<span class="sourceLineNo">871</span> // Add jars containing the specified classes<a name="line.871"></a> +<span class="sourceLineNo">872</span> for (Class<?> clazz : classes) {<a name="line.872"></a> +<span class="sourceLineNo">873</span> if (clazz == null) continue;<a name="line.873"></a> +<span class="sourceLineNo">874</span><a name="line.874"></a> +<span class="sourceLineNo">875</span> Path path = findOrCreateJar(clazz, localFs, packagedClasses);<a name="line.875"></a> +<span class="sourceLineNo">876</span> if (path == null) {<a name="line.876"></a> +<span class="sourceLineNo">877</span> LOG.warn("Could not find jar for class " + clazz +<a name="line.877"></a> +<span class="sourceLineNo">878</span> " in order to ship it to the cluster.");<a name="line.878"></a> +<span class="sourceLineNo">879</span> continue;<a name="line.879"></a> +<span class="sourceLineNo">880</span> }<a name="line.880"></a> +<span class="sourceLineNo">881</span> if (!localFs.exists(path)) {<a name="line.881"></a> +<span class="sourceLineNo">882</span> LOG.warn("Could not validate jar file " + path + " for class "<a name="line.882"></a> +<span class="sourceLineNo">883</span> + clazz);<a name="line.883"></a> +<span class="sourceLineNo">884</span> continue;<a name="line.884"></a> +<span class="sourceLineNo">885</span> }<a name="line.885"></a> +<span class="sourceLineNo">886</span> jars.add(path.toString());<a name="line.886"></a> +<span class="sourceLineNo">887</span> }<a name="line.887"></a> +<span class="sourceLineNo">888</span> if (jars.isEmpty()) return;<a name="line.888"></a> +<span class="sourceLineNo">889</span><a name="line.889"></a> +<span class="sourceLineNo">890</span> conf.set("tmpjars", StringUtils.arrayToString(jars.toArray(new String[jars.size()])));<a name="line.890"></a> +<span class="sourceLineNo">891</span> }<a name="line.891"></a> +<span class="sourceLineNo">892</span><a name="line.892"></a> +<span class="sourceLineNo">893</span> /**<a name="line.893"></a> +<span class="sourceLineNo">894</span> * Finds the Jar for a class or creates it if it doesn't exist. If the class is in<a name="line.894"></a> +<span class="sourceLineNo">895</span> * a directory in the classpath, it creates a Jar on the fly with the<a name="line.895"></a> +<span class="sourceLineNo">896</span> * contents of the directory and returns the path to that Jar. If a Jar is<a name="line.896"></a> +<span class="sourceLineNo">897</span> * created, it is created in the system temporary directory. Otherwise,<a name="line.897"></a> +<span class="sourceLineNo">898</span> * returns an existing jar that contains a class of the same name. Maintains<a name="line.898"></a> +<span class="sourceLineNo">899</span> * a mapping from jar contents to the tmp jar created.<a name="line.899"></a> +<span class="sourceLineNo">900</span> * @param my_class the class to find.<a name="line.900"></a> +<span class="sourceLineNo">901</span> * @param fs the FileSystem with which to qualify the returned path.<a name="line.901"></a> +<span class="sourceLineNo">902</span> * @param packagedClasses a map of class name to path.<a name="line.902"></a> +<span class="sourceLineNo">903</span> * @return a jar file that contains the class.<a name="line.903"></a> +<span class="sourceLineNo">904</span> * @throws IOException<a name="line.904"></a> +<span class="sourceLineNo">905</span> */<a name="line.905"></a> +<span class="sourceLineNo">906</span> private static Path findOrCreateJar(Class<?> my_class, FileSystem fs,<a name="line.906"></a> +<span class="sourceLineNo">907</span> Map<String, String> packagedClasses)<a name="line.907"></a> +<span class="sourceLineNo">908</span> throws IOException {<a name="line.908"></a> +<span class="sourceLineNo">909</span> // attempt to locate an existing jar for the class.<a name="line.909"></a> +<span class="sourceLineNo">910</span> String jar = findContainingJar(my_class, packagedClasses);<a name="line.910"></a> +<span class="sourceLineNo">911</span> if (null == jar || jar.isEmpty()) {<a name="line.911"></a> +<span class="sourceLineNo">912</span> jar = getJar(my_class);<a name="line.912"></a> +<span class="sourceLineNo">913</span> updateMap(jar, packagedClasses);<a name="line.913"></a> +<span class="sourceLineNo">914</span> }<a name="line.914"></a> +<span class="sourceLineNo">915</span><a name="line.915"></a> +<span class="sourceLineNo">916</span> if (null == jar || jar.isEmpty()) {<a name="line.916"></a> +<span class="sourceLineNo">917</span> return null;<a name="line.917"></a> +<span class="sourceLineNo">918</span> }<a name="line.918"></a> +<span class="sourceLineNo">919</span><a name="line.919"></a> +<span class="sourceLineNo">920</span> LOG.debug(String.format("For class %s, using jar %s", my_class.getName(), jar));<a name="line.920"></a> +<span class="sourceLineNo">921</span> return new Path(jar).makeQualified(fs);<a name="line.921"></a> +<span class="sourceLineNo">922</span> }<a name="line.922"></a> +<span class="sourceLineNo">923</span><a name="line.923"></a> +<span class="sourceLineNo">924</span> /**<a name="line.924"></a> +<span class="sourceLineNo">925</span> * Add entries to <code>packagedClasses</code> corresponding to class files<a name="line.925"></a> +<span class="sourceLineNo">926</span> * contained in <code>jar</code>.<a name="line.926"></a> +<span class="sourceLineNo">927</span> * @param jar The jar who's content to list.<a name="line.927"></a> +<span class="sourceLineNo">928</span> * @param packagedClasses map[class -> jar]<a name="line.928"></a> +<span class="sourceLineNo">929</span> */<a name="line.929"></a> +<span class="sourceLineNo">930</span> private static void updateMap(String jar, Map<String, String> packagedClasses) throws IOException {<a name="line.930"></a> +<span class="sourceLineNo">931</span> if (null == jar || jar.isEmpty()) {<a name="line.931"></a> +<span class="sourceLineNo">932</span> return;<a name="line.932"></a> +<span class="sourceLineNo">933</span> }<a name="line.933"></a> +<span class="sourceLineNo">934</span> ZipFile zip = null;<a name="line.934"></a> +<span class="sourceLineNo">935</span> try {<a name="line.935"></a> +<span class="sourceLineNo">936</span> zip = new ZipFile(jar);<a name="line.936"></a> +<span class="sourceLineNo">937</span> for (Enumeration<? extends ZipEntry> iter = zip.entries(); iter.hasMoreElements();) {<a name="line.937"></a> +<span class="sourceLineNo">938</span> ZipEntry entry = iter.nextElement();<a name="line.938"></a> +<span class="sourceLineNo">939</span> if (entry.getName().endsWith("class")) {<a name="line.939"></a> +<span class="sourceLineNo">940</span> packagedClasses.put(entry.getName(), jar);<a name="line.940"></a> +<span class="sourceLineNo">941</span> }<a name="line.941"></a> +<span class="sourceLineNo">942</span> }<a name="line.942"></a> +<span class="sourceLineNo">943</span> } finally {<a name="line.943"></a> +<span class="sourceLineNo">944</span> if (null != zip) zip.close();<a name="line.944"></a> +<span class="sourceLineNo">945</span> }<a name="line.945"></a> +<span class="sourceLineNo">946</span> }<a name="line.946"></a> +<span class="sourceLineNo">947</span><a name="line.947"></a> +<span class="sourceLineNo">948</span> /**<a name="line.948"></a> +<span class="sourceLineNo">949</span> * Find a jar that contains a class of the same name, if any. It will return<a name="line.949"></a> +<span class="sourceLineNo">950</span> * a jar file, even if that is not the first thing on the class path that<a name="line.950"></a> +<span class="sourceLineNo">951</span> * has a class with the same name. Looks first on the classpath and then in<a name="line.951"></a> +<span class="sourceLineNo">952</span> * the <code>packagedClasses</code> map.<a name="line.952"></a> +<span class="sourceLineNo">953</span> * @param my_class the class to find.<a name="line.953"></a> +<span class="sourceLineNo">954</span> * @return a jar file that contains the class, or null.<a name="line.954"></a> +<span class="sourceLineNo">955</span> * @throws IOException<a name="line.955"></a> +<span class="sourceLineNo">956</span> */<a name="line.956"></a> +<span class="sourceLineNo">957</span> private static String findContainingJar(Class<?> my_class, Map<String, String> packagedClasses)<a name="line.957"></a> +<span class="sourceLineNo">958</span> throws IOException {<a name="line.958"></a> +<span class="sourceLineNo">959</span> ClassLoader loader = my_class.getClassLoader();<a name="line.959"></a> +<span class="sourceLineNo">960</span><a name="line.960"></a> +<span class="sourceLineNo">961</span> String class_file = my_class.getName().replaceAll("\\.", "/") + ".class";<a name="line.961"></a> +<span class="sourceLineNo">962</span><a name="line.962"></a> +<span class="sourceLineNo">963</span> if (loader != null) {<a name="line.963"></a> +<span class="sourceLineNo">964</span> // first search the classpath<a name="line.964"></a> +<span class="sourceLineNo">965</span> for (Enumeration<URL> itr = loader.getResources(class_file); itr.hasMoreElements();) {<a name="line.965"></a> +<span class="sourceLineNo">966</span> URL url = itr.nextElement();<a name="line.966"></a> +<span class="sourceLineNo">967</span> if ("jar".equals(url.getProtocol())) {<a name="line.967"></a> +<span class="sourceLineNo">968</span> String toReturn = url.getPath();<a name="line.968"></a> +<span class="sourceLineNo">969</span> if (toReturn.startsWith("file:")) {<a name="line.969"></a> +<span class="sourceLineNo">970</span> toReturn = toReturn.substring("file:".length());<a name="line.970"></a> +<span class="sourceLineNo">971</span> }<a name="line.971"></a> +<span class="sourceLineNo">972</span> // URLDecoder is a misnamed class, since it actually decodes<a name="line.972"></a> +<span class="sourceLineNo">973</span> // x-www-form-urlencoded MIME type rather than actual<a name="line.973"></a> +<span class="sourceLineNo">974</span> // URL encoding (which the file path has). Therefore it would<a name="line.974"></a> +<span class="sourceLineNo">975</span> // decode +s to ' 's which is incorrect (spaces are actually<a name="line.975"></a> +<span class="sourceLineNo">976</span> // either unencoded or encoded as "%20"). Replace +s first, so<a name="line.976"></a> +<span class="sourceLineNo">977</span> // that they are kept sacred during the decoding process.<a name="line.977"></a> +<span class="sourceLineNo">978</span> toReturn = toReturn.replaceAll("\\+", "%2B");<a name="line.978"></a> +<span class="sourceLineNo">979</span> toReturn = URLDecoder.decode(toReturn, "UTF-8");<a name="line.979"></a> +<span class="sourceLineNo">980</span> return toReturn.replaceAll("!.*$", "");<a name="line.980"></a> +<span class="sourceLineNo">981</span> }<a name="line.981"></a> +<span class="sourceLineNo">982</span> }<a name="line.982"></a> +<span class="sourceLineNo">983</span> }<a name="line.983"></a> +<span class="sourceLineNo">984</span><a name="line.984"></a> +<span class="sourceLineNo">985</span> // now look in any jars we've packaged using JarFinder. Returns null when<a name="line.985"></a> +<span class="sourceLineNo">986</span> // no jar is found.<a name="line.986"></a> +<span class="sourceLineNo">987</span> return packagedClasses.get(class_file);<a name="line.987"></a> +<span class="sourceLineNo">988</span> }<a name="line.988"></a> <span class="sourceLineNo">989</span><a name="line.989"></a> -<span class="sourceLineNo">990</span> return ret;<a name="line.990"></a> -<span class="sourceLineNo">991</span> }<a name="line.991"></a> -<span class="sourceLineNo">992</span>}<a name="line.992"></a> +<span class="sourceLineNo">990</span> /**<a name="line.990"></a> +<span class="sourceLineNo">991</span> * Invoke 'getJar' on a custom JarFinder implementation. Useful for some job<a name="line.991"></a> +<span class="sourceLineNo">992</span> * configuration contexts (HBASE-8140) and also for testing on MRv2.<a name="line.992"></a> +<span class="sourceLineNo">993</span> * check if we have HADOOP-9426.<a name="line.993"></a> +<span class="sourceLineNo">994</span> * @param my_class the class to find.<a name="line.994"></a> +<span class="sourceLineNo">995</span> * @return a jar file that contains the class, or null.<a name="line.995"></a> +<span class="sourceLineNo">996</span> */<a name="line.996"></a> +<span class="sourceLineNo">997</span> private static String getJar(Class<?> my_class) {<a name="line.997"></a> +<span class="sourceLineNo">998</span> String ret = null;<a name="line.998"></a> +<span class="sourceLineNo">999</span> try {<a name="line.999"></a> +<span class="sourceLineNo">1000</span> ret = JarFinder.getJar(my_class);<a name="line.1000"></a> +<span class="sourceLineNo">1001</span> } catch (Exception e) {<a name="line.1001"></a> +<span class="sourceLineNo">1002</span> // toss all other exceptions, related to reflection failure<a name="line.1002"></a> +<span class="sourceLineNo">1003</span> throw new RuntimeException("getJar invocation failed.", e);<a name="line.1003"></a> +<span class="sourceLineNo">1004</span> }<a name="line.1004"></a> +<span class="sourceLineNo">1005</span><a name="line.1005"></a> +<span class="sourceLineNo">1006</span> return ret;<a name="line.1006"></a> +<span class="sourceLineNo">1007</span> }<a name="line.1007"></a> +<span class="sourceLineNo">1008</span>}<a name="line.1008"></a> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/book.html ---------------------------------------------------------------------- diff --git a/book.html b/book.html index 2a551e5..c146003 100644 --- a/book.html +++ b/book.html @@ -32933,7 +32933,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-21 14:34:40 UTC +Last updated 2016-01-22 15:48:40 UTC </div> </div> </body> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/bulk-loads.html ---------------------------------------------------------------------- diff --git a/bulk-loads.html b/bulk-loads.html index 9b45dba..2689acf 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="20160121" /> + <meta name="Date-Revision-yyyymmdd" content="20160122" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – 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-21</li> + <li id="publishDate" class="pull-right">Last Published: 2016-01-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/checkstyle-aggregate.html ---------------------------------------------------------------------- diff --git a/checkstyle-aggregate.html b/checkstyle-aggregate.html index d4d5d23..42471e7 100644 --- a/checkstyle-aggregate.html +++ b/checkstyle-aggregate.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="20160121" /> + <meta name="Date-Revision-yyyymmdd" content="20160122" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Checkstyle Results</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -6139,12 +6139,12 @@ <td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_javadoc.html#JavadocTagContinuationIndentation">JavadocTagContinuationIndentation</a> <ul> <li>offset: <tt>"2"</tt></li></ul></td> -<td>762</td> +<td>763</td> <td><img src="images/icon_error_sml.gif" alt="" /> Error</td></tr> <tr class="b"> <td></td> <td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_javadoc.html#NonEmptyAtclauseDescription">NonEmptyAtclauseDescription</a></td> -<td>3441</td> +<td>3440</td> <td><img src="images/icon_error_sml.gif" alt="" /> Error</td></tr> <tr class="a"> <td>misc</td> @@ -14598,7 +14598,7 @@ <tr class="b"> <td><img src="images/icon_error_sml.gif" alt="" /> Error</td> <td>javadoc</td> -<td>NonEmptyAtclauseDescription</td> +<td>JavadocTagContinuationIndentation</td> <td>Javadoc comment at column 64 has parse error. Missed HTML close tag 'code'. Sometimes it means that close tag missed for one of previous tags.</td> <td><a href="./xref/org/apache/hadoop/hbase/client/HBaseAdmin.html#L1767">1767</a></td></tr> <tr class="a"> @@ -36002,49 +36002,49 @@ <td>blocks</td> <td>NeedBraces</td> <td>'if' construct must use '{}'s.</td> -<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L807">807</a></td></tr> +<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L823">823</a></td></tr> <tr class="b"> <td><img src="images/icon_error_sml.gif" alt="" /> Error</td> <td>blocks</td> <td>NeedBraces</td> <td>'if' construct must use '{}'s.</td> -<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L808">808</a></td></tr> +<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L824">824</a></td></tr> <tr class="a"> <td><img src="images/icon_error_sml.gif" alt="" /> Error</td> <td>blocks</td> <td>NeedBraces</td> <td>'if' construct must use '{}'s.</td> -<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L857">857</a></td></tr> +<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L873">873</a></td></tr> <tr class="b"> <td><img src="images/icon_error_sml.gif" alt="" /> Error</td> <td>blocks</td> <td>NeedBraces</td> <td>'if' construct must use '{}'s.</td> -<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L872">872</a></td></tr> +<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L888">888</a></td></tr> <tr class="a"> <td><img src="images/icon_error_sml.gif" alt="" /> Error</td> <td>javadoc</td> <td>NonEmptyAtclauseDescription</td> <td>At-clause should have a non-empty description.</td> -<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L888">888</a></td></tr> +<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L904">904</a></td></tr> <tr class="b"> <td><img src="images/icon_error_sml.gif" alt="" /> Error</td> <td>sizes</td> <td>LineLength</td> <td>Line is longer than 100 characters (found 101).</td> -<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L914">914</a></td></tr> +<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L930">930</a></td></tr> <tr class="a"> <td><img src="images/icon_error_sml.gif" alt="" /> Error</td> <td>blocks</td> <td>NeedBraces</td> <td>'if' construct must use '{}'s.</td> -<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L928">928</a></td></tr> +<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L944">944</a></td></tr> <tr class="b"> <td><img src="images/icon_error_sml.gif" alt="" /> Error</td> <td>javadoc</td> <td>NonEmptyAtclauseDescription</td> <td>At-clause should have a non-empty description.</td> -<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L939">939</a></td></tr></table></div> +<td><a href="./xref/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#L955">955</a></td></tr></table></div> <div class="section"> <h3 id="org.apache.hadoop.hbase.mapreduce.TableMapper.java">org/apache/hadoop/hbase/mapreduce/TableMapper.java</h3> <table border="0" class="table table-striped"> @@ -93936,7 +93936,7 @@ <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2016-01-21</li> + <li id="publishDate" class="pull-right">Last Published: 2016-01-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/coc.html ---------------------------------------------------------------------- diff --git a/coc.html b/coc.html index 5127e47..34f510d 100644 --- a/coc.html +++ b/coc.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="20160121" /> + <meta name="Date-Revision-yyyymmdd" content="20160122" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Code of Conduct Policy @@ -331,7 +331,7 @@ For flagrant violations requiring a firm response the PMC may opt to skip early <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2016-01-21</li> + <li id="publishDate" class="pull-right">Last Published: 2016-01-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/cygwin.html ---------------------------------------------------------------------- diff --git a/cygwin.html b/cygwin.html index 49bbbdc..2015e3a 100644 --- a/cygwin.html +++ b/cygwin.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="20160121" /> + <meta name="Date-Revision-yyyymmdd" content="20160122" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Installing Apache HBase (TM) on Windows using Cygwin</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -673,7 +673,7 @@ Now your <b>HBase </b>server is running, <b>start coding</b> and build that next <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2016-01-21</li> + <li id="publishDate" class="pull-right">Last Published: 2016-01-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/dependencies.html ---------------------------------------------------------------------- diff --git a/dependencies.html b/dependencies.html index ca566eb..50ed05a 100644 --- a/dependencies.html +++ b/dependencies.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="20160121" /> + <meta name="Date-Revision-yyyymmdd" content="20160122" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Dependencies</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -518,7 +518,7 @@ <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2016-01-21</li> + <li id="publishDate" class="pull-right">Last Published: 2016-01-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/dependency-convergence.html ---------------------------------------------------------------------- diff --git a/dependency-convergence.html b/dependency-convergence.html index 2151500..697564c 100644 --- a/dependency-convergence.html +++ b/dependency-convergence.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="20160121" /> + <meta name="Date-Revision-yyyymmdd" content="20160122" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Reactor Dependency Convergence</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -1593,7 +1593,7 @@ <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2016-01-21</li> + <li id="publishDate" class="pull-right">Last Published: 2016-01-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/dependency-info.html ---------------------------------------------------------------------- diff --git a/dependency-info.html b/dependency-info.html index 93fcf83..b2d328c 100644 --- a/dependency-info.html +++ b/dependency-info.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="20160121" /> + <meta name="Date-Revision-yyyymmdd" content="20160122" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Dependency Information</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -312,7 +312,7 @@ <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2016-01-21</li> + <li id="publishDate" class="pull-right">Last Published: 2016-01-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/dependency-management.html ---------------------------------------------------------------------- diff --git a/dependency-management.html b/dependency-management.html index d7c330c..c2ec39c 100644 --- a/dependency-management.html +++ b/dependency-management.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="20160121" /> + <meta name="Date-Revision-yyyymmdd" content="20160122" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Dependency Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -786,7 +786,7 @@ <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2016-01-21</li> + <li id="publishDate" class="pull-right">Last Published: 2016-01-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/devapidocs/index-all.html ---------------------------------------------------------------------- diff --git a/devapidocs/index-all.html b/devapidocs/index-all.html index 679cd96..2a1b83e 100644 --- a/devapidocs/index-all.html +++ b/devapidocs/index-all.html @@ -30017,6 +30017,8 @@ <dd> </dd> <dt><span class="strong"><a href="./org/apache/hadoop/hbase/regionserver/StoreFile.Reader.html#getLastKey()">getLastKey()</a></span> - Method in class org.apache.hadoop.hbase.regionserver.<a href="./org/apache/hadoop/hbase/regionserver/StoreFile.Reader.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFile.Reader</a></dt> <dd> </dd> +<dt><span class="strong"><a href="./org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.html#getLastKeyUpdate()">getLastKeyUpdate()</a></span> - Method in class org.apache.hadoop.hbase.security.token.<a href="./org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.html" title="class in org.apache.hadoop.hbase.security.token">AuthenticationTokenSecretManager</a></dt> +<dd> </dd> <dt><span class="strong"><a href="./org/apache/hadoop/hbase/client/Admin.html#getLastMajorCompactionTimestamp(org.apache.hadoop.hbase.TableName)">getLastMajorCompactionTimestamp(TableName)</a></span> - Method in interface org.apache.hadoop.hbase.client.<a href="./org/apache/hadoop/hbase/client/Admin.html" title="interface in org.apache.hadoop.hbase.client">Admin</a></dt> <dd> <div class="block">Get the timestamp of the last major compaction for the passed table http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/devapidocs/org/apache/hadoop/hbase/classification/class-use/InterfaceStability.Unstable.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/classification/class-use/InterfaceStability.Unstable.html b/devapidocs/org/apache/hadoop/hbase/classification/class-use/InterfaceStability.Unstable.html index 1a288a4..20f2daa 100644 --- a/devapidocs/org/apache/hadoop/hbase/classification/class-use/InterfaceStability.Unstable.html +++ b/devapidocs/org/apache/hadoop/hbase/classification/class-use/InterfaceStability.Unstable.html @@ -136,19 +136,19 @@ </tr> <tbody> <tr class="altColor"> -<td class="colFirst"><a href="../../../../../../org/apache/hadoop/hbase/http/lib/package-summary.html">org.apache.hadoop.hbase.http.lib</a></td> +<td class="colFirst"><a href="../../../../../../org/apache/hadoop/hbase/http/package-summary.html">org.apache.hadoop.hbase.http</a></td> <td class="colLast"> <div class="block"> - This package provides user-selectable (via configuration) classes that add - functionality to the web UI.</div> + Copied from hadoop source code.<br> + See https://issues.apache.org/jira/browse/HADOOP-10232 to know why.</div> </td> </tr> <tr class="rowColor"> -<td class="colFirst"><a href="../../../../../../org/apache/hadoop/hbase/http/package-summary.html">org.apache.hadoop.hbase.http</a></td> +<td class="colFirst"><a href="../../../../../../org/apache/hadoop/hbase/http/lib/package-summary.html">org.apache.hadoop.hbase.http.lib</a></td> <td class="colLast"> <div class="block"> - Copied from hadoop source code.<br> - See https://issues.apache.org/jira/browse/HADOOP-10232 to know why.</div> + This package provides user-selectable (via configuration) classes that add + functionality to the web UI.</div> </td> </tr> </tbody> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/devapidocs/org/apache/hadoop/hbase/classification/package-tree.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/classification/package-tree.html b/devapidocs/org/apache/hadoop/hbase/classification/package-tree.html index 0b4ba86..8da762a 100644 --- a/devapidocs/org/apache/hadoop/hbase/classification/package-tree.html +++ b/devapidocs/org/apache/hadoop/hbase/classification/package-tree.html @@ -80,12 +80,12 @@ </ul> <h2 title="Annotation Type Hierarchy">Annotation Type Hierarchy</h2> <ul> +<li type="circle">org.apache.hadoop.hbase.classification.<a href="../../../../../org/apache/hadoop/hbase/classification/InterfaceAudience.Public.html" title="annotation in org.apache.hadoop.hbase.classification"><span class="strong">InterfaceAudience.Public</span></a> (implements java.lang.annotation.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li> +<li type="circle">org.apache.hadoop.hbase.classification.<a href="../../../../../org/apache/hadoop/hbase/classification/InterfaceAudience.LimitedPrivate.html" title="annotation in org.apache.hadoop.hbase.classification"><span class="strong">InterfaceAudience.LimitedPrivate</span></a> (implements java.lang.annotation.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li> <li type="circle">org.apache.hadoop.hbase.classification.<a href="../../../../../org/apache/hadoop/hbase/classification/InterfaceStability.Stable.html" title="annotation in org.apache.hadoop.hbase.classification"><span class="strong">InterfaceStability.Stable</span></a> (implements java.lang.annotation.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li> <li type="circle">org.apache.hadoop.hbase.classification.<a href="../../../../../org/apache/hadoop/hbase/classification/InterfaceStability.Unstable.html" title="annotation in org.apache.hadoop.hbase.classification"><span class="strong">InterfaceStability.Unstable</span></a> (implements java.lang.annotation.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li> -<li type="circle">org.apache.hadoop.hbase.classification.<a href="../../../../../org/apache/hadoop/hbase/classification/InterfaceAudience.Public.html" title="annotation in org.apache.hadoop.hbase.classification"><span class="strong">InterfaceAudience.Public</span></a> (implements java.lang.annotation.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li> -<li type="circle">org.apache.hadoop.hbase.classification.<a href="../../../../../org/apache/hadoop/hbase/classification/InterfaceStability.Evolving.html" title="annotation in org.apache.hadoop.hbase.classification"><span class="strong">InterfaceStability.Evolving</span></a> (implements java.lang.annotation.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li> <li type="circle">org.apache.hadoop.hbase.classification.<a href="../../../../../org/apache/hadoop/hbase/classification/InterfaceAudience.Private.html" title="annotation in org.apache.hadoop.hbase.classification"><span class="strong">InterfaceAudience.Private</span></a> (implements java.lang.annotation.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li> -<li type="circle">org.apache.hadoop.hbase.classification.<a href="../../../../../org/apache/hadoop/hbase/classification/InterfaceAudience.LimitedPrivate.html" title="annotation in org.apache.hadoop.hbase.classification"><span class="strong">InterfaceAudience.LimitedPrivate</span></a> (implements java.lang.annotation.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li> +<li type="circle">org.apache.hadoop.hbase.classification.<a href="../../../../../org/apache/hadoop/hbase/classification/InterfaceStability.Evolving.html" title="annotation in org.apache.hadoop.hbase.classification"><span class="strong">InterfaceStability.Evolving</span></a> (implements java.lang.annotation.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/29e33858/devapidocs/org/apache/hadoop/hbase/client/package-tree.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/client/package-tree.html b/devapidocs/org/apache/hadoop/hbase/client/package-tree.html index b7953b7..2f11f69 100644 --- a/devapidocs/org/apache/hadoop/hbase/client/package-tree.html +++ b/devapidocs/org/apache/hadoop/hbase/client/package-tree.html @@ -389,12 +389,12 @@ <ul> <li type="circle">java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="strong">Enum</span></a><E> (implements java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><T>, java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>) <ul> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TableState.State.html" title="enum in org.apache.hadoop.hbase.client"><span class="strong">TableState.State</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/IsolationLevel.html" title="enum in org.apache.hadoop.hbase.client"><span class="strong">IsolationLevel</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Durability.html" title="enum in org.apache.hadoop.hbase.client"><span class="strong">Durability</span></a></li> <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Admin.CompactType.html" title="enum in org.apache.hadoop.hbase.client"><span class="strong">Admin.CompactType</span></a></li> <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Consistency.html" title="enum in org.apache.hadoop.hbase.client"><span class="strong">Consistency</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TableState.State.html" title="enum in org.apache.hadoop.hbase.client"><span class="strong">TableState.State</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Durability.html" title="enum in org.apache.hadoop.hbase.client"><span class="strong">Durability</span></a></li> <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncProcess.Retry.html" title="enum in org.apache.hadoop.hbase.client"><span class="strong">AsyncProcess.Retry</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/IsolationLevel.html" title="enum in org.apache.hadoop.hbase.client"><span class="strong">IsolationLevel</span></a></li> </ul> </li> </ul>
