Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-22998

Wrong user used to execute the Spark/Livy Server service check

    XMLWordPrintableJSON

Details

    Description

      common-services/SPARK/1.2.1/package/scripts/service_check.py:36
       livy_kinit_cmd = format("{kinit_path_local} -kt {smoke_user_keytab} {smokeuser_principal}; ")
       Execute(livy_kinit_cmd, user=params.livy_user)
      

      Notice the Kerberos identity is for the smoke user, but the exec is for the livy user. This will replace the livy user's interactive Kerberos ticket cache.

      This should be 

      smoke_user_kinit_cmd = format("{kinit_path_local} -kt {smoke_user_keytab} {smokeuser_principal}; ")
      Execute(smoke_user_kinit_cmd, user=params.smoke_user)
      

      Where smoke_user is

      smoke_user =  config['configurations']['cluster-env']['smokeuser']
      

      Attachments

        Activity

          People

            rlevas Robert Levas
            rlevas Robert Levas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 40m
                2h 40m