Published site at d5aaeee88b331e064830a2774f4fed238631457c.
[hbase-site.git] / devapidocs / org / apache / hadoop / hbase / backup / util / BackupUtils.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!-- NewPage -->
3 <html lang="en">
4 <head>
5 <!-- Generated by javadoc -->
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7 <title>BackupUtils (Apache HBase 3.0.0-SNAPSHOT API)</title>
8 <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
9 <script type="text/javascript" src="../../../../../../script.js"></script>
10 </head>
11 <body>
12 <script type="text/javascript"><!--
13 try {
14 if (location.href.indexOf('is-external=true') == -1) {
15 parent.document.title="BackupUtils (Apache HBase 3.0.0-SNAPSHOT API)";
16 }
17 }
18 catch(err) {
19 }
20 //-->
21 var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9};
22 var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
23 var altColor = "altColor";
24 var rowColor = "rowColor";
25 var tableTab = "tableTab";
26 var activeTableTab = "activeTableTab";
27 </script>
28 <noscript>
29 <div>JavaScript is disabled on your browser.</div>
30 </noscript>
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <div class="topNav"><a name="navbar.top">
33 <!-- -->
34 </a>
35 <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
36 <a name="navbar.top.firstrow">
37 <!-- -->
38 </a>
39 <ul class="navList" title="Navigation">
40 <li><a href="../../../../../../overview-summary.html">Overview</a></li>
41 <li><a href="package-summary.html">Package</a></li>
42 <li class="navBarCell1Rev">Class</li>
43 <li><a href="class-use/BackupUtils.html">Use</a></li>
44 <li><a href="package-tree.html">Tree</a></li>
45 <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
46 <li><a href="../../../../../../index-all.html">Index</a></li>
47 <li><a href="../../../../../../help-doc.html">Help</a></li>
48 </ul>
49 </div>
50 <div class="subNav">
51 <ul class="navList">
52 <li><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupSet.html" title="class in org.apache.hadoop.hbase.backup.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
53 <li><a href="../../../../../../org/apache/hadoop/hbase/backup/util/RestoreTool.html" title="class in org.apache.hadoop.hbase.backup.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
54 </ul>
55 <ul class="navList">
56 <li><a href="../../../../../../index.html?org/apache/hadoop/hbase/backup/util/BackupUtils.html" target="_top">Frames</a></li>
57 <li><a href="BackupUtils.html" target="_top">No&nbsp;Frames</a></li>
58 </ul>
59 <ul class="navList" id="allclasses_navbar_top">
60 <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
61 </ul>
62 <div>
63 <script type="text/javascript"><!--
64 allClassesLink = document.getElementById("allclasses_navbar_top");
65 if(window==top) {
66 allClassesLink.style.display = "block";
67 }
68 else {
69 allClassesLink.style.display = "none";
70 }
71 //-->
72 </script>
73 </div>
74 <div>
75 <ul class="subNavList">
76 <li>Summary:&nbsp;</li>
77 <li>Nested&nbsp;|&nbsp;</li>
78 <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
79 <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
80 <li><a href="#method.summary">Method</a></li>
81 </ul>
82 <ul class="subNavList">
83 <li>Detail:&nbsp;</li>
84 <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
85 <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
86 <li><a href="#method.detail">Method</a></li>
87 </ul>
88 </div>
89 <a name="skip.navbar.top">
90 <!-- -->
91 </a></div>
92 <!-- ========= END OF TOP NAVBAR ========= -->
93 <!-- ======== START OF CLASS DATA ======== -->
94 <div class="header">
95 <div class="subTitle">org.apache.hadoop.hbase.backup.util</div>
96 <h2 title="Class BackupUtils" class="title">Class BackupUtils</h2>
97 </div>
98 <div class="contentContainer">
99 <ul class="inheritance">
100 <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
101 <li>
102 <ul class="inheritance">
103 <li>org.apache.hadoop.hbase.backup.util.BackupUtils</li>
104 </ul>
105 </li>
106 </ul>
107 <div class="description">
108 <ul class="blockList">
109 <li class="blockList">
110 <hr>
111 <br>
112 <pre>@InterfaceAudience.Private
113 public final class <a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.70">BackupUtils</a>
114 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
115 <div class="block">A collection for methods used by multiple classes to backup HBase tables.</div>
116 </li>
117 </ul>
118 </div>
119 <div class="summary">
120 <ul class="blockList">
121 <li class="blockList">
122 <!-- =========== FIELD SUMMARY =========== -->
123 <ul class="blockList">
124 <li class="blockList"><a name="field.summary">
125 <!-- -->
126 </a>
127 <h3>Field Summary</h3>
128 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
129 <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
130 <tr>
131 <th class="colFirst" scope="col">Modifier and Type</th>
132 <th class="colLast" scope="col">Field and Description</th>
133 </tr>
134 <tr class="altColor">
135 <td class="colFirst"><code>protected static org.slf4j.Logger</code></td>
136 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#LOG">LOG</a></span></code>&nbsp;</td>
137 </tr>
138 <tr class="rowColor">
139 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
140 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#LOGNAME_SEPARATOR">LOGNAME_SEPARATOR</a></span></code>&nbsp;</td>
141 </tr>
142 <tr class="altColor">
143 <td class="colFirst"><code>static int</code></td>
144 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#MILLISEC_IN_HOUR">MILLISEC_IN_HOUR</a></span></code>&nbsp;</td>
145 </tr>
146 </table>
147 </li>
148 </ul>
149 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
150 <ul class="blockList">
151 <li class="blockList"><a name="constructor.summary">
152 <!-- -->
153 </a>
154 <h3>Constructor Summary</h3>
155 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
156 <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
157 <tr>
158 <th class="colFirst" scope="col">Modifier</th>
159 <th class="colLast" scope="col">Constructor and Description</th>
160 </tr>
161 <tr class="altColor">
162 <td class="colFirst"><code>private </code></td>
163 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#BackupUtils--">BackupUtils</a></span>()</code>&nbsp;</td>
164 </tr>
165 </table>
166 </li>
167 </ul>
168 <!-- ========== METHOD SUMMARY =========== -->
169 <ul class="blockList">
170 <li class="blockList"><a name="method.summary">
171 <!-- -->
172 </a>
173 <h3>Method Summary</h3>
174 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
175 <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
176 <tr>
177 <th class="colFirst" scope="col">Modifier and Type</th>
178 <th class="colLast" scope="col">Method and Description</th>
179 </tr>
180 <tr id="i0" class="altColor">
181 <td class="colFirst"><code>static boolean</code></td>
182 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#checkPathExist-java.lang.String-org.apache.hadoop.conf.Configuration-">checkPathExist</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupStr,
183 org.apache.hadoop.conf.Configuration&nbsp;conf)</code>
184 <div class="block">Check whether the backup path exist</div>
185 </td>
186 </tr>
187 <tr id="i1" class="rowColor">
188 <td class="colFirst"><code>static void</code></td>
189 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#checkTargetDir-java.lang.String-org.apache.hadoop.conf.Configuration-">checkTargetDir</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupRootPath,
190 org.apache.hadoop.conf.Configuration&nbsp;conf)</code>
191 <div class="block">Check target path first, confirm it doesn't exist before backup</div>
192 </td>
193 </tr>
194 <tr id="i2" class="altColor">
195 <td class="colFirst"><code>static void</code></td>
196 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#cleanupBackupData-org.apache.hadoop.hbase.backup.BackupInfo-org.apache.hadoop.conf.Configuration-">cleanupBackupData</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&nbsp;context,
197 org.apache.hadoop.conf.Configuration&nbsp;conf)</code>&nbsp;</td>
198 </tr>
199 <tr id="i3" class="rowColor">
200 <td class="colFirst"><code>private static void</code></td>
201 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#cleanupHLogDir-org.apache.hadoop.hbase.backup.BackupInfo-org.apache.hadoop.conf.Configuration-">cleanupHLogDir</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&nbsp;backupInfo,
202 org.apache.hadoop.conf.Configuration&nbsp;conf)</code>
203 <div class="block">Clean up directories which are generated when DistCp copying hlogs</div>
204 </td>
205 </tr>
206 <tr id="i4" class="altColor">
207 <td class="colFirst"><code>private static void</code></td>
208 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#cleanupTargetDir-org.apache.hadoop.hbase.backup.BackupInfo-org.apache.hadoop.conf.Configuration-">cleanupTargetDir</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&nbsp;backupInfo,
209 org.apache.hadoop.conf.Configuration&nbsp;conf)</code>&nbsp;</td>
210 </tr>
211 <tr id="i5" class="rowColor">
212 <td class="colFirst"><code>static void</code></td>
213 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#copyTableRegionInfo-org.apache.hadoop.hbase.client.Connection-org.apache.hadoop.hbase.backup.BackupInfo-org.apache.hadoop.conf.Configuration-">copyTableRegionInfo</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a>&nbsp;conn,
214 <a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&nbsp;backupInfo,
215 org.apache.hadoop.conf.Configuration&nbsp;conf)</code>
216 <div class="block">copy out Table RegionInfo into incremental backup image need to consider move this logic into
217 HBackupFileSystem</div>
218 </td>
219 </tr>
220 <tr id="i6" class="altColor">
221 <td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hbase/tool/LoadIncrementalHFiles.html" title="class in org.apache.hadoop.hbase.tool">LoadIncrementalHFiles</a></code></td>
222 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#createLoader-org.apache.hadoop.conf.Configuration-">createLoader</a></span>(org.apache.hadoop.conf.Configuration&nbsp;config)</code>&nbsp;</td>
223 </tr>
224 <tr id="i7" class="rowColor">
225 <td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hbase/backup/RestoreRequest.html" title="class in org.apache.hadoop.hbase.backup">RestoreRequest</a></code></td>
226 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#createRestoreRequest-java.lang.String-java.lang.String-boolean-org.apache.hadoop.hbase.TableName:A-org.apache.hadoop.hbase.TableName:A-boolean-">createRestoreRequest</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupRootDir,
227 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupId,
228 boolean&nbsp;check,
229 <a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>[]&nbsp;fromTables,
230 <a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>[]&nbsp;toTables,
231 boolean&nbsp;isOverwrite)</code>
232 <div class="block">Create restore request.</div>
233 </td>
234 </tr>
235 <tr id="i8" class="altColor">
236 <td class="colFirst"><code>static boolean</code></td>
237 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#failed-int-">failed</a></span>(int&nbsp;result)</code>&nbsp;</td>
238 </tr>
239 <tr id="i9" class="rowColor">
240 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
241 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#findMostRecentBackupId-java.lang.String:A-">findMostRecentBackupId</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;backupIds)</code>&nbsp;</td>
242 </tr>
243 <tr id="i10" class="altColor">
244 <td class="colFirst"><code>static org.apache.hadoop.fs.Path</code></td>
245 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getBulkOutputDir-java.lang.String-org.apache.hadoop.conf.Configuration-">getBulkOutputDir</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;tableName,
246 org.apache.hadoop.conf.Configuration&nbsp;conf)</code>&nbsp;</td>
247 </tr>
248 <tr id="i11" class="rowColor">
249 <td class="colFirst"><code>static org.apache.hadoop.fs.Path</code></td>
250 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getBulkOutputDir-java.lang.String-org.apache.hadoop.conf.Configuration-boolean-">getBulkOutputDir</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;tableName,
251 org.apache.hadoop.conf.Configuration&nbsp;conf,
252 boolean&nbsp;deleteOnExit)</code>&nbsp;</td>
253 </tr>
254 <tr id="i12" class="altColor">
255 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a></code></td>
256 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getCreationTime-org.apache.hadoop.fs.Path-">getCreationTime</a></span>(org.apache.hadoop.fs.Path&nbsp;p)</code>
257 <div class="block">Given the log file, parse the timestamp from the file name.</div>
258 </td>
259 </tr>
260 <tr id="i13" class="rowColor">
261 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
262 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getFileNameCompatibleString-org.apache.hadoop.hbase.TableName-">getFileNameCompatibleString</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;table)</code>&nbsp;</td>
263 </tr>
264 <tr id="i14" class="altColor">
265 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
266 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getFiles-org.apache.hadoop.fs.FileSystem-org.apache.hadoop.fs.Path-java.util.List-org.apache.hadoop.fs.PathFilter-">getFiles</a></span>(org.apache.hadoop.fs.FileSystem&nbsp;fs,
267 org.apache.hadoop.fs.Path&nbsp;rootDir,
268 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;files,
269 org.apache.hadoop.fs.PathFilter&nbsp;filter)</code>&nbsp;</td>
270 </tr>
271 <tr id="i15" class="rowColor">
272 <td class="colFirst"><code>static long</code></td>
273 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getFilesLength-org.apache.hadoop.fs.FileSystem-org.apache.hadoop.fs.Path-">getFilesLength</a></span>(org.apache.hadoop.fs.FileSystem&nbsp;fs,
274 org.apache.hadoop.fs.Path&nbsp;dir)</code>
275 <div class="block">Get the total length of files under the given directory recursively.</div>
276 </td>
277 </tr>
278 <tr id="i16" class="altColor">
279 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&gt;</code></td>
280 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getHistory-org.apache.hadoop.conf.Configuration-int-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.backup.BackupInfo.Filter...-">getHistory</a></span>(org.apache.hadoop.conf.Configuration&nbsp;conf,
281 int&nbsp;n,
282 org.apache.hadoop.fs.Path&nbsp;backupRootPath,
283 <a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.Filter.html" title="interface in org.apache.hadoop.hbase.backup">BackupInfo.Filter</a>...&nbsp;filters)</code>&nbsp;</td>
284 </tr>
285 <tr id="i17" class="rowColor">
286 <td class="colFirst"><code>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&gt;</code></td>
287 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getHistory-org.apache.hadoop.conf.Configuration-org.apache.hadoop.fs.Path-">getHistory</a></span>(org.apache.hadoop.conf.Configuration&nbsp;conf,
288 org.apache.hadoop.fs.Path&nbsp;backupRootPath)</code>&nbsp;</td>
289 </tr>
290 <tr id="i18" class="altColor">
291 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
292 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getLogBackupDir-java.lang.String-java.lang.String-">getLogBackupDir</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupRootDir,
293 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupId)</code>
294 <div class="block">Given the backup root dir and the backup id, return the log file location for an incremental
295 backup.</div>
296 </td>
297 </tr>
298 <tr id="i19" class="rowColor">
299 <td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a></code></td>
300 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getMinValue-java.util.HashMap-">getMinValue</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;T,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;&nbsp;map)</code>
301 <div class="block">Get the min value for all the Values a map.</div>
302 </td>
303 </tr>
304 <tr id="i20" class="altColor">
305 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
306 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getPath-org.apache.hadoop.fs.Path-">getPath</a></span>(org.apache.hadoop.fs.Path&nbsp;p)</code>
307 <div class="block">Return the 'path' component of a Path.</div>
308 </td>
309 </tr>
310 <tr id="i21" class="rowColor">
311 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;</code></td>
312 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getRSLogTimestampMins-java.util.HashMap-">getRSLogTimestampMins</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;&gt;&nbsp;rsLogTimestampMap)</code>
313 <div class="block">Loop through the RS log timestamp map for the tables, for each RS, find the min timestamp value
314 for the RS among the tables.</div>
315 </td>
316 </tr>
317 <tr id="i22" class="altColor">
318 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
319 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getTableBackupDir-java.lang.String-java.lang.String-org.apache.hadoop.hbase.TableName-">getTableBackupDir</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupRootDir,
320 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupId,
321 <a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</code>
322 <div class="block">Given the backup root dir, backup id and the table name, return the backup image location,
323 which is also where the backup manifest file is.</div>
324 </td>
325 </tr>
326 <tr id="i23" class="rowColor">
327 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
328 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getUniqueWALFileNamePart-org.apache.hadoop.fs.Path-">getUniqueWALFileNamePart</a></span>(org.apache.hadoop.fs.Path&nbsp;p)</code>
329 <div class="block">Returns WAL file name</div>
330 </td>
331 </tr>
332 <tr id="i24" class="altColor">
333 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
334 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getUniqueWALFileNamePart-java.lang.String-">getUniqueWALFileNamePart</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;walFileName)</code>
335 <div class="block">Returns WAL file name</div>
336 </td>
337 </tr>
338 <tr id="i25" class="rowColor">
339 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
340 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#getWALFilesOlderThan-org.apache.hadoop.conf.Configuration-java.util.HashMap-">getWALFilesOlderThan</a></span>(org.apache.hadoop.conf.Configuration&nbsp;c,
341 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;&nbsp;hostTimestampMap)</code>
342 <div class="block">Get list of all old WAL files (WALs and archive)</div>
343 </td>
344 </tr>
345 <tr id="i26" class="altColor">
346 <td class="colFirst"><code>static org.apache.hadoop.fs.FileStatus[]</code></td>
347 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#listStatus-org.apache.hadoop.fs.FileSystem-org.apache.hadoop.fs.Path-org.apache.hadoop.fs.PathFilter-">listStatus</a></span>(org.apache.hadoop.fs.FileSystem&nbsp;fs,
348 org.apache.hadoop.fs.Path&nbsp;dir,
349 org.apache.hadoop.fs.PathFilter&nbsp;filter)</code>
350 <div class="block">Calls fs.listStatus() and treats FileNotFoundException as non-fatal This accommodates
351 differences between hadoop versions, where hadoop 1 does not throw a FileNotFoundException, and
352 return an empty FileStatus[] while Hadoop 2 will throw FileNotFoundException.</div>
353 </td>
354 </tr>
355 <tr id="i27" class="rowColor">
356 <td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a></code></td>
357 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#loadBackupInfo-org.apache.hadoop.fs.Path-java.lang.String-org.apache.hadoop.fs.FileSystem-">loadBackupInfo</a></span>(org.apache.hadoop.fs.Path&nbsp;backupRootPath,
358 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupId,
359 org.apache.hadoop.fs.FileSystem&nbsp;fs)</code>&nbsp;</td>
360 </tr>
361 <tr id="i28" class="altColor">
362 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
363 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#parseHostFromOldLog-org.apache.hadoop.fs.Path-">parseHostFromOldLog</a></span>(org.apache.hadoop.fs.Path&nbsp;p)</code>
364 <div class="block">Parses host name:port from archived WAL path</div>
365 </td>
366 </tr>
367 <tr id="i29" class="rowColor">
368 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
369 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#parseHostNameFromLogFile-org.apache.hadoop.fs.Path-">parseHostNameFromLogFile</a></span>(org.apache.hadoop.fs.Path&nbsp;p)</code>
370 <div class="block">Parses hostname:port from WAL file path</div>
371 </td>
372 </tr>
373 <tr id="i30" class="altColor">
374 <td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>[]</code></td>
375 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#parseTableNames-java.lang.String-">parseTableNames</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;tables)</code>&nbsp;</td>
376 </tr>
377 <tr id="i31" class="rowColor">
378 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&gt;</code></td>
379 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#sortHistoryListDesc-java.util.ArrayList-">sortHistoryListDesc</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&gt;&nbsp;historyList)</code>
380 <div class="block">Sort history list by start time in descending order.</div>
381 </td>
382 </tr>
383 <tr id="i32" class="altColor">
384 <td class="colFirst"><code>static boolean</code></td>
385 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#succeeded-int-">succeeded</a></span>(int&nbsp;result)</code>&nbsp;</td>
386 </tr>
387 <tr id="i33" class="rowColor">
388 <td class="colFirst"><code>static boolean</code></td>
389 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#validate-java.util.HashMap-org.apache.hadoop.conf.Configuration-">validate</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>,<a href="../../../../../../org/apache/hadoop/hbase/backup/impl/BackupManifest.html" title="class in org.apache.hadoop.hbase.backup.impl">BackupManifest</a>&gt;&nbsp;backupManifestMap,
390 org.apache.hadoop.conf.Configuration&nbsp;conf)</code>&nbsp;</td>
391 </tr>
392 <tr id="i34" class="altColor">
393 <td class="colFirst"><code>static void</code></td>
394 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupUtils.html#writeRegioninfoOnFilesystem-org.apache.hadoop.conf.Configuration-org.apache.hadoop.fs.FileSystem-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.client.RegionInfo-">writeRegioninfoOnFilesystem</a></span>(org.apache.hadoop.conf.Configuration&nbsp;conf,
395 org.apache.hadoop.fs.FileSystem&nbsp;fs,
396 org.apache.hadoop.fs.Path&nbsp;regionInfoDir,
397 <a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;regionInfo)</code>
398 <div class="block">Write the .regioninfo file on-disk.</div>
399 </td>
400 </tr>
401 </table>
402 <ul class="blockList">
403 <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
404 <!-- -->
405 </a>
406 <h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
407 <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
408 </ul>
409 </li>
410 </ul>
411 </li>
412 </ul>
413 </div>
414 <div class="details">
415 <ul class="blockList">
416 <li class="blockList">
417 <!-- ============ FIELD DETAIL =========== -->
418 <ul class="blockList">
419 <li class="blockList"><a name="field.detail">
420 <!-- -->
421 </a>
422 <h3>Field Detail</h3>
423 <a name="LOG">
424 <!-- -->
425 </a>
426 <ul class="blockList">
427 <li class="blockList">
428 <h4>LOG</h4>
429 <pre>protected static final&nbsp;org.slf4j.Logger <a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.71">LOG</a></pre>
430 </li>
431 </ul>
432 <a name="LOGNAME_SEPARATOR">
433 <!-- -->
434 </a>
435 <ul class="blockList">
436 <li class="blockList">
437 <h4>LOGNAME_SEPARATOR</h4>
438 <pre>public static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.72">LOGNAME_SEPARATOR</a></pre>
439 <dl>
440 <dt><span class="seeLabel">See Also:</span></dt>
441 <dd><a href="../../../../../../constant-values.html#org.apache.hadoop.hbase.backup.util.BackupUtils.LOGNAME_SEPARATOR">Constant Field Values</a></dd>
442 </dl>
443 </li>
444 </ul>
445 <a name="MILLISEC_IN_HOUR">
446 <!-- -->
447 </a>
448 <ul class="blockListLast">
449 <li class="blockList">
450 <h4>MILLISEC_IN_HOUR</h4>
451 <pre>public static final&nbsp;int <a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.73">MILLISEC_IN_HOUR</a></pre>
452 <dl>
453 <dt><span class="seeLabel">See Also:</span></dt>
454 <dd><a href="../../../../../../constant-values.html#org.apache.hadoop.hbase.backup.util.BackupUtils.MILLISEC_IN_HOUR">Constant Field Values</a></dd>
455 </dl>
456 </li>
457 </ul>
458 </li>
459 </ul>
460 <!-- ========= CONSTRUCTOR DETAIL ======== -->
461 <ul class="blockList">
462 <li class="blockList"><a name="constructor.detail">
463 <!-- -->
464 </a>
465 <h3>Constructor Detail</h3>
466 <a name="BackupUtils--">
467 <!-- -->
468 </a>
469 <ul class="blockListLast">
470 <li class="blockList">
471 <h4>BackupUtils</h4>
472 <pre>private&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.75">BackupUtils</a>()</pre>
473 </li>
474 </ul>
475 </li>
476 </ul>
477 <!-- ============ METHOD DETAIL ========== -->
478 <ul class="blockList">
479 <li class="blockList"><a name="method.detail">
480 <!-- -->
481 </a>
482 <h3>Method Detail</h3>
483 <a name="getRSLogTimestampMins-java.util.HashMap-">
484 <!-- -->
485 </a>
486 <ul class="blockList">
487 <li class="blockList">
488 <h4>getRSLogTimestampMins</h4>
489 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.85">getRSLogTimestampMins</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;&gt;&nbsp;rsLogTimestampMap)</pre>
490 <div class="block">Loop through the RS log timestamp map for the tables, for each RS, find the min timestamp value
491 for the RS among the tables.</div>
492 <dl>
493 <dt><span class="paramLabel">Parameters:</span></dt>
494 <dd><code>rsLogTimestampMap</code> - timestamp map</dd>
495 <dt><span class="returnLabel">Returns:</span></dt>
496 <dd>the min timestamp of each RS</dd>
497 </dl>
498 </li>
499 </ul>
500 <a name="copyTableRegionInfo-org.apache.hadoop.hbase.client.Connection-org.apache.hadoop.hbase.backup.BackupInfo-org.apache.hadoop.conf.Configuration-">
501 <!-- -->
502 </a>
503 <ul class="blockList">
504 <li class="blockList">
505 <h4>copyTableRegionInfo</h4>
506 <pre>public static&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.125">copyTableRegionInfo</a>(<a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a>&nbsp;conn,
507 <a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&nbsp;backupInfo,
508 org.apache.hadoop.conf.Configuration&nbsp;conf)
509 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
510 <div class="block">copy out Table RegionInfo into incremental backup image need to consider move this logic into
511 HBackupFileSystem</div>
512 <dl>
513 <dt><span class="paramLabel">Parameters:</span></dt>
514 <dd><code>conn</code> - connection</dd>
515 <dd><code>backupInfo</code> - backup info</dd>
516 <dd><code>conf</code> - configuration</dd>
517 <dt><span class="throwsLabel">Throws:</span></dt>
518 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - exception</dd>
519 </dl>
520 </li>
521 </ul>
522 <a name="writeRegioninfoOnFilesystem-org.apache.hadoop.conf.Configuration-org.apache.hadoop.fs.FileSystem-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.client.RegionInfo-">
523 <!-- -->
524 </a>
525 <ul class="blockList">
526 <li class="blockList">
527 <h4>writeRegioninfoOnFilesystem</h4>
528 <pre>public static&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.164">writeRegioninfoOnFilesystem</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
529 org.apache.hadoop.fs.FileSystem&nbsp;fs,
530 org.apache.hadoop.fs.Path&nbsp;regionInfoDir,
531 <a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;regionInfo)
532 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
533 <div class="block">Write the .regioninfo file on-disk.</div>
534 <dl>
535 <dt><span class="throwsLabel">Throws:</span></dt>
536 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
537 </dl>
538 </li>
539 </ul>
540 <a name="parseHostNameFromLogFile-org.apache.hadoop.fs.Path-">
541 <!-- -->
542 </a>
543 <ul class="blockList">
544 <li class="blockList">
545 <h4>parseHostNameFromLogFile</h4>
546 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.184">parseHostNameFromLogFile</a>(org.apache.hadoop.fs.Path&nbsp;p)</pre>
547 <div class="block">Parses hostname:port from WAL file path</div>
548 <dl>
549 <dt><span class="paramLabel">Parameters:</span></dt>
550 <dd><code>p</code> - path to WAL file</dd>
551 <dt><span class="returnLabel">Returns:</span></dt>
552 <dd>hostname:port</dd>
553 </dl>
554 </li>
555 </ul>
556 <a name="getUniqueWALFileNamePart-java.lang.String-">
557 <!-- -->
558 </a>
559 <ul class="blockList">
560 <li class="blockList">
561 <h4>getUniqueWALFileNamePart</h4>
562 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.208">getUniqueWALFileNamePart</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;walFileName)</pre>
563 <div class="block">Returns WAL file name</div>
564 <dl>
565 <dt><span class="paramLabel">Parameters:</span></dt>
566 <dd><code>walFileName</code> - WAL file name</dd>
567 <dt><span class="returnLabel">Returns:</span></dt>
568 <dd>WAL file name</dd>
569 </dl>
570 </li>
571 </ul>
572 <a name="getUniqueWALFileNamePart-org.apache.hadoop.fs.Path-">
573 <!-- -->
574 </a>
575 <ul class="blockList">
576 <li class="blockList">
577 <h4>getUniqueWALFileNamePart</h4>
578 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.217">getUniqueWALFileNamePart</a>(org.apache.hadoop.fs.Path&nbsp;p)</pre>
579 <div class="block">Returns WAL file name</div>
580 <dl>
581 <dt><span class="paramLabel">Parameters:</span></dt>
582 <dd><code>p</code> - WAL file path</dd>
583 <dt><span class="returnLabel">Returns:</span></dt>
584 <dd>WAL file name</dd>
585 </dl>
586 </li>
587 </ul>
588 <a name="getFilesLength-org.apache.hadoop.fs.FileSystem-org.apache.hadoop.fs.Path-">
589 <!-- -->
590 </a>
591 <ul class="blockList">
592 <li class="blockList">
593 <h4>getFilesLength</h4>
594 <pre>public static&nbsp;long&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.228">getFilesLength</a>(org.apache.hadoop.fs.FileSystem&nbsp;fs,
595 org.apache.hadoop.fs.Path&nbsp;dir)
596 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
597 <div class="block">Get the total length of files under the given directory recursively.</div>
598 <dl>
599 <dt><span class="paramLabel">Parameters:</span></dt>
600 <dd><code>fs</code> - The hadoop file system</dd>
601 <dd><code>dir</code> - The target directory</dd>
602 <dt><span class="returnLabel">Returns:</span></dt>
603 <dd>the total length of files</dd>
604 <dt><span class="throwsLabel">Throws:</span></dt>
605 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - exception</dd>
606 </dl>
607 </li>
608 </ul>
609 <a name="getWALFilesOlderThan-org.apache.hadoop.conf.Configuration-java.util.HashMap-">
610 <!-- -->
611 </a>
612 <ul class="blockList">
613 <li class="blockList">
614 <h4>getWALFilesOlderThan</h4>
615 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.250">getWALFilesOlderThan</a>(org.apache.hadoop.conf.Configuration&nbsp;c,
616 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;&nbsp;hostTimestampMap)
617 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
618 <div class="block">Get list of all old WAL files (WALs and archive)</div>
619 <dl>
620 <dt><span class="paramLabel">Parameters:</span></dt>
621 <dd><code>c</code> - configuration</dd>
622 <dd><code>hostTimestampMap</code> - {host,timestamp} map</dd>
623 <dt><span class="returnLabel">Returns:</span></dt>
624 <dd>list of WAL files</dd>
625 <dt><span class="throwsLabel">Throws:</span></dt>
626 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - exception</dd>
627 </dl>
628 </li>
629 </ul>
630 <a name="parseTableNames-java.lang.String-">
631 <!-- -->
632 </a>
633 <ul class="blockList">
634 <li class="blockList">
635 <h4>parseTableNames</h4>
636 <pre>public static&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>[]&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.280">parseTableNames</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;tables)</pre>
637 </li>
638 </ul>
639 <a name="checkPathExist-java.lang.String-org.apache.hadoop.conf.Configuration-">
640 <!-- -->
641 </a>
642 <ul class="blockList">
643 <li class="blockList">
644 <h4>checkPathExist</h4>
645 <pre>public static&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.300">checkPathExist</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupStr,
646 org.apache.hadoop.conf.Configuration&nbsp;conf)
647 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
648 <div class="block">Check whether the backup path exist</div>
649 <dl>
650 <dt><span class="paramLabel">Parameters:</span></dt>
651 <dd><code>backupStr</code> - backup</dd>
652 <dd><code>conf</code> - configuration</dd>
653 <dt><span class="returnLabel">Returns:</span></dt>
654 <dd>Yes if path exists</dd>
655 <dt><span class="throwsLabel">Throws:</span></dt>
656 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - exception</dd>
657 </dl>
658 </li>
659 </ul>
660 <a name="checkTargetDir-java.lang.String-org.apache.hadoop.conf.Configuration-">
661 <!-- -->
662 </a>
663 <ul class="blockList">
664 <li class="blockList">
665 <h4>checkTargetDir</h4>
666 <pre>public static&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.320">checkTargetDir</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupRootPath,
667 org.apache.hadoop.conf.Configuration&nbsp;conf)
668 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
669 <div class="block">Check target path first, confirm it doesn't exist before backup</div>
670 <dl>
671 <dt><span class="paramLabel">Parameters:</span></dt>
672 <dd><code>backupRootPath</code> - backup destination path</dd>
673 <dd><code>conf</code> - configuration</dd>
674 <dt><span class="throwsLabel">Throws:</span></dt>
675 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - exception</dd>
676 </dl>
677 </li>
678 </ul>
679 <a name="getMinValue-java.util.HashMap-">
680 <!-- -->
681 </a>
682 <ul class="blockList">
683 <li class="blockList">
684 <h4>getMinValue</h4>
685 <pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.350">getMinValue</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;T,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;&nbsp;map)</pre>
686 <div class="block">Get the min value for all the Values a map.</div>
687 <dl>
688 <dt><span class="paramLabel">Parameters:</span></dt>
689 <dd><code>map</code> - map</dd>
690 <dt><span class="returnLabel">Returns:</span></dt>
691 <dd>the min value</dd>
692 </dl>
693 </li>
694 </ul>
695 <a name="parseHostFromOldLog-org.apache.hadoop.fs.Path-">
696 <!-- -->
697 </a>
698 <ul class="blockList">
699 <li class="blockList">
700 <h4>parseHostFromOldLog</h4>
701 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.366">parseHostFromOldLog</a>(org.apache.hadoop.fs.Path&nbsp;p)</pre>
702 <div class="block">Parses host name:port from archived WAL path</div>
703 <dl>
704 <dt><span class="paramLabel">Parameters:</span></dt>
705 <dd><code>p</code> - path</dd>
706 <dt><span class="returnLabel">Returns:</span></dt>
707 <dd>host name</dd>
708 </dl>
709 </li>
710 </ul>
711 <a name="getCreationTime-org.apache.hadoop.fs.Path-">
712 <!-- -->
713 </a>
714 <ul class="blockList">
715 <li class="blockList">
716 <h4>getCreationTime</h4>
717 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.384">getCreationTime</a>(org.apache.hadoop.fs.Path&nbsp;p)
718 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
719 <div class="block">Given the log file, parse the timestamp from the file name. The timestamp is the last number.</div>
720 <dl>
721 <dt><span class="paramLabel">Parameters:</span></dt>
722 <dd><code>p</code> - a path to the log file</dd>
723 <dt><span class="returnLabel">Returns:</span></dt>
724 <dd>the timestamp</dd>
725 <dt><span class="throwsLabel">Throws:</span></dt>
726 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - exception</dd>
727 </dl>
728 </li>
729 </ul>
730 <a name="getFiles-org.apache.hadoop.fs.FileSystem-org.apache.hadoop.fs.Path-java.util.List-org.apache.hadoop.fs.PathFilter-">
731 <!-- -->
732 </a>
733 <ul class="blockList">
734 <li class="blockList">
735 <h4>getFiles</h4>
736 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.393">getFiles</a>(org.apache.hadoop.fs.FileSystem&nbsp;fs,
737 org.apache.hadoop.fs.Path&nbsp;rootDir,
738 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;files,
739 org.apache.hadoop.fs.PathFilter&nbsp;filter)
740 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
741 <dl>
742 <dt><span class="throwsLabel">Throws:</span></dt>
743 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
744 </dl>
745 </li>
746 </ul>
747 <a name="cleanupBackupData-org.apache.hadoop.hbase.backup.BackupInfo-org.apache.hadoop.conf.Configuration-">
748 <!-- -->
749 </a>
750 <ul class="blockList">
751 <li class="blockList">
752 <h4>cleanupBackupData</h4>
753 <pre>public static&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.410">cleanupBackupData</a>(<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&nbsp;context,
754 org.apache.hadoop.conf.Configuration&nbsp;conf)
755 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
756 <dl>
757 <dt><span class="throwsLabel">Throws:</span></dt>
758 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
759 </dl>
760 </li>
761 </ul>
762 <a name="cleanupHLogDir-org.apache.hadoop.hbase.backup.BackupInfo-org.apache.hadoop.conf.Configuration-">
763 <!-- -->
764 </a>
765 <ul class="blockList">
766 <li class="blockList">
767 <h4>cleanupHLogDir</h4>
768 <pre>private static&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.421">cleanupHLogDir</a>(<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&nbsp;backupInfo,
769 org.apache.hadoop.conf.Configuration&nbsp;conf)
770 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
771 <div class="block">Clean up directories which are generated when DistCp copying hlogs</div>
772 <dl>
773 <dt><span class="paramLabel">Parameters:</span></dt>
774 <dd><code>backupInfo</code> - backup info</dd>
775 <dd><code>conf</code> - configuration</dd>
776 <dt><span class="throwsLabel">Throws:</span></dt>
777 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - exception</dd>
778 </dl>
779 </li>
780 </ul>
781 <a name="cleanupTargetDir-org.apache.hadoop.hbase.backup.BackupInfo-org.apache.hadoop.conf.Configuration-">
782 <!-- -->
783 </a>
784 <ul class="blockList">
785 <li class="blockList">
786 <h4>cleanupTargetDir</h4>
787 <pre>private static&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.440">cleanupTargetDir</a>(<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&nbsp;backupInfo,
788 org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
789 </li>
790 </ul>
791 <a name="getTableBackupDir-java.lang.String-java.lang.String-org.apache.hadoop.hbase.TableName-">
792 <!-- -->
793 </a>
794 <ul class="blockList">
795 <li class="blockList">
796 <h4>getTableBackupDir</h4>
797 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.485">getTableBackupDir</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupRootDir,
798 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupId,
799 <a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
800 <div class="block">Given the backup root dir, backup id and the table name, return the backup image location,
801 which is also where the backup manifest file is. return value look like:
802 "hdfs://backup.hbase.org:9000/user/biadmin/backup1/backup_1396650096738/default/t1_dn/"</div>
803 <dl>
804 <dt><span class="paramLabel">Parameters:</span></dt>
805 <dd><code>backupRootDir</code> - backup root directory</dd>
806 <dd><code>backupId</code> - backup id</dd>
807 <dd><code>tableName</code> - table name</dd>
808 <dt><span class="returnLabel">Returns:</span></dt>
809 <dd>backupPath String for the particular table</dd>
810 </dl>
811 </li>
812 </ul>
813 <a name="sortHistoryListDesc-java.util.ArrayList-">
814 <!-- -->
815 </a>
816 <ul class="blockList">
817 <li class="blockList">
818 <h4>sortHistoryListDesc</h4>
819 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.497">sortHistoryListDesc</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&gt;&nbsp;historyList)</pre>
820 <div class="block">Sort history list by start time in descending order.</div>
821 <dl>
822 <dt><span class="paramLabel">Parameters:</span></dt>
823 <dd><code>historyList</code> - history list</dd>
824 <dt><span class="returnLabel">Returns:</span></dt>
825 <dd>sorted list of BackupCompleteData</dd>
826 </dl>
827 </li>
828 </ul>
829 <a name="listStatus-org.apache.hadoop.fs.FileSystem-org.apache.hadoop.fs.Path-org.apache.hadoop.fs.PathFilter-">
830 <!-- -->
831 </a>
832 <ul class="blockList">
833 <li class="blockList">
834 <h4>listStatus</h4>
835 <pre>public static&nbsp;org.apache.hadoop.fs.FileStatus[]&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.519">listStatus</a>(org.apache.hadoop.fs.FileSystem&nbsp;fs,
836 org.apache.hadoop.fs.Path&nbsp;dir,
837 org.apache.hadoop.fs.PathFilter&nbsp;filter)
838 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
839 <div class="block">Calls fs.listStatus() and treats FileNotFoundException as non-fatal This accommodates
840 differences between hadoop versions, where hadoop 1 does not throw a FileNotFoundException, and
841 return an empty FileStatus[] while Hadoop 2 will throw FileNotFoundException.</div>
842 <dl>
843 <dt><span class="paramLabel">Parameters:</span></dt>
844 <dd><code>fs</code> - file system</dd>
845 <dd><code>dir</code> - directory</dd>
846 <dd><code>filter</code> - path filter</dd>
847 <dt><span class="returnLabel">Returns:</span></dt>
848 <dd>null if dir is empty or doesn't exist, otherwise FileStatus array</dd>
849 <dt><span class="throwsLabel">Throws:</span></dt>
850 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
851 </dl>
852 </li>
853 </ul>
854 <a name="getPath-org.apache.hadoop.fs.Path-">
855 <!-- -->
856 </a>
857 <ul class="blockList">
858 <li class="blockList">
859 <h4>getPath</h4>
860 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.547">getPath</a>(org.apache.hadoop.fs.Path&nbsp;p)</pre>
861 <div class="block">Return the 'path' component of a Path. In Hadoop, Path is an URI. This method returns the
862 'path' component of a Path's URI: e.g. If a Path is
863 <code>hdfs://example.org:9000/hbase_trunk/TestTable/compaction.dir</code>, this method returns
864 <code>/hbase_trunk/TestTable/compaction.dir</code>. This method is useful if you want to print
865 out a Path without qualifying Filesystem instance.</div>
866 <dl>
867 <dt><span class="paramLabel">Parameters:</span></dt>
868 <dd><code>p</code> - file system Path whose 'path' component we are to return.</dd>
869 <dt><span class="returnLabel">Returns:</span></dt>
870 <dd>Path portion of the Filesystem</dd>
871 </dl>
872 </li>
873 </ul>
874 <a name="getLogBackupDir-java.lang.String-java.lang.String-">
875 <!-- -->
876 </a>
877 <ul class="blockList">
878 <li class="blockList">
879 <h4>getLogBackupDir</h4>
880 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.558">getLogBackupDir</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupRootDir,
881 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupId)</pre>
882 <div class="block">Given the backup root dir and the backup id, return the log file location for an incremental
883 backup.</div>
884 <dl>
885 <dt><span class="paramLabel">Parameters:</span></dt>
886 <dd><code>backupRootDir</code> - backup root directory</dd>
887 <dd><code>backupId</code> - backup id</dd>
888 <dt><span class="returnLabel">Returns:</span></dt>
889 <dd>logBackupDir: ".../user/biadmin/backup1/WALs/backup_1396650096738"</dd>
890 </dl>
891 </li>
892 </ul>
893 <a name="getHistory-org.apache.hadoop.conf.Configuration-org.apache.hadoop.fs.Path-">
894 <!-- -->
895 </a>
896 <ul class="blockList">
897 <li class="blockList">
898 <h4>getHistory</h4>
899 <pre>private static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.563">getHistory</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
900 org.apache.hadoop.fs.Path&nbsp;backupRootPath)
901 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
902 <dl>
903 <dt><span class="throwsLabel">Throws:</span></dt>
904 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
905 </dl>
906 </li>
907 </ul>
908 <a name="getHistory-org.apache.hadoop.conf.Configuration-int-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.backup.BackupInfo.Filter...-">
909 <!-- -->
910 </a>
911 <ul class="blockList">
912 <li class="blockList">
913 <h4>getHistory</h4>
914 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.607">getHistory</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
915 int&nbsp;n,
916 org.apache.hadoop.fs.Path&nbsp;backupRootPath,
917 <a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.Filter.html" title="interface in org.apache.hadoop.hbase.backup">BackupInfo.Filter</a>...&nbsp;filters)
918 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
919 <dl>
920 <dt><span class="throwsLabel">Throws:</span></dt>
921 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
922 </dl>
923 </li>
924 </ul>
925 <a name="loadBackupInfo-org.apache.hadoop.fs.Path-java.lang.String-org.apache.hadoop.fs.FileSystem-">
926 <!-- -->
927 </a>
928 <ul class="blockList">
929 <li class="blockList">
930 <h4>loadBackupInfo</h4>
931 <pre>public static&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/backup/BackupInfo.html" title="class in org.apache.hadoop.hbase.backup">BackupInfo</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.629">loadBackupInfo</a>(org.apache.hadoop.fs.Path&nbsp;backupRootPath,
932 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupId,
933 org.apache.hadoop.fs.FileSystem&nbsp;fs)
934 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
935 <dl>
936 <dt><span class="throwsLabel">Throws:</span></dt>
937 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
938 </dl>
939 </li>
940 </ul>
941 <a name="createRestoreRequest-java.lang.String-java.lang.String-boolean-org.apache.hadoop.hbase.TableName:A-org.apache.hadoop.hbase.TableName:A-boolean-">
942 <!-- -->
943 </a>
944 <ul class="blockList">
945 <li class="blockList">
946 <h4>createRestoreRequest</h4>
947 <pre>public static&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/backup/RestoreRequest.html" title="class in org.apache.hadoop.hbase.backup">RestoreRequest</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.656">createRestoreRequest</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupRootDir,
948 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;backupId,
949 boolean&nbsp;check,
950 <a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>[]&nbsp;fromTables,
951 <a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>[]&nbsp;toTables,
952 boolean&nbsp;isOverwrite)</pre>
953 <div class="block">Create restore request.</div>
954 <dl>
955 <dt><span class="paramLabel">Parameters:</span></dt>
956 <dd><code>backupRootDir</code> - backup root dir</dd>
957 <dd><code>backupId</code> - backup id</dd>
958 <dd><code>check</code> - check only</dd>
959 <dd><code>fromTables</code> - table list from</dd>
960 <dd><code>toTables</code> - table list to</dd>
961 <dd><code>isOverwrite</code> - overwrite data</dd>
962 <dt><span class="returnLabel">Returns:</span></dt>
963 <dd>request obkect</dd>
964 </dl>
965 </li>
966 </ul>
967 <a name="validate-java.util.HashMap-org.apache.hadoop.conf.Configuration-">
968 <!-- -->
969 </a>
970 <ul class="blockList">
971 <li class="blockList">
972 <h4>validate</h4>
973 <pre>public static&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.665">validate</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>,<a href="../../../../../../org/apache/hadoop/hbase/backup/impl/BackupManifest.html" title="class in org.apache.hadoop.hbase.backup.impl">BackupManifest</a>&gt;&nbsp;backupManifestMap,
974 org.apache.hadoop.conf.Configuration&nbsp;conf)
975 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
976 <dl>
977 <dt><span class="throwsLabel">Throws:</span></dt>
978 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
979 </dl>
980 </li>
981 </ul>
982 <a name="getBulkOutputDir-java.lang.String-org.apache.hadoop.conf.Configuration-boolean-">
983 <!-- -->
984 </a>
985 <ul class="blockList">
986 <li class="blockList">
987 <h4>getBulkOutputDir</h4>
988 <pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.693">getBulkOutputDir</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;tableName,
989 org.apache.hadoop.conf.Configuration&nbsp;conf,
990 boolean&nbsp;deleteOnExit)
991 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
992 <dl>
993 <dt><span class="throwsLabel">Throws:</span></dt>
994 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
995 </dl>
996 </li>
997 </ul>
998 <a name="getBulkOutputDir-java.lang.String-org.apache.hadoop.conf.Configuration-">
999 <!-- -->
1000 </a>
1001 <ul class="blockList">
1002 <li class="blockList">
1003 <h4>getBulkOutputDir</h4>
1004 <pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.707">getBulkOutputDir</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;tableName,
1005 org.apache.hadoop.conf.Configuration&nbsp;conf)
1006 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
1007 <dl>
1008 <dt><span class="throwsLabel">Throws:</span></dt>
1009 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
1010 </dl>
1011 </li>
1012 </ul>
1013 <a name="getFileNameCompatibleString-org.apache.hadoop.hbase.TableName-">
1014 <!-- -->
1015 </a>
1016 <ul class="blockList">
1017 <li class="blockList">
1018 <h4>getFileNameCompatibleString</h4>
1019 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.711">getFileNameCompatibleString</a>(<a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;table)</pre>
1020 </li>
1021 </ul>
1022 <a name="failed-int-">
1023 <!-- -->
1024 </a>
1025 <ul class="blockList">
1026 <li class="blockList">
1027 <h4>failed</h4>
1028 <pre>public static&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.715">failed</a>(int&nbsp;result)</pre>
1029 </li>
1030 </ul>
1031 <a name="succeeded-int-">
1032 <!-- -->
1033 </a>
1034 <ul class="blockList">
1035 <li class="blockList">
1036 <h4>succeeded</h4>
1037 <pre>public static&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.719">succeeded</a>(int&nbsp;result)</pre>
1038 </li>
1039 </ul>
1040 <a name="createLoader-org.apache.hadoop.conf.Configuration-">
1041 <!-- -->
1042 </a>
1043 <ul class="blockList">
1044 <li class="blockList">
1045 <h4>createLoader</h4>
1046 <pre>public static&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/tool/LoadIncrementalHFiles.html" title="class in org.apache.hadoop.hbase.tool">LoadIncrementalHFiles</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.723">createLoader</a>(org.apache.hadoop.conf.Configuration&nbsp;config)
1047 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
1048 <dl>
1049 <dt><span class="throwsLabel">Throws:</span></dt>
1050 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
1051 </dl>
1052 </li>
1053 </ul>
1054 <a name="findMostRecentBackupId-java.lang.String:A-">
1055 <!-- -->
1056 </a>
1057 <ul class="blockListLast">
1058 <li class="blockList">
1059 <h4>findMostRecentBackupId</h4>
1060 <pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/backup/util/BackupUtils.html#line.744">findMostRecentBackupId</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;backupIds)</pre>
1061 </li>
1062 </ul>
1063 </li>
1064 </ul>
1065 </li>
1066 </ul>
1067 </div>
1068 </div>
1069 <!-- ========= END OF CLASS DATA ========= -->
1070 <!-- ======= START OF BOTTOM NAVBAR ====== -->
1071 <div class="bottomNav"><a name="navbar.bottom">
1072 <!-- -->
1073 </a>
1074 <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
1075 <a name="navbar.bottom.firstrow">
1076 <!-- -->
1077 </a>
1078 <ul class="navList" title="Navigation">
1079 <li><a href="../../../../../../overview-summary.html">Overview</a></li>
1080 <li><a href="package-summary.html">Package</a></li>
1081 <li class="navBarCell1Rev">Class</li>
1082 <li><a href="class-use/BackupUtils.html">Use</a></li>
1083 <li><a href="package-tree.html">Tree</a></li>
1084 <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
1085 <li><a href="../../../../../../index-all.html">Index</a></li>
1086 <li><a href="../../../../../../help-doc.html">Help</a></li>
1087 </ul>
1088 </div>
1089 <div class="subNav">
1090 <ul class="navList">
1091 <li><a href="../../../../../../org/apache/hadoop/hbase/backup/util/BackupSet.html" title="class in org.apache.hadoop.hbase.backup.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
1092 <li><a href="../../../../../../org/apache/hadoop/hbase/backup/util/RestoreTool.html" title="class in org.apache.hadoop.hbase.backup.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
1093 </ul>
1094 <ul class="navList">
1095 <li><a href="../../../../../../index.html?org/apache/hadoop/hbase/backup/util/BackupUtils.html" target="_top">Frames</a></li>
1096 <li><a href="BackupUtils.html" target="_top">No&nbsp;Frames</a></li>
1097 </ul>
1098 <ul class="navList" id="allclasses_navbar_bottom">
1099 <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
1100 </ul>
1101 <div>
1102 <script type="text/javascript"><!--
1103 allClassesLink = document.getElementById("allclasses_navbar_bottom");
1104 if(window==top) {
1105 allClassesLink.style.display = "block";
1106 }
1107 else {
1108 allClassesLink.style.display = "none";
1109 }
1110 //-->
1111 </script>
1112 </div>
1113 <div>
1114 <ul class="subNavList">
1115 <li>Summary:&nbsp;</li>
1116 <li>Nested&nbsp;|&nbsp;</li>
1117 <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
1118 <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
1119 <li><a href="#method.summary">Method</a></li>
1120 </ul>
1121 <ul class="subNavList">
1122 <li>Detail:&nbsp;</li>
1123 <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
1124 <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
1125 <li><a href="#method.detail">Method</a></li>
1126 </ul>
1127 </div>
1128 <a name="skip.navbar.bottom">
1129 <!-- -->
1130 </a></div>
1131 <!-- ======== END OF BOTTOM NAVBAR ======= -->
1132 <p class="legalCopy"><small>Copyright &#169; 2007&#x2013;2018 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
1133 </body>
1134 </html>