hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [13/51] [partial] hbase-site git commit: Published site at .
Date Wed, 30 Aug 2017 15:13:59 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/0d6dd914/devapidocs/src-html/org/apache/hadoop/hbase/mapreduce/ExportUtils.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/mapreduce/ExportUtils.html b/devapidocs/src-html/org/apache/hadoop/hbase/mapreduce/ExportUtils.html
new file mode 100644
index 0000000..67a0c84
--- /dev/null
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/mapreduce/ExportUtils.html
@@ -0,0 +1,247 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> *<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * or more contributor license agreements.  See the NOTICE file<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * distributed with this work for additional information<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * to you under the Apache License, Version 2.0 (the<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * "License"); you may not use this file except in compliance<a name="line.8"></a>
+<span class="sourceLineNo">009</span> * with the License.  You may obtain a copy of the License at<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.11"></a>
+<span class="sourceLineNo">012</span> *<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * Unless required by applicable law or agreed to in writing, software<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * See the License for the specific language governing permissions and<a name="line.16"></a>
+<span class="sourceLineNo">017</span> * limitations under the License.<a name="line.17"></a>
+<span class="sourceLineNo">018</span> */<a name="line.18"></a>
+<span class="sourceLineNo">019</span>package org.apache.hadoop.hbase.mapreduce;<a name="line.19"></a>
+<span class="sourceLineNo">020</span><a name="line.20"></a>
+<span class="sourceLineNo">021</span>import java.io.IOException;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.util.Arrays;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.util.List;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.commons.logging.Log;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.commons.logging.LogFactory;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.hadoop.conf.Configuration;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.hadoop.fs.Path;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.HConstants;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.TableName;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.classification.InterfaceAudience;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.client.Scan;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.filter.CompareFilter;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.filter.Filter;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.filter.IncompatibleFilterException;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.filter.PrefixFilter;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.filter.RegexStringComparator;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.filter.RowFilter;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.security.visibility.Authorizations;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.shaded.com.google.common.annotations.VisibleForTesting;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.util.Triple;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;<a name="line.42"></a>
+<span class="sourceLineNo">043</span><a name="line.43"></a>
+<span class="sourceLineNo">044</span>/**<a name="line.44"></a>
+<span class="sourceLineNo">045</span> * Some helper methods are used by {@link org.apache.hadoop.hbase.mapreduce.Export}<a name="line.45"></a>
+<span class="sourceLineNo">046</span> * and org.apache.hadoop.hbase.coprocessor.Export (in hbase-endpooint).<a name="line.46"></a>
+<span class="sourceLineNo">047</span> */<a name="line.47"></a>
+<span class="sourceLineNo">048</span>@InterfaceAudience.Private<a name="line.48"></a>
+<span class="sourceLineNo">049</span>public final class ExportUtils {<a name="line.49"></a>
+<span class="sourceLineNo">050</span>  private static final Log LOG = LogFactory.getLog(ExportUtils.class);<a name="line.50"></a>
+<span class="sourceLineNo">051</span>  public static final String RAW_SCAN = "hbase.mapreduce.include.deleted.rows";<a name="line.51"></a>
+<span class="sourceLineNo">052</span>  public static final String EXPORT_BATCHING = "hbase.export.scanner.batch";<a name="line.52"></a>
+<span class="sourceLineNo">053</span>  public static final String EXPORT_CACHING = "hbase.export.scanner.caching";<a name="line.53"></a>
+<span class="sourceLineNo">054</span>  public static final String EXPORT_VISIBILITY_LABELS = "hbase.export.visibility.labels";<a name="line.54"></a>
+<span class="sourceLineNo">055</span>  /**<a name="line.55"></a>
+<span class="sourceLineNo">056</span>   * Common usage for other export tools.<a name="line.56"></a>
+<span class="sourceLineNo">057</span>   * @param errorMsg Error message.  Can be null.<a name="line.57"></a>
+<span class="sourceLineNo">058</span>   */<a name="line.58"></a>
+<span class="sourceLineNo">059</span>  public static void usage(final String errorMsg) {<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    if (errorMsg != null &amp;&amp; errorMsg.length() &gt; 0) {<a name="line.60"></a>
+<span class="sourceLineNo">061</span>      System.err.println("ERROR: " + errorMsg);<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    }<a name="line.62"></a>
+<span class="sourceLineNo">063</span>    System.err.println("Usage: Export [-D &lt;property=value&gt;]* &lt;tablename&gt; &lt;outputdir&gt; [&lt;versions&gt; " +<a name="line.63"></a>
+<span class="sourceLineNo">064</span>      "[&lt;starttime&gt; [&lt;endtime&gt;]] [^[regex pattern] or [Prefix] to filter]]\n");<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    System.err.println("  Note: -D properties will be applied to the conf used. ");<a name="line.65"></a>
+<span class="sourceLineNo">066</span>    System.err.println("  For example: ");<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    System.err.println("   -D " + FileOutputFormat.COMPRESS + "=true");<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    System.err.println("   -D " + FileOutputFormat.COMPRESS_CODEC + "=org.apache.hadoop.io.compress.GzipCodec");<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    System.err.println("   -D " + FileOutputFormat.COMPRESS_TYPE + "=BLOCK");<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    System.err.println("  Additionally, the following SCAN properties can be specified");<a name="line.70"></a>
+<span class="sourceLineNo">071</span>    System.err.println("  to control/limit what is exported..");<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    System.err.println("   -D " + TableInputFormat.SCAN_COLUMN_FAMILY + "=&lt;family1&gt;,&lt;family2&gt;, ...");<a name="line.72"></a>
+<span class="sourceLineNo">073</span>    System.err.println("   -D " + RAW_SCAN + "=true");<a name="line.73"></a>
+<span class="sourceLineNo">074</span>    System.err.println("   -D " + TableInputFormat.SCAN_ROW_START + "=&lt;ROWSTART&gt;");<a name="line.74"></a>
+<span class="sourceLineNo">075</span>    System.err.println("   -D " + TableInputFormat.SCAN_ROW_STOP + "=&lt;ROWSTOP&gt;");<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    System.err.println("   -D " + HConstants.HBASE_CLIENT_SCANNER_CACHING + "=100");<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    System.err.println("   -D " + EXPORT_VISIBILITY_LABELS + "=&lt;labels&gt;");<a name="line.77"></a>
+<span class="sourceLineNo">078</span>    System.err.println("For tables with very wide rows consider setting the batch size as below:\n"<a name="line.78"></a>
+<span class="sourceLineNo">079</span>            + "   -D " + EXPORT_BATCHING + "=10\n"<a name="line.79"></a>
+<span class="sourceLineNo">080</span>            + "   -D " + EXPORT_CACHING + "=100");<a name="line.80"></a>
+<span class="sourceLineNo">081</span>  }<a name="line.81"></a>
+<span class="sourceLineNo">082</span><a name="line.82"></a>
+<span class="sourceLineNo">083</span>  private static Filter getExportFilter(String[] args) {<a name="line.83"></a>
+<span class="sourceLineNo">084</span>    Filter exportFilter;<a name="line.84"></a>
+<span class="sourceLineNo">085</span>    String filterCriteria = (args.length &gt; 5) ? args[5]: null;<a name="line.85"></a>
+<span class="sourceLineNo">086</span>    if (filterCriteria == null) return null;<a name="line.86"></a>
+<span class="sourceLineNo">087</span>    if (filterCriteria.startsWith("^")) {<a name="line.87"></a>
+<span class="sourceLineNo">088</span>      String regexPattern = filterCriteria.substring(1, filterCriteria.length());<a name="line.88"></a>
+<span class="sourceLineNo">089</span>      exportFilter = new RowFilter(CompareFilter.CompareOp.EQUAL, new RegexStringComparator(regexPattern));<a name="line.89"></a>
+<span class="sourceLineNo">090</span>    } else {<a name="line.90"></a>
+<span class="sourceLineNo">091</span>      exportFilter = new PrefixFilter(Bytes.toBytesBinary(filterCriteria));<a name="line.91"></a>
+<span class="sourceLineNo">092</span>    }<a name="line.92"></a>
+<span class="sourceLineNo">093</span>    return exportFilter;<a name="line.93"></a>
+<span class="sourceLineNo">094</span>  }<a name="line.94"></a>
+<span class="sourceLineNo">095</span><a name="line.95"></a>
+<span class="sourceLineNo">096</span>  public static boolean isValidArguements(String[] args) {<a name="line.96"></a>
+<span class="sourceLineNo">097</span>    return args != null &amp;&amp; args.length &gt;= 2;<a name="line.97"></a>
+<span class="sourceLineNo">098</span>  }<a name="line.98"></a>
+<span class="sourceLineNo">099</span><a name="line.99"></a>
+<span class="sourceLineNo">100</span>  public static Triple&lt;TableName, Scan, Path&gt; getArgumentsFromCommandLine(<a name="line.100"></a>
+<span class="sourceLineNo">101</span>          Configuration conf, String[] args) throws IOException {<a name="line.101"></a>
+<span class="sourceLineNo">102</span>    if (!isValidArguements(args)) {<a name="line.102"></a>
+<span class="sourceLineNo">103</span>      return null;<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    }<a name="line.104"></a>
+<span class="sourceLineNo">105</span>    return new Triple&lt;&gt;(TableName.valueOf(args[0]), getScanFromCommandLine(conf, args), new Path(args[1]));<a name="line.105"></a>
+<span class="sourceLineNo">106</span>  }<a name="line.106"></a>
+<span class="sourceLineNo">107</span><a name="line.107"></a>
+<span class="sourceLineNo">108</span>  @VisibleForTesting<a name="line.108"></a>
+<span class="sourceLineNo">109</span>  static Scan getScanFromCommandLine(Configuration conf, String[] args) throws IOException {<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    Scan s = new Scan();<a name="line.110"></a>
+<span class="sourceLineNo">111</span>    // Optional arguments.<a name="line.111"></a>
+<span class="sourceLineNo">112</span>    // Set Scan Versions<a name="line.112"></a>
+<span class="sourceLineNo">113</span>    int versions = args.length &gt; 2? Integer.parseInt(args[2]): 1;<a name="line.113"></a>
+<span class="sourceLineNo">114</span>    s.setMaxVersions(versions);<a name="line.114"></a>
+<span class="sourceLineNo">115</span>    // Set Scan Range<a name="line.115"></a>
+<span class="sourceLineNo">116</span>    long startTime = args.length &gt; 3? Long.parseLong(args[3]): 0L;<a name="line.116"></a>
+<span class="sourceLineNo">117</span>    long endTime = args.length &gt; 4? Long.parseLong(args[4]): Long.MAX_VALUE;<a name="line.117"></a>
+<span class="sourceLineNo">118</span>    s.setTimeRange(startTime, endTime);<a name="line.118"></a>
+<span class="sourceLineNo">119</span>    // Set cache blocks<a name="line.119"></a>
+<span class="sourceLineNo">120</span>    s.setCacheBlocks(false);<a name="line.120"></a>
+<span class="sourceLineNo">121</span>    // set Start and Stop row<a name="line.121"></a>
+<span class="sourceLineNo">122</span>    if (conf.get(TableInputFormat.SCAN_ROW_START) != null) {<a name="line.122"></a>
+<span class="sourceLineNo">123</span>      s.setStartRow(Bytes.toBytesBinary(conf.get(TableInputFormat.SCAN_ROW_START)));<a name="line.123"></a>
+<span class="sourceLineNo">124</span>    }<a name="line.124"></a>
+<span class="sourceLineNo">125</span>    if (conf.get(TableInputFormat.SCAN_ROW_STOP) != null) {<a name="line.125"></a>
+<span class="sourceLineNo">126</span>      s.setStopRow(Bytes.toBytesBinary(conf.get(TableInputFormat.SCAN_ROW_STOP)));<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    }<a name="line.127"></a>
+<span class="sourceLineNo">128</span>    // Set Scan Column Family<a name="line.128"></a>
+<span class="sourceLineNo">129</span>    boolean raw = Boolean.parseBoolean(conf.get(RAW_SCAN));<a name="line.129"></a>
+<span class="sourceLineNo">130</span>    if (raw) {<a name="line.130"></a>
+<span class="sourceLineNo">131</span>      s.setRaw(raw);<a name="line.131"></a>
+<span class="sourceLineNo">132</span>    }<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    for (String columnFamily : conf.getTrimmedStrings(TableInputFormat.SCAN_COLUMN_FAMILY)) {<a name="line.133"></a>
+<span class="sourceLineNo">134</span>      s.addFamily(Bytes.toBytes(columnFamily));<a name="line.134"></a>
+<span class="sourceLineNo">135</span>    }<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    // Set RowFilter or Prefix Filter if applicable.<a name="line.136"></a>
+<span class="sourceLineNo">137</span>    Filter exportFilter = getExportFilter(args);<a name="line.137"></a>
+<span class="sourceLineNo">138</span>    if (exportFilter!= null) {<a name="line.138"></a>
+<span class="sourceLineNo">139</span>        LOG.info("Setting Scan Filter for Export.");<a name="line.139"></a>
+<span class="sourceLineNo">140</span>      s.setFilter(exportFilter);<a name="line.140"></a>
+<span class="sourceLineNo">141</span>    }<a name="line.141"></a>
+<span class="sourceLineNo">142</span>    List&lt;String&gt; labels = null;<a name="line.142"></a>
+<span class="sourceLineNo">143</span>    if (conf.get(EXPORT_VISIBILITY_LABELS) != null) {<a name="line.143"></a>
+<span class="sourceLineNo">144</span>      labels = Arrays.asList(conf.getStrings(EXPORT_VISIBILITY_LABELS));<a name="line.144"></a>
+<span class="sourceLineNo">145</span>      if (!labels.isEmpty()) {<a name="line.145"></a>
+<span class="sourceLineNo">146</span>        s.setAuthorizations(new Authorizations(labels));<a name="line.146"></a>
+<span class="sourceLineNo">147</span>      }<a name="line.147"></a>
+<span class="sourceLineNo">148</span>    }<a name="line.148"></a>
+<span class="sourceLineNo">149</span><a name="line.149"></a>
+<span class="sourceLineNo">150</span>    int batching = conf.getInt(EXPORT_BATCHING, -1);<a name="line.150"></a>
+<span class="sourceLineNo">151</span>    if (batching != -1) {<a name="line.151"></a>
+<span class="sourceLineNo">152</span>      try {<a name="line.152"></a>
+<span class="sourceLineNo">153</span>        s.setBatch(batching);<a name="line.153"></a>
+<span class="sourceLineNo">154</span>      } catch (IncompatibleFilterException e) {<a name="line.154"></a>
+<span class="sourceLineNo">155</span>        LOG.error("Batching could not be set", e);<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>    int caching = conf.getInt(EXPORT_CACHING, 100);<a name="line.159"></a>
+<span class="sourceLineNo">160</span>    if (caching != -1) {<a name="line.160"></a>
+<span class="sourceLineNo">161</span>      try {<a name="line.161"></a>
+<span class="sourceLineNo">162</span>        s.setCaching(caching);<a name="line.162"></a>
+<span class="sourceLineNo">163</span>      } catch (IncompatibleFilterException e) {<a name="line.163"></a>
+<span class="sourceLineNo">164</span>        LOG.error("Caching could not be set", e);<a name="line.164"></a>
+<span class="sourceLineNo">165</span>      }<a name="line.165"></a>
+<span class="sourceLineNo">166</span>    }<a name="line.166"></a>
+<span class="sourceLineNo">167</span>    LOG.info("versions=" + versions + ", starttime=" + startTime<a name="line.167"></a>
+<span class="sourceLineNo">168</span>      + ", endtime=" + endTime + ", keepDeletedCells=" + raw<a name="line.168"></a>
+<span class="sourceLineNo">169</span>      + ", visibility labels=" + labels);<a name="line.169"></a>
+<span class="sourceLineNo">170</span>    return s;<a name="line.170"></a>
+<span class="sourceLineNo">171</span>  }<a name="line.171"></a>
+<span class="sourceLineNo">172</span><a name="line.172"></a>
+<span class="sourceLineNo">173</span>  private ExportUtils() {<a name="line.173"></a>
+<span class="sourceLineNo">174</span>  }<a name="line.174"></a>
+<span class="sourceLineNo">175</span>}<a name="line.175"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/0d6dd914/devapidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html b/devapidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html
index 2601f00..cf52a79 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html
@@ -792,247 +792,249 @@
 <span class="sourceLineNo">784</span>      org.apache.hadoop.hbase.protobuf.generated.ClientProtos.class, // hbase-protocol<a name="line.784"></a>
 <span class="sourceLineNo">785</span>      org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.class, // hbase-protocol-shaded<a name="line.785"></a>
 <span class="sourceLineNo">786</span>      org.apache.hadoop.hbase.client.Put.class,                      // hbase-client<a name="line.786"></a>
-<span class="sourceLineNo">787</span>      org.apache.hadoop.hbase.CompatibilityFactory.class,            // hbase-hadoop-compat<a name="line.787"></a>
-<span class="sourceLineNo">788</span>      org.apache.hadoop.hbase.mapreduce.JobUtil.class,               // hbase-hadoop2-compat<a name="line.788"></a>
-<span class="sourceLineNo">789</span>      org.apache.hadoop.hbase.mapreduce.TableMapper.class,           // hbase-server<a name="line.789"></a>
-<span class="sourceLineNo">790</span>      org.apache.hadoop.hbase.metrics.impl.FastLongHistogram.class,  // hbase-metrics<a name="line.790"></a>
-<span class="sourceLineNo">791</span>      org.apache.hadoop.hbase.metrics.Snapshot.class,                // hbase-metrics-api<a name="line.791"></a>
-<span class="sourceLineNo">792</span>      prefixTreeCodecClass, //  hbase-prefix-tree (if null will be skipped)<a name="line.792"></a>
-<span class="sourceLineNo">793</span>      // pull necessary dependencies<a name="line.793"></a>
-<span class="sourceLineNo">794</span>      org.apache.zookeeper.ZooKeeper.class,<a name="line.794"></a>
-<span class="sourceLineNo">795</span>      org.apache.hadoop.hbase.shaded.io.netty.channel.Channel.class,<a name="line.795"></a>
-<span class="sourceLineNo">796</span>      com.google.protobuf.Message.class,<a name="line.796"></a>
-<span class="sourceLineNo">797</span>      org.apache.hadoop.hbase.shaded.com.google.common.collect.Lists.class,<a name="line.797"></a>
-<span class="sourceLineNo">798</span>      org.apache.htrace.Trace.class,<a name="line.798"></a>
-<span class="sourceLineNo">799</span>      com.codahale.metrics.MetricRegistry.class);<a name="line.799"></a>
-<span class="sourceLineNo">800</span>  }<a name="line.800"></a>
-<span class="sourceLineNo">801</span><a name="line.801"></a>
-<span class="sourceLineNo">802</span>  /**<a name="line.802"></a>
-<span class="sourceLineNo">803</span>   * Returns a classpath string built from the content of the "tmpjars" value in {@code conf}.<a name="line.803"></a>
-<span class="sourceLineNo">804</span>   * Also exposed to shell scripts via `bin/hbase mapredcp`.<a name="line.804"></a>
-<span class="sourceLineNo">805</span>   */<a name="line.805"></a>
-<span class="sourceLineNo">806</span>  public static String buildDependencyClasspath(Configuration conf) {<a name="line.806"></a>
-<span class="sourceLineNo">807</span>    if (conf == null) {<a name="line.807"></a>
-<span class="sourceLineNo">808</span>      throw new IllegalArgumentException("Must provide a configuration object.");<a name="line.808"></a>
-<span class="sourceLineNo">809</span>    }<a name="line.809"></a>
-<span class="sourceLineNo">810</span>    Set&lt;String&gt; paths = new HashSet&lt;&gt;(conf.getStringCollection("tmpjars"));<a name="line.810"></a>
-<span class="sourceLineNo">811</span>    if (paths.isEmpty()) {<a name="line.811"></a>
-<span class="sourceLineNo">812</span>      throw new IllegalArgumentException("Configuration contains no tmpjars.");<a name="line.812"></a>
-<span class="sourceLineNo">813</span>    }<a name="line.813"></a>
-<span class="sourceLineNo">814</span>    StringBuilder sb = new StringBuilder();<a name="line.814"></a>
-<span class="sourceLineNo">815</span>    for (String s : paths) {<a name="line.815"></a>
-<span class="sourceLineNo">816</span>      // entries can take the form 'file:/path/to/file.jar'.<a name="line.816"></a>
-<span class="sourceLineNo">817</span>      int idx = s.indexOf(":");<a name="line.817"></a>
-<span class="sourceLineNo">818</span>      if (idx != -1) s = s.substring(idx + 1);<a name="line.818"></a>
-<span class="sourceLineNo">819</span>      if (sb.length() &gt; 0) sb.append(File.pathSeparator);<a name="line.819"></a>
-<span class="sourceLineNo">820</span>      sb.append(s);<a name="line.820"></a>
-<span class="sourceLineNo">821</span>    }<a name="line.821"></a>
-<span class="sourceLineNo">822</span>    return sb.toString();<a name="line.822"></a>
-<span class="sourceLineNo">823</span>  }<a name="line.823"></a>
-<span class="sourceLineNo">824</span><a name="line.824"></a>
-<span class="sourceLineNo">825</span>  /**<a name="line.825"></a>
-<span class="sourceLineNo">826</span>   * Add the HBase dependency jars as well as jars for any of the configured<a name="line.826"></a>
-<span class="sourceLineNo">827</span>   * job classes to the job configuration, so that JobClient will ship them<a name="line.827"></a>
-<span class="sourceLineNo">828</span>   * to the cluster and add them to the DistributedCache.<a name="line.828"></a>
-<span class="sourceLineNo">829</span>   */<a name="line.829"></a>
-<span class="sourceLineNo">830</span>  public static void addDependencyJars(Job job) throws IOException {<a name="line.830"></a>
-<span class="sourceLineNo">831</span>    addHBaseDependencyJars(job.getConfiguration());<a name="line.831"></a>
-<span class="sourceLineNo">832</span>    try {<a name="line.832"></a>
-<span class="sourceLineNo">833</span>      addDependencyJarsForClasses(job.getConfiguration(),<a name="line.833"></a>
-<span class="sourceLineNo">834</span>          // when making changes here, consider also mapred.TableMapReduceUtil<a name="line.834"></a>
-<span class="sourceLineNo">835</span>          // pull job classes<a name="line.835"></a>
-<span class="sourceLineNo">836</span>          job.getMapOutputKeyClass(),<a name="line.836"></a>
-<span class="sourceLineNo">837</span>          job.getMapOutputValueClass(),<a name="line.837"></a>
-<span class="sourceLineNo">838</span>          job.getInputFormatClass(),<a name="line.838"></a>
-<span class="sourceLineNo">839</span>          job.getOutputKeyClass(),<a name="line.839"></a>
-<span class="sourceLineNo">840</span>          job.getOutputValueClass(),<a name="line.840"></a>
-<span class="sourceLineNo">841</span>          job.getOutputFormatClass(),<a name="line.841"></a>
-<span class="sourceLineNo">842</span>          job.getPartitionerClass(),<a name="line.842"></a>
-<span class="sourceLineNo">843</span>          job.getCombinerClass());<a name="line.843"></a>
-<span class="sourceLineNo">844</span>    } catch (ClassNotFoundException e) {<a name="line.844"></a>
-<span class="sourceLineNo">845</span>      throw new IOException(e);<a name="line.845"></a>
-<span class="sourceLineNo">846</span>    }<a name="line.846"></a>
-<span class="sourceLineNo">847</span>  }<a name="line.847"></a>
-<span class="sourceLineNo">848</span><a name="line.848"></a>
-<span class="sourceLineNo">849</span>  /**<a name="line.849"></a>
-<span class="sourceLineNo">850</span>   * Add the jars containing the given classes to the job's configuration<a name="line.850"></a>
-<span class="sourceLineNo">851</span>   * such that JobClient will ship them to the cluster and add them to<a name="line.851"></a>
-<span class="sourceLineNo">852</span>   * the DistributedCache.<a name="line.852"></a>
-<span class="sourceLineNo">853</span>   * @deprecated rely on {@link #addDependencyJars(Job)} instead.<a name="line.853"></a>
-<span class="sourceLineNo">854</span>   */<a name="line.854"></a>
-<span class="sourceLineNo">855</span>  @Deprecated<a name="line.855"></a>
-<span class="sourceLineNo">856</span>  public static void addDependencyJars(Configuration conf,<a name="line.856"></a>
-<span class="sourceLineNo">857</span>      Class&lt;?&gt;... classes) throws IOException {<a name="line.857"></a>
-<span class="sourceLineNo">858</span>    LOG.warn("The addDependencyJars(Configuration, Class&lt;?&gt;...) method has been deprecated since it"<a name="line.858"></a>
-<span class="sourceLineNo">859</span>             + " is easy to use incorrectly. Most users should rely on addDependencyJars(Job) " +<a name="line.859"></a>
-<span class="sourceLineNo">860</span>             "instead. See HBASE-8386 for more details.");<a name="line.860"></a>
-<span class="sourceLineNo">861</span>    addDependencyJarsForClasses(conf, classes);<a name="line.861"></a>
-<span class="sourceLineNo">862</span>  }<a name="line.862"></a>
-<span class="sourceLineNo">863</span><a name="line.863"></a>
-<span class="sourceLineNo">864</span>  /**<a name="line.864"></a>
-<span class="sourceLineNo">865</span>   * Add the jars containing the given classes to the job's configuration<a name="line.865"></a>
-<span class="sourceLineNo">866</span>   * such that JobClient will ship them to the cluster and add them to<a name="line.866"></a>
-<span class="sourceLineNo">867</span>   * the DistributedCache.<a name="line.867"></a>
-<span class="sourceLineNo">868</span>   *<a name="line.868"></a>
-<span class="sourceLineNo">869</span>   * N.B. that this method at most adds one jar per class given. If there is more than one<a name="line.869"></a>
-<span class="sourceLineNo">870</span>   * jar available containing a class with the same name as a given class, we don't define<a name="line.870"></a>
-<span class="sourceLineNo">871</span>   * which of those jars might be chosen.<a name="line.871"></a>
-<span class="sourceLineNo">872</span>   *<a name="line.872"></a>
-<span class="sourceLineNo">873</span>   * @param conf The Hadoop Configuration to modify<a name="line.873"></a>
-<span class="sourceLineNo">874</span>   * @param classes will add just those dependencies needed to find the given classes<a name="line.874"></a>
-<span class="sourceLineNo">875</span>   * @throws IOException if an underlying library call fails.<a name="line.875"></a>
-<span class="sourceLineNo">876</span>   */<a name="line.876"></a>
-<span class="sourceLineNo">877</span>  @InterfaceAudience.Private<a name="line.877"></a>
-<span class="sourceLineNo">878</span>  public static void addDependencyJarsForClasses(Configuration conf,<a name="line.878"></a>
-<span class="sourceLineNo">879</span>      Class&lt;?&gt;... classes) throws IOException {<a name="line.879"></a>
-<span class="sourceLineNo">880</span><a name="line.880"></a>
-<span class="sourceLineNo">881</span>    FileSystem localFs = FileSystem.getLocal(conf);<a name="line.881"></a>
-<span class="sourceLineNo">882</span>    Set&lt;String&gt; jars = new HashSet&lt;&gt;();<a name="line.882"></a>
-<span class="sourceLineNo">883</span>    // Add jars that are already in the tmpjars variable<a name="line.883"></a>
-<span class="sourceLineNo">884</span>    jars.addAll(conf.getStringCollection("tmpjars"));<a name="line.884"></a>
-<span class="sourceLineNo">885</span><a name="line.885"></a>
-<span class="sourceLineNo">886</span>    // add jars as we find them to a map of contents jar name so that we can avoid<a name="line.886"></a>
-<span class="sourceLineNo">887</span>    // creating new jars for classes that have already been packaged.<a name="line.887"></a>
-<span class="sourceLineNo">888</span>    Map&lt;String, String&gt; packagedClasses = new HashMap&lt;&gt;();<a name="line.888"></a>
-<span class="sourceLineNo">889</span><a name="line.889"></a>
-<span class="sourceLineNo">890</span>    // Add jars containing the specified classes<a name="line.890"></a>
-<span class="sourceLineNo">891</span>    for (Class&lt;?&gt; clazz : classes) {<a name="line.891"></a>
-<span class="sourceLineNo">892</span>      if (clazz == null) continue;<a name="line.892"></a>
-<span class="sourceLineNo">893</span><a name="line.893"></a>
-<span class="sourceLineNo">894</span>      Path path = findOrCreateJar(clazz, localFs, packagedClasses);<a name="line.894"></a>
-<span class="sourceLineNo">895</span>      if (path == null) {<a name="line.895"></a>
-<span class="sourceLineNo">896</span>        LOG.warn("Could not find jar for class " + clazz +<a name="line.896"></a>
-<span class="sourceLineNo">897</span>                 " in order to ship it to the cluster.");<a name="line.897"></a>
-<span class="sourceLineNo">898</span>        continue;<a name="line.898"></a>
-<span class="sourceLineNo">899</span>      }<a name="line.899"></a>
-<span class="sourceLineNo">900</span>      if (!localFs.exists(path)) {<a name="line.900"></a>
-<span class="sourceLineNo">901</span>        LOG.warn("Could not validate jar file " + path + " for class "<a name="line.901"></a>
-<span class="sourceLineNo">902</span>                 + clazz);<a name="line.902"></a>
-<span class="sourceLineNo">903</span>        continue;<a name="line.903"></a>
-<span class="sourceLineNo">904</span>      }<a name="line.904"></a>
-<span class="sourceLineNo">905</span>      jars.add(path.toString());<a name="line.905"></a>
-<span class="sourceLineNo">906</span>    }<a name="line.906"></a>
-<span class="sourceLineNo">907</span>    if (jars.isEmpty()) return;<a name="line.907"></a>
-<span class="sourceLineNo">908</span><a name="line.908"></a>
-<span class="sourceLineNo">909</span>    conf.set("tmpjars", StringUtils.arrayToString(jars.toArray(new String[jars.size()])));<a name="line.909"></a>
-<span class="sourceLineNo">910</span>  }<a name="line.910"></a>
-<span class="sourceLineNo">911</span><a name="line.911"></a>
-<span class="sourceLineNo">912</span>  /**<a name="line.912"></a>
-<span class="sourceLineNo">913</span>   * Finds the Jar for a class or creates it if it doesn't exist. If the class is in<a name="line.913"></a>
-<span class="sourceLineNo">914</span>   * a directory in the classpath, it creates a Jar on the fly with the<a name="line.914"></a>
-<span class="sourceLineNo">915</span>   * contents of the directory and returns the path to that Jar. If a Jar is<a name="line.915"></a>
-<span class="sourceLineNo">916</span>   * created, it is created in the system temporary directory. Otherwise,<a name="line.916"></a>
-<span class="sourceLineNo">917</span>   * returns an existing jar that contains a class of the same name. Maintains<a name="line.917"></a>
-<span class="sourceLineNo">918</span>   * a mapping from jar contents to the tmp jar created.<a name="line.918"></a>
-<span class="sourceLineNo">919</span>   * @param my_class the class to find.<a name="line.919"></a>
-<span class="sourceLineNo">920</span>   * @param fs the FileSystem with which to qualify the returned path.<a name="line.920"></a>
-<span class="sourceLineNo">921</span>   * @param packagedClasses a map of class name to path.<a name="line.921"></a>
-<span class="sourceLineNo">922</span>   * @return a jar file that contains the class.<a name="line.922"></a>
-<span class="sourceLineNo">923</span>   * @throws IOException<a name="line.923"></a>
-<span class="sourceLineNo">924</span>   */<a name="line.924"></a>
-<span class="sourceLineNo">925</span>  private static Path findOrCreateJar(Class&lt;?&gt; my_class, FileSystem fs,<a name="line.925"></a>
-<span class="sourceLineNo">926</span>      Map&lt;String, String&gt; packagedClasses)<a name="line.926"></a>
-<span class="sourceLineNo">927</span>  throws IOException {<a name="line.927"></a>
-<span class="sourceLineNo">928</span>    // attempt to locate an existing jar for the class.<a name="line.928"></a>
-<span class="sourceLineNo">929</span>    String jar = findContainingJar(my_class, packagedClasses);<a name="line.929"></a>
-<span class="sourceLineNo">930</span>    if (null == jar || jar.isEmpty()) {<a name="line.930"></a>
-<span class="sourceLineNo">931</span>      jar = getJar(my_class);<a name="line.931"></a>
-<span class="sourceLineNo">932</span>      updateMap(jar, packagedClasses);<a name="line.932"></a>
-<span class="sourceLineNo">933</span>    }<a name="line.933"></a>
-<span class="sourceLineNo">934</span><a name="line.934"></a>
-<span class="sourceLineNo">935</span>    if (null == jar || jar.isEmpty()) {<a name="line.935"></a>
-<span class="sourceLineNo">936</span>      return null;<a name="line.936"></a>
-<span class="sourceLineNo">937</span>    }<a name="line.937"></a>
-<span class="sourceLineNo">938</span><a name="line.938"></a>
-<span class="sourceLineNo">939</span>    LOG.debug(String.format("For class %s, using jar %s", my_class.getName(), jar));<a name="line.939"></a>
-<span class="sourceLineNo">940</span>    return new Path(jar).makeQualified(fs);<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>  /**<a name="line.943"></a>
-<span class="sourceLineNo">944</span>   * Add entries to &lt;code&gt;packagedClasses&lt;/code&gt; corresponding to class files<a name="line.944"></a>
-<span class="sourceLineNo">945</span>   * contained in &lt;code&gt;jar&lt;/code&gt;.<a name="line.945"></a>
-<span class="sourceLineNo">946</span>   * @param jar The jar who's content to list.<a name="line.946"></a>
-<span class="sourceLineNo">947</span>   * @param packagedClasses map[class -&gt; jar]<a name="line.947"></a>
-<span class="sourceLineNo">948</span>   */<a name="line.948"></a>
-<span class="sourceLineNo">949</span>  private static void updateMap(String jar, Map&lt;String, String&gt; packagedClasses) throws IOException {<a name="line.949"></a>
-<span class="sourceLineNo">950</span>    if (null == jar || jar.isEmpty()) {<a name="line.950"></a>
-<span class="sourceLineNo">951</span>      return;<a name="line.951"></a>
-<span class="sourceLineNo">952</span>    }<a name="line.952"></a>
-<span class="sourceLineNo">953</span>    ZipFile zip = null;<a name="line.953"></a>
-<span class="sourceLineNo">954</span>    try {<a name="line.954"></a>
-<span class="sourceLineNo">955</span>      zip = new ZipFile(jar);<a name="line.955"></a>
-<span class="sourceLineNo">956</span>      for (Enumeration&lt;? extends ZipEntry&gt; iter = zip.entries(); iter.hasMoreElements();) {<a name="line.956"></a>
-<span class="sourceLineNo">957</span>        ZipEntry entry = iter.nextElement();<a name="line.957"></a>
-<span class="sourceLineNo">958</span>        if (entry.getName().endsWith("class")) {<a name="line.958"></a>
-<span class="sourceLineNo">959</span>          packagedClasses.put(entry.getName(), jar);<a name="line.959"></a>
-<span class="sourceLineNo">960</span>        }<a name="line.960"></a>
-<span class="sourceLineNo">961</span>      }<a name="line.961"></a>
-<span class="sourceLineNo">962</span>    } finally {<a name="line.962"></a>
-<span class="sourceLineNo">963</span>      if (null != zip) zip.close();<a name="line.963"></a>
-<span class="sourceLineNo">964</span>    }<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>   * Find a jar that contains a class of the same name, if any. It will return<a name="line.968"></a>
-<span class="sourceLineNo">969</span>   * a jar file, even if that is not the first thing on the class path that<a name="line.969"></a>
-<span class="sourceLineNo">970</span>   * has a class with the same name. Looks first on the classpath and then in<a name="line.970"></a>
-<span class="sourceLineNo">971</span>   * the &lt;code&gt;packagedClasses&lt;/code&gt; map.<a name="line.971"></a>
-<span class="sourceLineNo">972</span>   * @param my_class the class to find.<a name="line.972"></a>
-<span class="sourceLineNo">973</span>   * @return a jar file that contains the class, or null.<a name="line.973"></a>
-<span class="sourceLineNo">974</span>   * @throws IOException<a name="line.974"></a>
-<span class="sourceLineNo">975</span>   */<a name="line.975"></a>
-<span class="sourceLineNo">976</span>  private static String findContainingJar(Class&lt;?&gt; my_class, Map&lt;String, String&gt; packagedClasses)<a name="line.976"></a>
-<span class="sourceLineNo">977</span>      throws IOException {<a name="line.977"></a>
-<span class="sourceLineNo">978</span>    ClassLoader loader = my_class.getClassLoader();<a name="line.978"></a>
-<span class="sourceLineNo">979</span><a name="line.979"></a>
-<span class="sourceLineNo">980</span>    String class_file = my_class.getName().replaceAll("\\.", "/") + ".class";<a name="line.980"></a>
+<span class="sourceLineNo">787</span>      org.apache.hadoop.hbase.ipc.RpcServer.class,                   // hbase-server<a name="line.787"></a>
+<span class="sourceLineNo">788</span>      org.apache.hadoop.hbase.CompatibilityFactory.class,            // hbase-hadoop-compat<a name="line.788"></a>
+<span class="sourceLineNo">789</span>      org.apache.hadoop.hbase.mapreduce.JobUtil.class,               // hbase-hadoop2-compat<a name="line.789"></a>
+<span class="sourceLineNo">790</span>      org.apache.hadoop.hbase.mapreduce.TableMapper.class,           // hbase-server<a name="line.790"></a>
+<span class="sourceLineNo">791</span>      org.apache.hadoop.hbase.metrics.impl.FastLongHistogram.class,  // hbase-metrics<a name="line.791"></a>
+<span class="sourceLineNo">792</span>      org.apache.hadoop.hbase.metrics.Snapshot.class,                // hbase-metrics-api<a name="line.792"></a>
+<span class="sourceLineNo">793</span>      prefixTreeCodecClass, //  hbase-prefix-tree (if null will be skipped)<a name="line.793"></a>
+<span class="sourceLineNo">794</span>      // pull necessary dependencies<a name="line.794"></a>
+<span class="sourceLineNo">795</span>      org.apache.zookeeper.ZooKeeper.class,<a name="line.795"></a>
+<span class="sourceLineNo">796</span>      org.apache.hadoop.hbase.shaded.io.netty.channel.Channel.class,<a name="line.796"></a>
+<span class="sourceLineNo">797</span>      com.google.protobuf.Message.class,<a name="line.797"></a>
+<span class="sourceLineNo">798</span>      org.apache.hadoop.hbase.shaded.com.google.protobuf.UnsafeByteOperations.class,<a name="line.798"></a>
+<span class="sourceLineNo">799</span>      org.apache.hadoop.hbase.shaded.com.google.common.collect.Lists.class,<a name="line.799"></a>
+<span class="sourceLineNo">800</span>      org.apache.htrace.Trace.class,<a name="line.800"></a>
+<span class="sourceLineNo">801</span>      com.codahale.metrics.MetricRegistry.class);<a name="line.801"></a>
+<span class="sourceLineNo">802</span>  }<a name="line.802"></a>
+<span class="sourceLineNo">803</span><a name="line.803"></a>
+<span class="sourceLineNo">804</span>  /**<a name="line.804"></a>
+<span class="sourceLineNo">805</span>   * Returns a classpath string built from the content of the "tmpjars" value in {@code conf}.<a name="line.805"></a>
+<span class="sourceLineNo">806</span>   * Also exposed to shell scripts via `bin/hbase mapredcp`.<a name="line.806"></a>
+<span class="sourceLineNo">807</span>   */<a name="line.807"></a>
+<span class="sourceLineNo">808</span>  public static String buildDependencyClasspath(Configuration conf) {<a name="line.808"></a>
+<span class="sourceLineNo">809</span>    if (conf == null) {<a name="line.809"></a>
+<span class="sourceLineNo">810</span>      throw new IllegalArgumentException("Must provide a configuration object.");<a name="line.810"></a>
+<span class="sourceLineNo">811</span>    }<a name="line.811"></a>
+<span class="sourceLineNo">812</span>    Set&lt;String&gt; paths = new HashSet&lt;&gt;(conf.getStringCollection("tmpjars"));<a name="line.812"></a>
+<span class="sourceLineNo">813</span>    if (paths.isEmpty()) {<a name="line.813"></a>
+<span class="sourceLineNo">814</span>      throw new IllegalArgumentException("Configuration contains no tmpjars.");<a name="line.814"></a>
+<span class="sourceLineNo">815</span>    }<a name="line.815"></a>
+<span class="sourceLineNo">816</span>    StringBuilder sb = new StringBuilder();<a name="line.816"></a>
+<span class="sourceLineNo">817</span>    for (String s : paths) {<a name="line.817"></a>
+<span class="sourceLineNo">818</span>      // entries can take the form 'file:/path/to/file.jar'.<a name="line.818"></a>
+<span class="sourceLineNo">819</span>      int idx = s.indexOf(":");<a name="line.819"></a>
+<span class="sourceLineNo">820</span>      if (idx != -1) s = s.substring(idx + 1);<a name="line.820"></a>
+<span class="sourceLineNo">821</span>      if (sb.length() &gt; 0) sb.append(File.pathSeparator);<a name="line.821"></a>
+<span class="sourceLineNo">822</span>      sb.append(s);<a name="line.822"></a>
+<span class="sourceLineNo">823</span>    }<a name="line.823"></a>
+<span class="sourceLineNo">824</span>    return sb.toString();<a name="line.824"></a>
+<span class="sourceLineNo">825</span>  }<a name="line.825"></a>
+<span class="sourceLineNo">826</span><a name="line.826"></a>
+<span class="sourceLineNo">827</span>  /**<a name="line.827"></a>
+<span class="sourceLineNo">828</span>   * Add the HBase dependency jars as well as jars for any of the configured<a name="line.828"></a>
+<span class="sourceLineNo">829</span>   * job classes to the job configuration, so that JobClient will ship them<a name="line.829"></a>
+<span class="sourceLineNo">830</span>   * to the cluster and add them to the DistributedCache.<a name="line.830"></a>
+<span class="sourceLineNo">831</span>   */<a name="line.831"></a>
+<span class="sourceLineNo">832</span>  public static void addDependencyJars(Job job) throws IOException {<a name="line.832"></a>
+<span class="sourceLineNo">833</span>    addHBaseDependencyJars(job.getConfiguration());<a name="line.833"></a>
+<span class="sourceLineNo">834</span>    try {<a name="line.834"></a>
+<span class="sourceLineNo">835</span>      addDependencyJarsForClasses(job.getConfiguration(),<a name="line.835"></a>
+<span class="sourceLineNo">836</span>          // when making changes here, consider also mapred.TableMapReduceUtil<a name="line.836"></a>
+<span class="sourceLineNo">837</span>          // pull job classes<a name="line.837"></a>
+<span class="sourceLineNo">838</span>          job.getMapOutputKeyClass(),<a name="line.838"></a>
+<span class="sourceLineNo">839</span>          job.getMapOutputValueClass(),<a name="line.839"></a>
+<span class="sourceLineNo">840</span>          job.getInputFormatClass(),<a name="line.840"></a>
+<span class="sourceLineNo">841</span>          job.getOutputKeyClass(),<a name="line.841"></a>
+<span class="sourceLineNo">842</span>          job.getOutputValueClass(),<a name="line.842"></a>
+<span class="sourceLineNo">843</span>          job.getOutputFormatClass(),<a name="line.843"></a>
+<span class="sourceLineNo">844</span>          job.getPartitionerClass(),<a name="line.844"></a>
+<span class="sourceLineNo">845</span>          job.getCombinerClass());<a name="line.845"></a>
+<span class="sourceLineNo">846</span>    } catch (ClassNotFoundException e) {<a name="line.846"></a>
+<span class="sourceLineNo">847</span>      throw new IOException(e);<a name="line.847"></a>
+<span class="sourceLineNo">848</span>    }<a name="line.848"></a>
+<span class="sourceLineNo">849</span>  }<a name="line.849"></a>
+<span class="sourceLineNo">850</span><a name="line.850"></a>
+<span class="sourceLineNo">851</span>  /**<a name="line.851"></a>
+<span class="sourceLineNo">852</span>   * Add the jars containing the given classes to the job's configuration<a name="line.852"></a>
+<span class="sourceLineNo">853</span>   * such that JobClient will ship them to the cluster and add them to<a name="line.853"></a>
+<span class="sourceLineNo">854</span>   * the DistributedCache.<a name="line.854"></a>
+<span class="sourceLineNo">855</span>   * @deprecated rely on {@link #addDependencyJars(Job)} instead.<a name="line.855"></a>
+<span class="sourceLineNo">856</span>   */<a name="line.856"></a>
+<span class="sourceLineNo">857</span>  @Deprecated<a name="line.857"></a>
+<span class="sourceLineNo">858</span>  public static void addDependencyJars(Configuration conf,<a name="line.858"></a>
+<span class="sourceLineNo">859</span>      Class&lt;?&gt;... classes) throws IOException {<a name="line.859"></a>
+<span class="sourceLineNo">860</span>    LOG.warn("The addDependencyJars(Configuration, Class&lt;?&gt;...) method has been deprecated since it"<a name="line.860"></a>
+<span class="sourceLineNo">861</span>             + " is easy to use incorrectly. Most users should rely on addDependencyJars(Job) " +<a name="line.861"></a>
+<span class="sourceLineNo">862</span>             "instead. See HBASE-8386 for more details.");<a name="line.862"></a>
+<span class="sourceLineNo">863</span>    addDependencyJarsForClasses(conf, classes);<a name="line.863"></a>
+<span class="sourceLineNo">864</span>  }<a name="line.864"></a>
+<span class="sourceLineNo">865</span><a name="line.865"></a>
+<span class="sourceLineNo">866</span>  /**<a name="line.866"></a>
+<span class="sourceLineNo">867</span>   * Add the jars containing the given classes to the job's configuration<a name="line.867"></a>
+<span class="sourceLineNo">868</span>   * such that JobClient will ship them to the cluster and add them to<a name="line.868"></a>
+<span class="sourceLineNo">869</span>   * the DistributedCache.<a name="line.869"></a>
+<span class="sourceLineNo">870</span>   *<a name="line.870"></a>
+<span class="sourceLineNo">871</span>   * N.B. that this method at most adds one jar per class given. If there is more than one<a name="line.871"></a>
+<span class="sourceLineNo">872</span>   * jar available containing a class with the same name as a given class, we don't define<a name="line.872"></a>
+<span class="sourceLineNo">873</span>   * which of those jars might be chosen.<a name="line.873"></a>
+<span class="sourceLineNo">874</span>   *<a name="line.874"></a>
+<span class="sourceLineNo">875</span>   * @param conf The Hadoop Configuration to modify<a name="line.875"></a>
+<span class="sourceLineNo">876</span>   * @param classes will add just those dependencies needed to find the given classes<a name="line.876"></a>
+<span class="sourceLineNo">877</span>   * @throws IOException if an underlying library call fails.<a name="line.877"></a>
+<span class="sourceLineNo">878</span>   */<a name="line.878"></a>
+<span class="sourceLineNo">879</span>  @InterfaceAudience.Private<a name="line.879"></a>
+<span class="sourceLineNo">880</span>  public static void addDependencyJarsForClasses(Configuration conf,<a name="line.880"></a>
+<span class="sourceLineNo">881</span>      Class&lt;?&gt;... classes) throws IOException {<a name="line.881"></a>
+<span class="sourceLineNo">882</span><a name="line.882"></a>
+<span class="sourceLineNo">883</span>    FileSystem localFs = FileSystem.getLocal(conf);<a name="line.883"></a>
+<span class="sourceLineNo">884</span>    Set&lt;String&gt; jars = new HashSet&lt;&gt;();<a name="line.884"></a>
+<span class="sourceLineNo">885</span>    // Add jars that are already in the tmpjars variable<a name="line.885"></a>
+<span class="sourceLineNo">886</span>    jars.addAll(conf.getStringCollection("tmpjars"));<a name="line.886"></a>
+<span class="sourceLineNo">887</span><a name="line.887"></a>
+<span class="sourceLineNo">888</span>    // add jars as we find them to a map of contents jar name so that we can avoid<a name="line.888"></a>
+<span class="sourceLineNo">889</span>    // creating new jars for classes that have already been packaged.<a name="line.889"></a>
+<span class="sourceLineNo">890</span>    Map&lt;String, String&gt; packagedClasses = new HashMap&lt;&gt;();<a name="line.890"></a>
+<span class="sourceLineNo">891</span><a name="line.891"></a>
+<span class="sourceLineNo">892</span>    // Add jars containing the specified classes<a name="line.892"></a>
+<span class="sourceLineNo">893</span>    for (Class&lt;?&gt; clazz : classes) {<a name="line.893"></a>
+<span class="sourceLineNo">894</span>      if (clazz == null) continue;<a name="line.894"></a>
+<span class="sourceLineNo">895</span><a name="line.895"></a>
+<span class="sourceLineNo">896</span>      Path path = findOrCreateJar(clazz, localFs, packagedClasses);<a name="line.896"></a>
+<span class="sourceLineNo">897</span>      if (path == null) {<a name="line.897"></a>
+<span class="sourceLineNo">898</span>        LOG.warn("Could not find jar for class " + clazz +<a name="line.898"></a>
+<span class="sourceLineNo">899</span>                 " in order to ship it to the cluster.");<a name="line.899"></a>
+<span class="sourceLineNo">900</span>        continue;<a name="line.900"></a>
+<span class="sourceLineNo">901</span>      }<a name="line.901"></a>
+<span class="sourceLineNo">902</span>      if (!localFs.exists(path)) {<a name="line.902"></a>
+<span class="sourceLineNo">903</span>        LOG.warn("Could not validate jar file " + path + " for class "<a name="line.903"></a>
+<span class="sourceLineNo">904</span>                 + clazz);<a name="line.904"></a>
+<span class="sourceLineNo">905</span>        continue;<a name="line.905"></a>
+<span class="sourceLineNo">906</span>      }<a name="line.906"></a>
+<span class="sourceLineNo">907</span>      jars.add(path.toString());<a name="line.907"></a>
+<span class="sourceLineNo">908</span>    }<a name="line.908"></a>
+<span class="sourceLineNo">909</span>    if (jars.isEmpty()) return;<a name="line.909"></a>
+<span class="sourceLineNo">910</span><a name="line.910"></a>
+<span class="sourceLineNo">911</span>    conf.set("tmpjars", StringUtils.arrayToString(jars.toArray(new String[jars.size()])));<a name="line.911"></a>
+<span class="sourceLineNo">912</span>  }<a name="line.912"></a>
+<span class="sourceLineNo">913</span><a name="line.913"></a>
+<span class="sourceLineNo">914</span>  /**<a name="line.914"></a>
+<span class="sourceLineNo">915</span>   * Finds the Jar for a class or creates it if it doesn't exist. If the class is in<a name="line.915"></a>
+<span class="sourceLineNo">916</span>   * a directory in the classpath, it creates a Jar on the fly with the<a name="line.916"></a>
+<span class="sourceLineNo">917</span>   * contents of the directory and returns the path to that Jar. If a Jar is<a name="line.917"></a>
+<span class="sourceLineNo">918</span>   * created, it is created in the system temporary directory. Otherwise,<a name="line.918"></a>
+<span class="sourceLineNo">919</span>   * returns an existing jar that contains a class of the same name. Maintains<a name="line.919"></a>
+<span class="sourceLineNo">920</span>   * a mapping from jar contents to the tmp jar created.<a name="line.920"></a>
+<span class="sourceLineNo">921</span>   * @param my_class the class to find.<a name="line.921"></a>
+<span class="sourceLineNo">922</span>   * @param fs the FileSystem with which to qualify the returned path.<a name="line.922"></a>
+<span class="sourceLineNo">923</span>   * @param packagedClasses a map of class name to path.<a name="line.923"></a>
+<span class="sourceLineNo">924</span>   * @return a jar file that contains the class.<a name="line.924"></a>
+<span class="sourceLineNo">925</span>   * @throws IOException<a name="line.925"></a>
+<span class="sourceLineNo">926</span>   */<a name="line.926"></a>
+<span class="sourceLineNo">927</span>  private static Path findOrCreateJar(Class&lt;?&gt; my_class, FileSystem fs,<a name="line.927"></a>
+<span class="sourceLineNo">928</span>      Map&lt;String, String&gt; packagedClasses)<a name="line.928"></a>
+<span class="sourceLineNo">929</span>  throws IOException {<a name="line.929"></a>
+<span class="sourceLineNo">930</span>    // attempt to locate an existing jar for the class.<a name="line.930"></a>
+<span class="sourceLineNo">931</span>    String jar = findContainingJar(my_class, packagedClasses);<a name="line.931"></a>
+<span class="sourceLineNo">932</span>    if (null == jar || jar.isEmpty()) {<a name="line.932"></a>
+<span class="sourceLineNo">933</span>      jar = getJar(my_class);<a name="line.933"></a>
+<span class="sourceLineNo">934</span>      updateMap(jar, packagedClasses);<a name="line.934"></a>
+<span class="sourceLineNo">935</span>    }<a name="line.935"></a>
+<span class="sourceLineNo">936</span><a name="line.936"></a>
+<span class="sourceLineNo">937</span>    if (null == jar || jar.isEmpty()) {<a name="line.937"></a>
+<span class="sourceLineNo">938</span>      return null;<a name="line.938"></a>
+<span class="sourceLineNo">939</span>    }<a name="line.939"></a>
+<span class="sourceLineNo">940</span><a name="line.940"></a>
+<span class="sourceLineNo">941</span>    LOG.debug(String.format("For class %s, using jar %s", my_class.getName(), jar));<a name="line.941"></a>
+<span class="sourceLineNo">942</span>    return new Path(jar).makeQualified(fs);<a name="line.942"></a>
+<span class="sourceLineNo">943</span>  }<a name="line.943"></a>
+<span class="sourceLineNo">944</span><a name="line.944"></a>
+<span class="sourceLineNo">945</span>  /**<a name="line.945"></a>
+<span class="sourceLineNo">946</span>   * Add entries to &lt;code&gt;packagedClasses&lt;/code&gt; corresponding to class files<a name="line.946"></a>
+<span class="sourceLineNo">947</span>   * contained in &lt;code&gt;jar&lt;/code&gt;.<a name="line.947"></a>
+<span class="sourceLineNo">948</span>   * @param jar The jar who's content to list.<a name="line.948"></a>
+<span class="sourceLineNo">949</span>   * @param packagedClasses map[class -&gt; jar]<a name="line.949"></a>
+<span class="sourceLineNo">950</span>   */<a name="line.950"></a>
+<span class="sourceLineNo">951</span>  private static void updateMap(String jar, Map&lt;String, String&gt; packagedClasses) throws IOException {<a name="line.951"></a>
+<span class="sourceLineNo">952</span>    if (null == jar || jar.isEmpty()) {<a name="line.952"></a>
+<span class="sourceLineNo">953</span>      return;<a name="line.953"></a>
+<span class="sourceLineNo">954</span>    }<a name="line.954"></a>
+<span class="sourceLineNo">955</span>    ZipFile zip = null;<a name="line.955"></a>
+<span class="sourceLineNo">956</span>    try {<a name="line.956"></a>
+<span class="sourceLineNo">957</span>      zip = new ZipFile(jar);<a name="line.957"></a>
+<span class="sourceLineNo">958</span>      for (Enumeration&lt;? extends ZipEntry&gt; iter = zip.entries(); iter.hasMoreElements();) {<a name="line.958"></a>
+<span class="sourceLineNo">959</span>        ZipEntry entry = iter.nextElement();<a name="line.959"></a>
+<span class="sourceLineNo">960</span>        if (entry.getName().endsWith("class")) {<a name="line.960"></a>
+<span class="sourceLineNo">961</span>          packagedClasses.put(entry.getName(), jar);<a name="line.961"></a>
+<span class="sourceLineNo">962</span>        }<a name="line.962"></a>
+<span class="sourceLineNo">963</span>      }<a name="line.963"></a>
+<span class="sourceLineNo">964</span>    } finally {<a name="line.964"></a>
+<span class="sourceLineNo">965</span>      if (null != zip) zip.close();<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>  /**<a name="line.969"></a>
+<span class="sourceLineNo">970</span>   * Find a jar that contains a class of the same name, if any. It will return<a name="line.970"></a>
+<span class="sourceLineNo">971</span>   * a jar file, even if that is not the first thing on the class path that<a name="line.971"></a>
+<span class="sourceLineNo">972</span>   * has a class with the same name. Looks first on the classpath and then in<a name="line.972"></a>
+<span class="sourceLineNo">973</span>   * the &lt;code&gt;packagedClasses&lt;/code&gt; map.<a name="line.973"></a>
+<span class="sourceLineNo">974</span>   * @param my_class the class to find.<a name="line.974"></a>
+<span class="sourceLineNo">975</span>   * @return a jar file that contains the class, or null.<a name="line.975"></a>
+<span class="sourceLineNo">976</span>   * @throws IOException<a name="line.976"></a>
+<span class="sourceLineNo">977</span>   */<a name="line.977"></a>
+<span class="sourceLineNo">978</span>  private static String findContainingJar(Class&lt;?&gt; my_class, Map&lt;String, String&gt; packagedClasses)<a name="line.978"></a>
+<span class="sourceLineNo">979</span>      throws IOException {<a name="line.979"></a>
+<span class="sourceLineNo">980</span>    ClassLoader loader = my_class.getClassLoader();<a name="line.980"></a>
 <span class="sourceLineNo">981</span><a name="line.981"></a>
-<span class="sourceLineNo">982</span>    if (loader != null) {<a name="line.982"></a>
-<span class="sourceLineNo">983</span>      // first search the classpath<a name="line.983"></a>
-<span class="sourceLineNo">984</span>      for (Enumeration&lt;URL&gt; itr = loader.getResources(class_file); itr.hasMoreElements();) {<a name="line.984"></a>
-<span class="sourceLineNo">985</span>        URL url = itr.nextElement();<a name="line.985"></a>
-<span class="sourceLineNo">986</span>        if ("jar".equals(url.getProtocol())) {<a name="line.986"></a>
-<span class="sourceLineNo">987</span>          String toReturn = url.getPath();<a name="line.987"></a>
-<span class="sourceLineNo">988</span>          if (toReturn.startsWith("file:")) {<a name="line.988"></a>
-<span class="sourceLineNo">989</span>            toReturn = toReturn.substring("file:".length());<a name="line.989"></a>
-<span class="sourceLineNo">990</span>          }<a name="line.990"></a>
-<span class="sourceLineNo">991</span>          // URLDecoder is a misnamed class, since it actually decodes<a name="line.991"></a>
-<span class="sourceLineNo">992</span>          // x-www-form-urlencoded MIME type rather than actual<a name="line.992"></a>
-<span class="sourceLineNo">993</span>          // URL encoding (which the file path has). Therefore it would<a name="line.993"></a>
-<span class="sourceLineNo">994</span>          // decode +s to ' 's which is incorrect (spaces are actually<a name="line.994"></a>
-<span class="sourceLineNo">995</span>          // either unencoded or encoded as "%20"). Replace +s first, so<a name="line.995"></a>
-<span class="sourceLineNo">996</span>          // that they are kept sacred during the decoding process.<a name="line.996"></a>
-<span class="sourceLineNo">997</span>          toReturn = toReturn.replaceAll("\\+", "%2B");<a name="line.997"></a>
-<span class="sourceLineNo">998</span>          toReturn = URLDecoder.decode(toReturn, "UTF-8");<a name="line.998"></a>
-<span class="sourceLineNo">999</span>          return toReturn.replaceAll("!.*$", "");<a name="line.999"></a>
-<span class="sourceLineNo">1000</span>        }<a name="line.1000"></a>
-<span class="sourceLineNo">1001</span>      }<a name="line.1001"></a>
-<span class="sourceLineNo">1002</span>    }<a name="line.1002"></a>
-<span class="sourceLineNo">1003</span><a name="line.1003"></a>
-<span class="sourceLineNo">1004</span>    // now look in any jars we've packaged using JarFinder. Returns null when<a name="line.1004"></a>
-<span class="sourceLineNo">1005</span>    // no jar is found.<a name="line.1005"></a>
-<span class="sourceLineNo">1006</span>    return packagedClasses.get(class_file);<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>
-<span class="sourceLineNo">1009</span>  /**<a name="line.1009"></a>
-<span class="sourceLineNo">1010</span>   * Invoke 'getJar' on a custom JarFinder implementation. Useful for some job<a name="line.1010"></a>
-<span class="sourceLineNo">1011</span>   * configuration contexts (HBASE-8140) and also for testing on MRv2.<a name="line.1011"></a>
-<span class="sourceLineNo">1012</span>   * check if we have HADOOP-9426.<a name="line.1012"></a>
-<span class="sourceLineNo">1013</span>   * @param my_class the class to find.<a name="line.1013"></a>
-<span class="sourceLineNo">1014</span>   * @return a jar file that contains the class, or null.<a name="line.1014"></a>
-<span class="sourceLineNo">1015</span>   */<a name="line.1015"></a>
-<span class="sourceLineNo">1016</span>  private static String getJar(Class&lt;?&gt; my_class) {<a name="line.1016"></a>
-<span class="sourceLineNo">1017</span>    String ret = null;<a name="line.1017"></a>
-<span class="sourceLineNo">1018</span>    try {<a name="line.1018"></a>
-<span class="sourceLineNo">1019</span>      ret = JarFinder.getJar(my_class);<a name="line.1019"></a>
-<span class="sourceLineNo">1020</span>    } catch (Exception e) {<a name="line.1020"></a>
-<span class="sourceLineNo">1021</span>      // toss all other exceptions, related to reflection failure<a name="line.1021"></a>
-<span class="sourceLineNo">1022</span>      throw new RuntimeException("getJar invocation failed.", e);<a name="line.1022"></a>
-<span class="sourceLineNo">1023</span>    }<a name="line.1023"></a>
-<span class="sourceLineNo">1024</span><a name="line.1024"></a>
-<span class="sourceLineNo">1025</span>    return ret;<a name="line.1025"></a>
-<span class="sourceLineNo">1026</span>  }<a name="line.1026"></a>
-<span class="sourceLineNo">1027</span>}<a name="line.1027"></a>
+<span class="sourceLineNo">982</span>    String class_file = my_class.getName().replaceAll("\\.", "/") + ".class";<a name="line.982"></a>
+<span class="sourceLineNo">983</span><a name="line.983"></a>
+<span class="sourceLineNo">984</span>    if (loader != null) {<a name="line.984"></a>
+<span class="sourceLineNo">985</span>      // first search the classpath<a name="line.985"></a>
+<span class="sourceLineNo">986</span>      for (Enumeration&lt;URL&gt; itr = loader.getResources(class_file); itr.hasMoreElements();) {<a name="line.986"></a>
+<span class="sourceLineNo">987</span>        URL url = itr.nextElement();<a name="line.987"></a>
+<span class="sourceLineNo">988</span>        if ("jar".equals(url.getProtocol())) {<a name="line.988"></a>
+<span class="sourceLineNo">989</span>          String toReturn = url.getPath();<a name="line.989"></a>
+<span class="sourceLineNo">990</span>          if (toReturn.startsWith("file:")) {<a name="line.990"></a>
+<span class="sourceLineNo">991</span>            toReturn = toReturn.substring("file:".length());<a name="line.991"></a>
+<span class="sourceLineNo">992</span>          }<a name="line.992"></a>
+<span class="sourceLineNo">993</span>          // URLDecoder is a misnamed class, since it actually decodes<a name="line.993"></a>
+<span class="sourceLineNo">994</span>          // x-www-form-urlencoded MIME type rather than actual<a name="line.994"></a>
+<span class="sourceLineNo">995</span>          // URL encoding (which the file path has). Therefore it would<a name="line.995"></a>
+<span class="sourceLineNo">996</span>          // decode +s to ' 's which is incorrect (spaces are actually<a name="line.996"></a>
+<span class="sourceLineNo">997</span>          // either unencoded or encoded as "%20"). Replace +s first, so<a name="line.997"></a>
+<span class="sourceLineNo">998</span>          // that they are kept sacred during the decoding process.<a name="line.998"></a>
+<span class="sourceLineNo">999</span>          toReturn = toReturn.replaceAll("\\+", "%2B");<a name="line.999"></a>
+<span class="sourceLineNo">1000</span>          toReturn = URLDecoder.decode(toReturn, "UTF-8");<a name="line.1000"></a>
+<span class="sourceLineNo">1001</span>          return toReturn.replaceAll("!.*$", "");<a name="line.1001"></a>
+<span class="sourceLineNo">1002</span>        }<a name="line.1002"></a>
+<span class="sourceLineNo">1003</span>      }<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>    // now look in any jars we've packaged using JarFinder. Returns null when<a name="line.1006"></a>
+<span class="sourceLineNo">1007</span>    // no jar is found.<a name="line.1007"></a>
+<span class="sourceLineNo">1008</span>    return packagedClasses.get(class_file);<a name="line.1008"></a>
+<span class="sourceLineNo">1009</span>  }<a name="line.1009"></a>
+<span class="sourceLineNo">1010</span><a name="line.1010"></a>
+<span class="sourceLineNo">1011</span>  /**<a name="line.1011"></a>
+<span class="sourceLineNo">1012</span>   * Invoke 'getJar' on a custom JarFinder implementation. Useful for some job<a name="line.1012"></a>
+<span class="sourceLineNo">1013</span>   * configuration contexts (HBASE-8140) and also for testing on MRv2.<a name="line.1013"></a>
+<span class="sourceLineNo">1014</span>   * check if we have HADOOP-9426.<a name="line.1014"></a>
+<span class="sourceLineNo">1015</span>   * @param my_class the class to find.<a name="line.1015"></a>
+<span class="sourceLineNo">1016</span>   * @return a jar file that contains the class, or null.<a name="line.1016"></a>
+<span class="sourceLineNo">1017</span>   */<a name="line.1017"></a>
+<span class="sourceLineNo">1018</span>  private static String getJar(Class&lt;?&gt; my_class) {<a name="line.1018"></a>
+<span class="sourceLineNo">1019</span>    String ret = null;<a name="line.1019"></a>
+<span class="sourceLineNo">1020</span>    try {<a name="line.1020"></a>
+<span class="sourceLineNo">1021</span>      ret = JarFinder.getJar(my_class);<a name="line.1021"></a>
+<span class="sourceLineNo">1022</span>    } catch (Exception e) {<a name="line.1022"></a>
+<span class="sourceLineNo">1023</span>      // toss all other exceptions, related to reflection failure<a name="line.1023"></a>
+<span class="sourceLineNo">1024</span>      throw new RuntimeException("getJar invocation failed.", e);<a name="line.1024"></a>
+<span class="sourceLineNo">1025</span>    }<a name="line.1025"></a>
+<span class="sourceLineNo">1026</span><a name="line.1026"></a>
+<span class="sourceLineNo">1027</span>    return ret;<a name="line.1027"></a>
+<span class="sourceLineNo">1028</span>  }<a name="line.1028"></a>
+<span class="sourceLineNo">1029</span>}<a name="line.1029"></a>
 
 
 


Mime
View raw message