|
@@ -607,6 +607,8 @@ class HiveServerClient:
|
|
|
req = TOpenSessionReq(**kwargs)
|
|
req = TOpenSessionReq(**kwargs)
|
|
|
res = self._client.OpenSession(req)
|
|
res = self._client.OpenSession(req)
|
|
|
self.coordinator_host = self._client.get_coordinator_host()
|
|
self.coordinator_host = self._client.get_coordinator_host()
|
|
|
|
|
+ if self.coordinator_host:
|
|
|
|
|
+ res.configuration['coordinator_host'] = self.coordinator_host
|
|
|
|
|
|
|
|
if res.status is not None and res.status.statusCode not in (TStatusCode.SUCCESS_STATUS,):
|
|
if res.status is not None and res.status.statusCode not in (TStatusCode.SUCCESS_STATUS,):
|
|
|
if hasattr(res.status, 'errorMessage') and res.status.errorMessage:
|
|
if hasattr(res.status, 'errorMessage') and res.status.errorMessage:
|