Updated on 2024-08-10 GMT+08:00

FlinkServer REST API Sample Program Development Roadmap

Scenario

Call the FlinkServer RESTful API to create tenants.

Data Preparation

  • Prepare the files required for user authentication. Specifically, log in to FusionInsight Manager and download the user.keytab and krb5.conf files.
  • Prepare information required for creating a tenant, for example, tenantId is 92, tenantName is test92, and remark is test tenant remark1.
  • If you run this sample program in Windows, add the host names and IP addresses of all nodes where FlinkServer resides to the C:\Windows\System32\drivers\etc\hosts file.

Development Guideline

  1. Configure user authentication information.
  2. Log in as a user.
  3. Send requests.