Details
-
Improvement
-
Status: Reopened
-
Not a Priority
-
Resolution: Unresolved
-
None
-
None
Description
Currently if the user configures Kerberos credentials through command line, it won't work.
// flink run -m yarn-cluster -yD security.kerberos.login.keytab=/path/to/keytab -yD security.kerberos.login.principal=xxx /path/to/test.jar
Above command would cause security failure if you do not have a ticket cache w/ kinit.
Maybe we could call org.apache.flink.client.cli.AbstractCustomCommandLine#applyCommandLineOptionsToConfiguration before SecurityUtils.install(new SecurityConfiguration(cli.configuration));
Here is a demo patch: https://github.com/jiasheng55/flink/commit/ef6880dba8a1f36849f5d1bb308405c421b29986
Attachments
Issue Links
- is duplicated by
-
FLINK-12124 Security is not support dynamicProperties
- Closed
-
FLINK-29362 Allow loading dynamic config for kerberos authentication in CliFrontend
- Closed
- links to