Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-18387

[Thrift] Make principal configurable in DemoClient.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.0, 1.3.2, 1.1.12, 2.0.0, 1.2.7
    • None
    • Reviewed
    • This change allows the demonstration Thrift client to customize the server principal used by the Thrift server for instances secured with Kerberos.

    Description

      In the Thrift1 demo client we have this code:

      transport = new TSaslClientTransport("GSSAPI", null,
        "hbase", // Thrift server user name, should be an authorized proxy user.
        host, // Thrift server domain
        saslProperties, null, transport);
      

      This will only work when the Thrift server is started with the hbase principal. Often this may deviate, for example I am using hbase-thrift to separate the names from those of backend servers.

      What we need is either an additional command line option to specify the name, or a property that can be set with -D and can be passed at runtime. I prefer the former, as the latter is making this a little convoluted.

      Attachments

        1. HBASE-18387.master.001.patch
          3 kB
          Tamas Penzes
        2. HBASE-18387.master.002.patch
          4 kB
          Tamas Penzes
        3. HBASE-18387.master.003.patch
          4 kB
          Tamas Penzes

        Activity

          People

            tamaas Tamas Penzes
            larsgeorge Lars George
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: