chillywork commented on issue #7092:
URL: https://github.com/apache/paimon/issues/7092#issuecomment-3776368962

   **I have successfully created the catalog using the following Flink SQL, and 
my local REST service has also received the request.**
   
   Flink SQL> CREATE CATALOG `paimon_rest_test_metalake.paimon_rest_catalog`
   > WITH (
   >     'type' = 'paimon',
   >     'uri' = 'http://localhost:8080/paimon-rest/',
   >     'metastore' = 'rest',
   >     'warehouse' = 'paimon_rest_test_metalake.paimon_rest_catalog',
   >     'rest.client.content-type' = 'application/json',
   >     'token.provider' = 'bear',
   >     'token' = 'random_token_123456_for_test'
   > );
   [INFO] Execute statement succeeded.
   
   **switch to catalog paimon_rest_test_metalake.paimon_rest_catalog:**
   
   Flink SQL> use catalog `paimon_rest_test_metalake.paimon_rest_catalog`;
   [INFO] Execute statement succeeded.
   
   **create table events:**
   Flink SQL> CREATE TABLE events (
   >     event_id INT,
   >     user_id INT,
   >     event_type STRING
   > );
   [ERROR] Could not execute SQL statement. Reason:
   org.apache.paimon.rest.exceptions.RESTException: Unable to process: 
Content-Type 'text/plain;charset=UTF-8' is not supported   


-- 
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