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

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

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment