You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Johannes Schwenk (JIRA)" <ji...@apache.org> on 2012/06/01 15:51:23 UTC

[jira] [Created] (PIG-2734) UnitTests skipped with errors when run with umask 0002

Johannes Schwenk created PIG-2734:
-------------------------------------

             Summary: UnitTests skipped with errors when run with umask 0002
                 Key: PIG-2734
                 URL: https://issues.apache.org/jira/browse/PIG-2734
             Project: Pig
          Issue Type: Improvement
            Reporter: Johannes Schwenk
            Priority: Minor


I just figured out why the tests started with 

# ant test

had errors. I found in the logfiles that MiniDFSCluster for example expects dfs data directories that are not group-writable! So doing

# umask 0022 && ant test

makes the tests run again.

Alternatively on recent Ubuntu versions you can change USERGROUPS_ENAB in /etc/login.defs to "no"...

This should be noted somewhere in the docs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2734) UnitTests skipped with errors when run with umask 0002

Posted by "Johannes Schwenk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288385#comment-13288385 ] 

Johannes Schwenk commented on PIG-2734:
---------------------------------------

Ok, thanks! My bad! 

I still think this should also be mentioned in the online docs ...

So I edited the documentation in confluence 

https://cwiki.apache.org/confluence/display/PIG/HowToTest

                
> UnitTests skipped with errors when run with umask 0002
> ------------------------------------------------------
>
>                 Key: PIG-2734
>                 URL: https://issues.apache.org/jira/browse/PIG-2734
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Johannes Schwenk
>            Priority: Minor
>
> I just figured out why the tests started with 
> # ant test
> had errors. I found in the logfiles that MiniDFSCluster for example expects dfs data directories that are not group-writable! So doing
> # umask 0022 && ant test
> makes the tests run again.
> Alternatively on recent Ubuntu versions you can change USERGROUPS_ENAB in /etc/login.defs to "no"...
> This should be noted somewhere in the docs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2734) UnitTests skipped with errors when run with umask 0002

Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287651#comment-13287651 ] 

Daniel Dai commented on PIG-2734:
---------------------------------

Hi, Johannes,
It is noted in RELEASE_NOTES.txt.
                
> UnitTests skipped with errors when run with umask 0002
> ------------------------------------------------------
>
>                 Key: PIG-2734
>                 URL: https://issues.apache.org/jira/browse/PIG-2734
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Johannes Schwenk
>            Priority: Minor
>
> I just figured out why the tests started with 
> # ant test
> had errors. I found in the logfiles that MiniDFSCluster for example expects dfs data directories that are not group-writable! So doing
> # umask 0022 && ant test
> makes the tests run again.
> Alternatively on recent Ubuntu versions you can change USERGROUPS_ENAB in /etc/login.defs to "no"...
> This should be noted somewhere in the docs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PIG-2734) UnitTests skipped with errors when run with umask 0002

Posted by "Johannes Schwenk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Schwenk resolved PIG-2734.
-----------------------------------

    Resolution: Fixed

Documentation in confluence updated.
                
> UnitTests skipped with errors when run with umask 0002
> ------------------------------------------------------
>
>                 Key: PIG-2734
>                 URL: https://issues.apache.org/jira/browse/PIG-2734
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Johannes Schwenk
>            Priority: Minor
>
> I just figured out why the tests started with 
> # ant test
> had errors. I found in the logfiles that MiniDFSCluster for example expects dfs data directories that are not group-writable! So doing
> # umask 0022 && ant test
> makes the tests run again.
> Alternatively on recent Ubuntu versions you can change USERGROUPS_ENAB in /etc/login.defs to "no"...
> This should be noted somewhere in the docs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira