hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Grover (JIRA)" <>
Subject [jira] [Created] (HIVE-5046) Hcatalog's bin/hcat script doesn't respect HIVE_HOME
Date Fri, 09 Aug 2013 21:44:47 GMT
Mark Grover created HIVE-5046:

             Summary: Hcatalog's bin/hcat script doesn't respect HIVE_HOME
                 Key: HIVE-5046
             Project: Hive
          Issue Type: Bug
          Components: HCatalog
    Affects Versions: 0.11.0
            Reporter: Mark Grover
            Assignee: Mark Grover

The quoted snippet (see below) intends to set HIVE_HOME if it's not set (i.e. HIVE_HOME is
currently null).
if [ -n ${HIVE_HOME} ]; then

However, {{-n}} checks if the variable is _not_ null. So, the condition is checking for the
boolean inverse of what it's supposed to be checking for.

Moreover, {{-n}} checks requires the string being tested to be enclosed in quotes.


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message