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>
16 lines
1.9 KiB
HTML
16 lines
1.9 KiB
HTML
<a name="mrs_01_2038"></a><a name="mrs_01_2038"></a>
|
|
|
|
<h1 class="topictitle1">What Should I Do If the JDBCServer Process is Mistakenly Killed During a Health Check?</h1>
|
|
<div id="body1595920222081"><div class="section" id="mrs_01_2038__s094da4337e264ab3b409a6f1a4a04177"><h4 class="sectiontitle">Question</h4><p id="mrs_01_2038__a4bcf5d638d3c48d1985d764734ea19b5">During a health check, if the concurrent statements exceed the threshold of the thread pool, the health check statements fail to be executed, the health check program times out, and the Spark JDBCServer process is killed.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_2038__sd7154bcda03a4f78abd3f69e292caca5"><h4 class="sectiontitle">Answer</h4><p id="mrs_01_2038__a6b1930a8f2c349bfa2cd85b9387d3601">There are two thread poolsHiveServer2-Handler-Pool and HiveServer2-Background-Pool in the current JDBCServer. The HiveServer2-Handler-Pool is used to connect sessions and the HiveServer2-Background-Pool is used to run Spark SQL statements.</p>
|
|
<p id="mrs_01_2038__af3bb703a2c8c4dfa80015ff48a492d83">The current health check mechanism establishes a session connection and runs the health check command <i><b><span class="cmdname" style="font-family:Arial" id="mrs_01_2038__cc40107d6508944de83ba5aefa3c4959d">HEALTHCHECK</span></b></i> in the thread of the session to check the health condition of the Spark JDBCServer. Therefore, one thread must be reserved for the HiveServer2-Handler-Pool respectively to connect sessions and run statements for the health check. Otherwise, the session connection and statement running will fail and the Spark JDBCServer will be killed because it is mistakenly considered unhealthy. For example, if there are 100 threads in the HiveServer2-Handler-Pool respectively, a maximum of 99 sessions can be connected.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_2022.html">Spark SQL and DataFrame</a></div>
|
|
</div>
|
|
</div>
|
|
|