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

22 lines
1.6 KiB
HTML

<a name="mrs_01_2112"></a><a name="mrs_01_2112"></a>
<h1 class="topictitle1">Why Cannot the Client Connect to ZooKeeper using the IBM JDK?</h1>
<div id="body1595905686488"><div class="section" id="mrs_01_2112__se35d02ee6b4f47c9b71fedd5f6c09a30"><h4 class="sectiontitle">Question</h4><p id="mrs_01_2112__a3e05b5b5490e428cbc761c2285882ab2">When the IBM JDK is used, the client fails to connect to ZooKeeper.</p>
</div>
<div class="section" id="mrs_01_2112__sc380f8a8f5564d6cb27ba3d1fd0c36e2"><h4 class="sectiontitle">Answer</h4><p id="mrs_01_2112__a9280c635666c45f78db789c5b30cfa6f">The possible cause is that the <strong id="mrs_01_2112__b137302033492819">jaas.conf</strong> file format of the IBM JDK is different from that of the common JDK.</p>
<p id="mrs_01_2112__a726d91d05fbf4ac1ad7f7ea8852bf30c">If IBM JDK is used, use the following <strong id="mrs_01_2112__b201339924392819">jaas.conf</strong> template. The <span class="parmname" id="mrs_01_2112__p981fd7be325b406cb55f3ec7478004f2"><b>useKeytab</b></span> file path must start with <span class="parmvalue" id="mrs_01_2112__ped37551fc19c4c07adfc9cd827599c66"><b>file://</b></span>, followed by an absolute path.</p>
<pre class="screen" id="mrs_01_2112__sfe26156a53f944d5be8fdfed77a64d53">Client {
<strong id="mrs_01_2112__a8f334c09846d46e6af6abfa531c0f1d0">com.ibm.security.auth.module.Krb5LoginModule required</strong>
useKeytab="file://D:/install/HbaseClientSample/conf/user.keytab"
principal="hbaseuser1"
credsType="both";
};</pre>
</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>