ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaly Brodetskyi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-5343) Ambari hiveserver2 smoke test wrong for hiveserver 2 that uses LDAP authentication
Date Thu, 03 Apr 2014 17:47:16 GMT
Vitaly Brodetskyi created AMBARI-5343:
-----------------------------------------

             Summary: Ambari hiveserver2 smoke test wrong for hiveserver 2 that uses LDAP
authentication
                 Key: AMBARI-5343
                 URL: https://issues.apache.org/jira/browse/AMBARI-5343
             Project: Ambari
          Issue Type: Bug
          Components: agent
    Affects Versions: 1.4.4
            Reporter: Vitaly Brodetskyi
            Assignee: Vitaly Brodetskyi
             Fix For: 1.5.1
         Attachments: AMBARI-5343.patch

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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message