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

Ambari hiveserver2 smoke test wrong for hiveserver 2 that uses LDAP authentication

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.4
    • 1.5.1
    • ambari-agent
    • None

    Description

      PROBLEM:

      from /tmp/hiveserver2Smoke.sh

      smokeout=`/usr/lib/hive/bin/beeline -u $1 -n fakeuser -p fakepwd -d org.apache.hive.jdbc.HiveDriver -e '!run $2'
      2>&1| awk '

      {print}

      '|grep Error`

      if [ "x$smokeout" == "x" ]; then
      echo "Smoke test of hiveserver2 passed"
      exit 0
      else
      echo "Smoke test of hiveserver2 wasnt passed"
      echo $smokeout
      exit 1
      fi

      Few errors in this script:

      1. for LDAP authentication, it requires a real user and password
      2. LDAP authentication may hang, not generating 'Error' string. The script will not detect the failure.

      Attachments

        1. AMBARI-5343.patch
          13 kB
          Vitaly Brodetskyi

        Issue Links

          Activity

            People

              vbrodetskyi Vitaly Brodetskyi
              vbrodetskyi Vitaly Brodetskyi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: