Enabling SPNEGO authentication for Flink Dashboard
You must manually configure the SPNEGO authentication for Flink Dashboard in Cloudera Manager to enable secure access for users as by default the authentication is turned off.
Enabling SPNEGO authentication for Flink Dashboard
- Go to your cluster in Cloudera Manager.
- Select Flink from the list of services.
- Select the Configuration tab.
- Filter to Scope > Flink Dashboard.
- Search for Use SPNEGO Authentication.
- Select the checkbox to enable SPNEGO authentication for Flink Dashboard.
- Click Save Changes.
You need to restart the Flink service to finalize the configuration.
- Click on Actions > Restart next to the Flink service name.
Providing user credentials for flink list
The Flink CLI uses the Flink Dashboard when you use the flink list
command.
In this case, the Flink CLI connects to the Flink Dashboard and lists the running and scheduled
applications. The connection between the CLI and Dashboard requires user credentials for the
SPNEGO authentication.
The following methods can be used to provide the user credentials:
- You can use the
kinit
command and the custom ticket cache file:- Connect to your host using
ssh
.
You are prompted to provide your password.ssh root@<your_hostname>
- Run the
kinit
command to obtain a valid TGT.kinit <your_principal>
flink list
command reads the TGT from the default ticket cache file of the user. - Connect to your host using
- You can provide the keytab file and login principals directly to the flink list command:
- Connect to your host using
ssh
.
You are prompted to provide your password.ssh root@<your_hostname>
- Run the
flink list
command using your keytab information:flink list -yD security.kerberos.login.keytab=<your_keytab_file_name> -yD security.kerberos.login.principal=<your_principal>
- Connect to your host using