HUE-9358 [con.hive] part 1 of zk discovery improvement for hs2

Review Request #15174 — Created May 21, 2020 and updated

quadoss
hue
master
HUE-9358
hue
johan, ranade, romain, weixia, yingc
commit ae37d7ed5bd0682fd25f2305a363026b620862d3
Author: Mahesh Balakrishnan <mbalakrishnan@cloudera.com>
Date:   Thu May 21 09:40:13 2020 -0700

    HUE-9358 [con.hive] part 1 of zk discovery improvement for hs2

:100644 100644 241f47be59 967e220692 M	apps/beeswax/src/beeswax/server/dbms.py

Manual testing was done for this. Stack trace below.

[20/May/2020 15:06:39 -0700] access INFO 127.0.0.1, 10.97.157.123 csso_mbalakrishnan - "POST /notebook/api/close_statement HTTP/1.1" returned in 68ms 200 2167
[20/May/2020 15:06:40 -0700] dbms INFO ActiveEndpoint: {"host": "ying-de-master1.yingsdx.xcu2-8y8x.dev.work", "port": "10001"}
[20/May/2020 15:06:40 -0700] dbms INFO Is HS2 alive
[20/May/2020 15:06:40 -0700] connection INFO Connecting to ying-de-master2.yingsdx.xcu2-8y8x.dev.work:2181
[20/May/2020 15:06:40 -0700] client INFO Zookeeper connection established, state: CONNECTED
[20/May/2020 15:06:40 -0700] dbms INFO Selecting up HiveServer via the following node /hiveserver2
[20/May/2020 15:06:40 -0700] dbms INFO Available HiveServers: [u'serverUri=ying-de-master1.yingsdx.xcu2-8y8x.dev.work:10001;version=3.1.3000.7.1.0.2-7;sequence=0000000015']
[20/May/2020 15:06:40 -0700] dbms INFO Length of HS2: 1
[20/May/2020 15:06:40 -0700] dbms INFO Is the current HS2 active True
[20/May/2020 15:06:40 -0700] hive_server2_lib INFO Opening beeswax thrift session for user csso_mbalakrishnan

Loading...