Yang, Tong 6182f91ba8 MRS component operation guide_normal 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2022-12-09 14:55:21 +00:00

205 lines
18 KiB
HTML

<a name="mrs_01_1865"></a><a name="mrs_01_1865"></a>
<h1 class="topictitle1">Ranger Log Overview</h1>
<div id="body1595917982072"><div class="section" id="mrs_01_1865__sc9b23b30799b48d18a62022db227618d"><h4 class="sectiontitle">Log Description</h4><p id="mrs_01_1865__en-us_topic_0046736733_p2413464"><strong id="mrs_01_1865__b168234625619">Log path</strong>: The default storage path of Ranger logs is <strong id="mrs_01_1865__b768714611569">/var/log/Bigdata/ranger/</strong><em id="mrs_01_1865__i19688124611566">Role name</em>.</p>
<ul id="mrs_01_1865__en-us_topic_0046736733_ul61272867"><li id="mrs_01_1865__en-us_topic_0046736733_li14584895">RangerAdmin: /var/log/Bigdata/ranger/rangeradmin (run logs)</li><li id="mrs_01_1865__en-us_topic_0046736733_li64155199">TagSync: /var/log/Bigdata/ranger/tagsync (run logs)</li><li id="mrs_01_1865__en-us_topic_0046736733_li40525883">UserSync: /var/log/Bigdata/ranger/usersync (run logs)</li></ul>
<p id="mrs_01_1865__en-us_topic_0046736733_p61371058"><strong id="mrs_01_1865__b320511565711">Log archive rule</strong>: The automatic compression and archive function is enabled for Ranger logs. By default, when the size of a log file exceeds 20 MB, the log file is automatically compressed. The naming rule of the compressed log file is as follows: <em id="mrs_01_1865__i112109555717">&lt;Original log file name&gt;-&lt;yyyy-mm-dd_hh-mm-ss&gt;.[ID]</em><strong id="mrs_01_1865__b021115515575">.log.zip</strong>. A maximum of 20 compressed file are retained.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1865__en-us_topic_0046736733_table4999822" frame="border" border="1" rules="all"><caption><b>Table 1 </b>HDFS log list</caption><thead align="left"><tr id="mrs_01_1865__en-us_topic_0046736733_row22724481"><th align="left" class="cellrowborder" valign="top" width="27.27272727272727%" id="mcps1.3.1.5.2.4.1.1"><p id="mrs_01_1865__en-us_topic_0046736733_p28743664">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="39.39393939393939%" id="mcps1.3.1.5.2.4.1.2"><p id="mrs_01_1865__en-us_topic_0046736733_p46535472">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.1.5.2.4.1.3"><p id="mrs_01_1865__en-us_topic_0046736733_p11276905">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_1865__en-us_topic_0046736733_row41014082"><td class="cellrowborder" rowspan="8" valign="top" width="27.27272727272727%" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__en-us_topic_0046736733_p33806307">RangerAdmin run log file</p>
</td>
<td class="cellrowborder" valign="top" width="39.39393939393939%" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__en-us_topic_0046736733_p53956341">access_log.<em id="mrs_01_1865__i12755926185911">&lt;DATE&gt;</em>.log</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.5.2.4.1.3 "><p id="mrs_01_1865__p4865144295920">Tomcat access log</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row8378525"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__en-us_topic_0046736733_p7571935">catalina.out</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p286410428597">Tomcat service run log</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row17014337"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__en-us_topic_0046736733_p35984094">gc-worker.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p1286334216593">RangerAdmin garbage collection (GC) log</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row59947829"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p1573114495913">postinstallDetail.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p48631342175913">Work log generated after an instance is started before installation</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row1020452"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p177311044155919">prestartDetail.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p16862134255919">Log that records preparations before instance startup</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row60077381"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p177301447592">ranger-admin-<em id="mrs_01_1865__i5243113215016">&lt;hostname&gt;</em>.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p14861114216594">RangerAdmin run log</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row29798422"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p273094485912">ranger_admin_sql-<em id="mrs_01_1865__i12395153819020">&lt;hostname&gt;</em>.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p1686104215910">RangerAdmin log used to retrieve DBService</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row39743256"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p1730104445917">startDetail.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p2086019429594">Instance startup log</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row2581871"><td class="cellrowborder" rowspan="7" valign="top" width="27.27272727272727%" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p192638484019">TagSync run log</p>
</td>
<td class="cellrowborder" valign="top" width="39.39393939393939%" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p16729184419591">cleanupDetail.log</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.5.2.4.1.3 "><p id="mrs_01_1865__p985994245910">Instance clearing log</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row52714937"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p17729944185912">gc-worker.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p2858154265917">GC log file of an instance</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row6170971"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p3728044155913">postinstallDetail.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p2858154215596">Work log generated after an instance is started before installation</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row55692015"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p1372813448594">prestartDetail.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p17857442155910">Log that records preparations before instance startup</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row22169086"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p137281344145915">ranger-tagsync-<em id="mrs_01_1865__i4200182217318">&lt;hostname&gt;</em>.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p28561842155918">TagSync run log</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row36893205"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p1972784445917">startDetail.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p188558424596">Instance startup log</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row18958665"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p197271544185916">tagsync.out</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p1283564285916">TagSync run log</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row47300984"><td class="cellrowborder" rowspan="7" valign="top" width="27.27272727272727%" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p7263648302">UserSync run log</p>
</td>
<td class="cellrowborder" valign="top" width="39.39393939393939%" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p4727134414598">auth.log</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.1.5.2.4.1.3 "><p id="mrs_01_1865__p4180194612593">UnixAuth service run log</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row37043359"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p4726164420596">cleanupDetail.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p1179114685914">Instance clearing log</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row27006329"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p472694418592">gc-worker.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p517911467596">GC log file of an instance</p>
</td>
</tr>
<tr id="mrs_01_1865__row069818614718"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p172634425914">postinstallDetail.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p1217818467591">Work log generated after an instance is started before installation</p>
</td>
</tr>
<tr id="mrs_01_1865__row1262041612475"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p15706644165915">prestartDetail.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p191781546185910">Log that records preparations before instance startup</p>
</td>
</tr>
<tr id="mrs_01_1865__row786571154720"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p77427441422">ranger-usersync-<em id="mrs_01_1865__i1681813242312">&lt;hostname&gt;</em>.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p127411744823">UserSync run log</p>
</td>
</tr>
<tr id="mrs_01_1865__row1024413462225"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.1 "><p id="mrs_01_1865__p15741184417217">startDetail.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.4.1.2 "><p id="mrs_01_1865__p1674004413214">Instance startup log</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="mrs_01_1865__section125611913175319"><h4 class="sectiontitle">Log Levels</h4><p id="mrs_01_1865__en-us_topic_0046736733_p57126295"><a href="#mrs_01_1865__t9a69df8da9a84f41bb6fd3e008d7a3b8">Table 2</a> describes the log levels provided by HDFS. The priorities of log levels are FATAL, ERROR, WARN, INFO, and DEBUG in descending order. Logs whose levels are higher than or equal to the specified level are printed. The number of printed logs decreases as the specified log level increases.</p>
<div class="tablenoborder"><a name="mrs_01_1865__t9a69df8da9a84f41bb6fd3e008d7a3b8"></a><a name="t9a69df8da9a84f41bb6fd3e008d7a3b8"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1865__t9a69df8da9a84f41bb6fd3e008d7a3b8" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Log levels</caption><thead align="left"><tr id="mrs_01_1865__en-us_topic_0046736733_row11055947"><th align="left" class="cellrowborder" valign="top" width="40.400000000000006%" id="mcps1.3.2.3.2.3.1.1"><p id="mrs_01_1865__en-us_topic_0046736733_p23116495"><strong id="mrs_01_1865__b99417231012">Level</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="59.599999999999994%" id="mcps1.3.2.3.2.3.1.2"><p id="mrs_01_1865__en-us_topic_0046736733_p7600288"><strong id="mrs_01_1865__b47601191309">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_1865__en-us_topic_0046736733_row37683526"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.2.3.2.3.1.1 "><p id="mrs_01_1865__p1273412281084">FATAL</p>
</td>
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.2.3.2.3.1.2 "><p id="mrs_01_1865__p13734828287">Logs of this level record fatal error information about the current event processing that may result in a system crash.</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row45974909"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.2.3.2.3.1.1 "><p id="mrs_01_1865__p773419285814">ERROR</p>
</td>
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.2.3.2.3.1.2 "><p id="mrs_01_1865__p1873482820810">Logs of this level record error information about the current event processing, which indicates that system running is abnormal.</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row17538258"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.2.3.2.3.1.1 "><p id="mrs_01_1865__p1873418287810">WARN</p>
</td>
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.2.3.2.3.1.2 "><p id="mrs_01_1865__p97348282815">Logs of this level record abnormal information about the current event processing. These abnormalities will not result in system faults.</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row59755124"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.2.3.2.3.1.1 "><p id="mrs_01_1865__p0734182812811">INFO</p>
</td>
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.2.3.2.3.1.2 "><p id="mrs_01_1865__p97342282813">Logs of this level record normal running status information about the system and events.</p>
</td>
</tr>
<tr id="mrs_01_1865__en-us_topic_0046736733_row30479638"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.2.3.2.3.1.1 "><p id="mrs_01_1865__p773414286814">DEBUG</p>
</td>
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.2.3.2.3.1.2 "><p id="mrs_01_1865__p167347289818">Logs of this level record the system information and system debugging information.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="mrs_01_1865__en-us_topic_0046736733_p66684983">To modify log levels, perform the following operations:</p>
<ol id="mrs_01_1865__ol2049469418545"><li id="mrs_01_1865__li2783786118545"><span>Log in to FusionInsight Manager.</span></li><li id="mrs_01_1865__li4921415818545"><span>Choose <span id="mrs_01_1865__text89365426115"><strong id="mrs_01_1865__b093684216117">Cluster</strong></span> &gt; <strong id="mrs_01_1865__b1936174212119">Services</strong> &gt; <strong id="mrs_01_1865__b793644210116">Ranger</strong> &gt; <strong id="mrs_01_1865__b199376423120">Configurations</strong>.</span></li><li id="mrs_01_1865__li4027424618545"><span>Select <strong id="mrs_01_1865__b184951350712">All Configurations</strong>.</span></li><li id="mrs_01_1865__li2692390118545"><span>On the menu bar on the left, select the log menu of the target role.</span></li><li id="mrs_01_1865__li4098852518545"><span>Select a desired log level.</span></li><li id="mrs_01_1865__li1719026918545"><span>Click <strong id="mrs_01_1865__b186319554112">Save</strong>. In the displayed dialog box, click <strong id="mrs_01_1865__b986805510118">OK</strong> to make the configuration take effect.</span><p><div class="note" id="mrs_01_1865__note3173619118545"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p class="text" id="mrs_01_1865__p3335240518545">The configurations take effect immediately without the need to restart the service.</p>
</div></div>
</p></li></ol>
</div>
<div class="section" id="mrs_01_1865__sb12fb11bc4f74242902e28769eaf5e0f"><h4 class="sectiontitle">Log Formats</h4><p id="mrs_01_1865__en-us_topic_0046736733_p33054158">The following table lists the Ranger log formats.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1865__en-us_topic_0046736733_table29051967" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Log formats</caption><thead align="left"><tr id="mrs_01_1865__en-us_topic_0046736733_row53756949"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.3.2.4.1.1"><p id="mrs_01_1865__en-us_topic_0046736733_p59345638">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.3.2.4.1.2"><p id="mrs_01_1865__en-us_topic_0046736733_p42267412">Format</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.3.2.4.1.3"><p id="mrs_01_1865__en-us_topic_0046736733_p1108358">Example Value</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_1865__en-us_topic_0046736733_row22668197"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.3.2.4.1.1 "><p id="mrs_01_1865__en-us_topic_0046736733_p24184664">Run log</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.3.2.4.1.2 "><p id="mrs_01_1865__en-us_topic_0046736733_p12800776">&lt;<em id="mrs_01_1865__i105215201425">yyyy-MM-dd HH:mm:ss,SSS</em>&gt;|&lt;<em id="mrs_01_1865__i105713205214">Log level</em>&gt;|&lt;<em id="mrs_01_1865__i175710201529">Name of the thread that generates the log</em>&gt;|&lt;<em id="mrs_01_1865__i7572201623">Message in the log</em>&gt;|&lt;<em id="mrs_01_1865__i85712201828">Location where the log event occurs</em>&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.3.2.4.1.3 "><p id="mrs_01_1865__en-us_topic_0046736733_p30229916">2020-04-29 20:09:28,543 | INFO | http-bio-21401-exec-56 | Request comes from API call, skip cas filter. | CasAuthenticationFilterWrapper.java:25</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1849.html">Using Ranger (MRS 3.x)</a></div>
</div>
</div>