You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Vitaly Brodetskyi (JIRA)" <ji...@apache.org> on 2014/04/04 16:38:14 UTC

[jira] [Commented] (AMBARI-5343) Ambari hiveserver2 smoke test wrong for hiveserver 2 that uses LDAP authentication

    [ https://issues.apache.org/jira/browse/AMBARI-5343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13960007#comment-13960007 ] 

Vitaly Brodetskyi commented on AMBARI-5343:
-------------------------------------------

Committed to trunk

> 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)