forked from docs/doc-exports
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>
17 lines
2.0 KiB
HTML
17 lines
2.0 KiB
HTML
<a name="mrs_01_2113"></a><a name="mrs_01_2113"></a>
|
||
|
||
<h1 class="topictitle1">What Should I Do When the ZooKeeper Client Fails to Refresh a TGT?</h1>
|
||
<div id="body1595905686491"><div class="section" id="mrs_01_2113__s947ee4767c614313835fffc42a707030"><h4 class="sectiontitle">Question</h4><p id="mrs_01_2113__a887ee6ea440842cdb322145a605c2df2">The ZooKeeper client fails to refresh a TGT and therefore ZooKeeper cannot be accessed. The error message is as follows:</p>
|
||
<pre class="screen" id="mrs_01_2113__s6df65492c6f449fda8b05ed74a556917">Login: Could not renew TGT due to problem running shell command: '***/kinit -R'; exception was:org.apache.zookeeper.Shell$ExitCodeException: kinit: Ticket expired while renewing credentials</pre>
|
||
</div>
|
||
<div class="section" id="mrs_01_2113__s059084dc67844dfa9d7e5432d5d2662f"><h4 class="sectiontitle">Answer</h4><p id="mrs_01_2113__aed11aca389074804839d6cce31a0af84">ZooKeeper uses the system command <strong id="mrs_01_2113__b1654131311241">kinit – R</strong> to refresh a ticket. In the current version of <span id="mrs_01_2113__text109676306163">MRS</span>, the function of this command is canceled. If a long-term task needs to be executed, you are advised to implement the authentication function in keytab mode.</p>
|
||
<p id="mrs_01_2113__afd5bcbdd83df4cb8a3781c19c2f98b62">In the <span class="filepath" id="mrs_01_2113__fd616a8f0ccc841879096c2c25c29d0ae"><b>jaas.conf</b></span> configuration file, set <span class="parmname" id="mrs_01_2113__p4551c0c8375b4502bdafcf5d9893a1ff"><b>useTicketCache</b></span> to <span class="parmname" id="mrs_01_2113__parmname01306531575"><b>false</b></span>, <span class="parmname" id="mrs_01_2113__p3f30d168ae1f4bd6b475c69338025965"><b>useKeyTab</b></span> to <span class="parmname" id="mrs_01_2113__parmname1078112161489"><b>true</b></span>, and specify the keytab path. </p>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<div class="familylinks">
|
||
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_2107.html">Common Issues About ZooKeeper</a></div>
|
||
</div>
|
||
</div>
|
||
|