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

Koji Noguchi commented on PIG-2846:
-----------------------------------

Thanks Alan for taking a look at my patch!

bq.  I tried setting the HCAT_BIN environment variable to where I had HCat 
installed (which isn't /usr/local/hcat/bin) but that did not help.

Even without my patch, your HCAT_BIN is being ignored. Inside 
test/e2e/pig/build.xml, 
{noformat}
104   <condition property="hcat.bin" value="/usr/local/hcat/bin/hcat">
105     <not>
106       <isset property="hcat.bin"/>
107     </not>
108   </condition>
...
272       <env key="HCAT_BIN" value="${hcat.bin}"/>
{noformat}

I don't know why it's written this way but in order to test with a different 
path, please pass
{noformat}
ant test-e2e -Dhcat.bin=/custompath/hcat ...
{noformat}
                
> Can we skip hcat related e2e when hcat is not installed?
> --------------------------------------------------------
>
>                 Key: PIG-2846
>                 URL: https://issues.apache.org/jira/browse/PIG-2846
>             Project: Pig
>          Issue Type: Test
>            Reporter: Koji Noguchi
>            Priority: Trivial
>         Attachments: pig-2846-trunk-v1.txt
>
>
> Trying pig e2e for the first time, I see couple of the tests 
> (HCatDDL_1,HCatDDL_2 and Jython_Command_1) failing with 
> bq. java.io.IOException: Cannot run program /usr/local/hcat/bin/hcat:
> bq. java.io.IOException: error=2, No such file or directory
> Is it ok to change the test_harness to skip these tests when hcat does not 
> exist?

--
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: http://www.atlassian.com/software/jira

Reply via email to