danhuawang commented on PR #103:
URL: 
https://github.com/apache/gravitino-playground/pull/103#issuecomment-2482135397

   > Update this PR:
   > 
   > 1. [Unified port number for Docker and 
Kubernetes.](https://github.com/apache/gravitino-playground/pull/103/commits/4e8b0607cf0490493c3839694f255daec75e0ff6)
   > 2. [update 
readme](https://github.com/apache/gravitino-playground/pull/103/commits/e9bca19713063ed86f990ab327a26d313f0bf902)
   > 
   > Please let me know if there are any problems.
   
   @orenccl Can you help check this issue when I ran the fileset example in 
jupyter? By the way ,we have 4 examples in jupyter, can you help verify them by 
access http://localhost:18888 ,especially k8s runtime.
   
   <img width="1476" alt="image" 
src="https://github.com/user-attachments/assets/3007adee-8ac1-4418-913a-94b7f9d20c01";>
   ```
   ---------------------------------------------------------------------------
   TimeoutError                              Traceback (most recent call last)
   Cell In[39], line 12
        10 # Create metalake via Gravitino admin client
        11 metalake_name="default"
   ---> 12 metalake = gravitino_admin_client.create_metalake(name=metalake_name,
        13                                                   comment="metalake 
comment", 
        14                                                   properties={})
        15 print(metalake)
   
   File 
/opt/conda/lib/python3.11/site-packages/gravitino/client/gravitino_admin_client.py:80,
 in GravitinoAdminClient.create_metalake(self, name, comment, properties)
        77 req = MetalakeCreateRequest(name, comment, properties)
        78 req.validate()
   ---> 80 resp = self._rest_client.post(
        81     self.API_METALAKES_LIST_PATH, req, 
error_handler=METALAKE_ERROR_HANDLER
        82 )
        83 metalake_response = MetalakeResponse.from_json(resp.body, 
infer_missing=True)
        84 metalake_response.validate()
   
   File 
/opt/conda/lib/python3.11/site-packages/gravitino/utils/http_client.py:229, in 
HTTPClient.post(self, endpoint, json, error_handler, **kwargs)
       228 def post(self, endpoint, json=None, error_handler=None, **kwargs):
   --> 229     return self._request(
       230         "post", endpoint, json=json, error_handler=error_handler, 
**kwargs
       231     )
   
   File 
/opt/conda/lib/python3.11/site-packages/gravitino/utils/http_client.py:202, in 
HTTPClient._request(self, method, endpoint, params, json, data, headers, 
timeout, error_handler)
       197     request.add_header(
       198         AuthConstants.HTTP_HEADER_AUTHORIZATION,
       199         self.auth_data_provider.get_token_data().decode("utf-8"),
       200     )
       201 request.get_method = lambda: method
   --> 202 is_success, resp = self._make_request(opener, request, 
timeout=timeout)
       204 if is_success:
       205     return resp
   
   File 
/opt/conda/lib/python3.11/site-packages/gravitino/utils/http_client.py:139, in 
HTTPClient._make_request(self, opener, request, timeout)
       137 timeout = timeout or self.timeout
       138 try:
   --> 139     return (True, Response(opener.open(request, timeout=timeout)))
       140 except HTTPError as err:
       141     err_body = err.read()
   
   File /opt/conda/lib/python3.11/urllib/request.py:519, in 
OpenerDirector.open(self, fullurl, data, timeout)
       516     req = meth(req)
       518 sys.audit('urllib.Request', req.full_url, req.data, req.headers, 
req.get_method())
   --> 519 response = self._open(req, data)
       521 # post-process response
       522 meth_name = protocol+"_response"
   
   File /opt/conda/lib/python3.11/urllib/request.py:536, in 
OpenerDirector._open(self, req, data)
       533     return result
       535 protocol = req.type
   --> 536 result = self._call_chain(self.handle_open, protocol, protocol +
       537                           '_open', req)
       538 if result:
       539     return result
   
   File /opt/conda/lib/python3.11/urllib/request.py:496, in 
OpenerDirector._call_chain(self, chain, kind, meth_name, *args)
       494 for handler in handlers:
       495     func = getattr(handler, meth_name)
   --> 496     result = func(*args)
       497     if result is not None:
       498         return result
   
   File /opt/conda/lib/python3.11/urllib/request.py:1377, in 
HTTPHandler.http_open(self, req)
      1376 def http_open(self, req):
   -> 1377     return self.do_open(http.client.HTTPConnection, req)
   
   File /opt/conda/lib/python3.11/urllib/request.py:1352, in 
AbstractHTTPHandler.do_open(self, http_class, req, **http_conn_args)
      1350     except OSError as err: # timeout error
      1351         raise URLError(err)
   -> 1352     r = h.getresponse()
      1353 except:
      1354     h.close()
   
   File /opt/conda/lib/python3.11/http/client.py:1378, in 
HTTPConnection.getresponse(self)
      1376 try:
      1377     try:
   -> 1378         response.begin()
      1379     except ConnectionError:
      1380         self.close()
   
   File /opt/conda/lib/python3.11/http/client.py:318, in 
HTTPResponse.begin(self)
       316 # read until we get a non-100 response
       317 while True:
   --> 318     version, status, reason = self._read_status()
       319     if status != CONTINUE:
       320         break
   
   File /opt/conda/lib/python3.11/http/client.py:279, in 
HTTPResponse._read_status(self)
       278 def _read_status(self):
   --> 279     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
       280     if len(line) > _MAXLINE:
       281         raise LineTooLong("status line")
   
   File /opt/conda/lib/python3.11/socket.py:706, in SocketIO.readinto(self, b)
       704 while True:
       705     try:
   --> 706         return self._sock.recv_into(b)
       707     except timeout:
       708         self._timeout_occurred = True
   
   TimeoutError: timed out
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to