Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-12130

Apply command line options to configuration before installing security modules

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              Unassigned Unassigned
              victor-wong jiasheng55
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: