Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-11748

Hostname flag is not respected by KRPC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Impala 4.1.1
    • None
    • Backend
    • ghx-label-12

    Description

      I am trying to set up a Kerberized Impala cluster in Kubernetes (K8S). In K8S deployments, hostnames of pods (containers) are unknown in advance (random suffix), therefore service principals (SPN) have to be used, which are fixed ahead. Impala has a `-hostname` flag that could be used for this, but it seems, that it's not respected by Kudu RPC (KRPC) and it's still using the original hostname returned by the system. Therefore it won't look for the right principal, and won't find a matching keytab entry, and finally it will fail to set up a KRPC connection.

      See the stack trace for the error message:

      I1125 11:22:12.005645  2949 exec-env.cc:483] Starting KRPC service
      E1125 11:22:12.006127  2949 authentication.cc:239]  (stacktrace:
          @          0x116cd54  impala::SaslLogCallback()
          @     0x7f173c893a71  sasl_seterror
          @     0x7f1737499024  (unknown)
          @     0x7f173749b9ae  (unknown)
          @     0x7f173c89255d  sasl_server_step
          @     0x7f173c892b17  sasl_server_start
          @          0x1a73486  kudu::rpc::WrapSaslCall()
          @          0x1a78b78  kudu::rpc::ServerNegotiation::PreflightCheckGSSAPI()
          @          0x1a54cb7  kudu::rpc::Messenger::AddAcceptorPool()
          @          0x11a1fd0  impala::RpcMgr::StartServices()
          @          0x11e0ded  impala::ExecEnv::StartKrpcService()
          @          0x141e3d5  impala::ImpalaServer::Start()
          @          0x1402ada  ImpaladMain()
          @           0xbdbf7a  main
          @     0x7f17392fbc86  __libc_start_main
          @           0xc82279  _start
      ) SASL message (General): GSSAPI Error: Unspecified GSS failure.  Minor code may provide more information (No key table entry found matching impala/coordinator.impala.hadoop.svc.cluster.local@)
      E1125 11:22:12.045207  2949 impalad-main.cc:90] Impalad services did not start correctly, exiting.  Error: Failed to add acceptor pool: Runtime error: GSSAPI/Kerberos not properly configured: No key table
       entry found matching impala/coordinator.impala.hadoop.svc.cluster.local@
      

      In the case above, the hostname for the service pricipal (SPN) is "impala-coordinator.hadoop.svc.cluster.local", and the pod's FQDN is  "coordinator.impala.hadoop.svc.cluster.local".

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            andor.toth Tóth Andor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: