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

Manikandan Narayanaswamy commented on PIG-4133:
-----------------------------------------------

The first patch replaced checking for /usr/lib/hcatalog with 
/usr/lib/hive-hcatalog so, if we had both versions of HCatalog side by side I 
think it would have still worked. But, I agree that if the user only has the 
previous version installed, this check would have not set the HCAT_HOME and 
exited incorrectly.

Thanks! Updated patch. 

> Need to update the default $HCAT_HOME dir in the PIG script.
> ------------------------------------------------------------
>
>                 Key: PIG-4133
>                 URL: https://issues.apache.org/jira/browse/PIG-4133
>             Project: Pig
>          Issue Type: Bug
>          Components: grunt
>    Affects Versions: 0.12.0
>            Reporter: Manikandan Narayanaswamy
>            Priority: Minor
>             Fix For: 0.13.0
>
>         Attachments: PIG-4133.patch, PIG-4133.patch
>
>
> Looks like we need to update the default HCAT_HOME in /bin/Pig to 
> /usr/lib/hive-hcatalog.
> This is what it has currently.
> <snip>
> if [ "$HCAT_HOME" == "" ]; then
>   if [ -d "/usr/lib/hcatalog" ]; then
>     HCAT_HOME=/usr/lib/hcatalog
>   else
>     echo "Please initialize HCAT_HOME"
>     exit -1
>   fi
>   fi
> </snip>



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

Reply via email to