Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2022 04:27 AM
logging.basicConfig(level=logging.INFO)
10
---> 11 connection = sql.connect(server_hostname=hostname,
12 http_path=http_path,
13 access_token=access_token)
/databricks/python/lib/python3.8/site-packages/databricks/sql/__init__.py in connect(server_hostname, http_path, access_token, **kwargs)
26 """
27 from databricks.sql.client import Connection
---> 28 return Connection(server_hostname, http_path, access_token, **kwargs)
/databricks/python/lib/python3.8/site-packages/databricks/sql/client.py in __init__(self, server_hostname, http_path, access_token, **kwargs)
266 client_protocol=protocol_version
267 )
--> 268 response = self._make_request(self._client.OpenSession, open_session_req)
269 _check_status(response)
270 assert response.sessionHandle is not None, "Expected a session from OpenSession"
/databricks/python/lib/python3.8/site-packages/databricks/sql/client.py in _make_request(self, method, request)
417 error_info = response_or_error_info
418 # The error handler will either sleep or throw an exception
--> 419 self._handle_request_error(error_info, attempt, elapsed)
420
421
/databricks/python/lib/python3.8/site-packages/databricks/sql/client.py in _handle_request_error(self, error_info, attempt, elapsed)
338 _logger.info("{}: {}".format(user_friendly_error_message, full_error_info_str))
339
--> 340 raise OperationalError(user_friendly_error_message, error_info.error)
341
342 _logger.info("Retrying request after error in {} seconds: {}".format(
OperationalError: ('Error during request to server: IpAclValidation', EOFError())@Niall Egan