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>
19 lines
2.8 KiB
HTML
19 lines
2.8 KiB
HTML
<a name="mrs_01_1762"></a><a name="mrs_01_1762"></a>
|
|
|
|
<h1 class="topictitle1">Why Cannot I Connect to HiveServer When I Use IBM JDK to Access the Beeline Client?</h1>
|
|
<div id="body1595924881703"><div class="section" id="mrs_01_1762__section13051856111311"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_1762__p1889582423715">When users check the JDK version used by the client, if the JDK version is IBM JDK, the Beeline client needs to be reconstructed. Otherwise, the client will fail to connect to HiveServer.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1762__section135121211141418"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_1762__ol527045618391"><li id="mrs_01_1762__li93231253154119"><span>Log in to FusionInsight Manager and choose <strong id="mrs_01_1762__b266514244716">System</strong> > <strong id="mrs_01_1762__b183876291071">Permission</strong> > <strong id="mrs_01_1762__b660017317714">User</strong>. In the <strong id="mrs_01_1762__b195011379711">Operation</strong> column of the target user, choose <strong id="mrs_01_1762__b3380341978">More</strong> > <strong id="mrs_01_1762__b8401124419710">Download Authentication Credential</strong>, select the cluster information, and click <strong id="mrs_01_1762__b1386414718710">OK</strong> to download the keytab file.</span></li><li id="mrs_01_1762__li2271125653915"><span>Decompress the keytab file and use WinSCP to upload the decompressed <strong id="mrs_01_1762__b1961215143811">user.keytab</strong> file to the Hive client installation directory on the node to be operated, for example, <strong id="mrs_01_1762__b22781647873">/opt</strong><strong id="mrs_01_1762__b142788475715"></strong><strong id="mrs_01_1762__b132787471972">/client</strong>.</span></li><li id="mrs_01_1762__li168934462111"><span>Run the following command to open the <strong id="mrs_01_1762__b152431515194">Hive/component_env</strong> configuration file in the Hive client directory:</span><p><p id="mrs_01_1762__p1377715392217"><strong id="mrs_01_1762__b59481124497">vi </strong><em id="mrs_01_1762__i1559810281494">Hive client installation directory</em><strong id="mrs_01_1762__b138712311399">/Hive/component_env</strong></p>
|
|
<div class="p" id="mrs_01_1762__p321295112119">Add the following content to the end of the line where <strong id="mrs_01_1762__b25593572919">export CLIENT_HIVE_URI</strong> is located:<pre class="screen" id="mrs_01_1762__screen9212651182112">\; user.principal=<em id="mrs_01_1762__i95061610191010">Username</em> @HADOOP.COM\;user.keytab=<em id="mrs_01_1762__i6711246151012">user.keytab file path</em>/user.keytab</pre>
|
|
</div>
|
|
</p></li></ol>
|
|
</div>
|
|
<p id="mrs_01_1762__p8060118"></p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1752.html">Common Issues About Hive</a></div>
|
|
</div>
|
|
</div>
|
|
|