| Summary: | shim raises java.io.IOException when executing hadoop job under mapred user via su | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Martin Bukatovic <mbukatov> |
| Component: | gluster-hadoop | Assignee: | Bradley Childs <bchilds> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Kudlej <mkudlej> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | mainline | CC: | aavati, dahorak, eboyd, matt, mkudlej, rhs-bugs, shaines, vbellur |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-03-03 16:31:27 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1057253 | ||
|
Description
Martin Bukatovic
2013-08-28 10:53:42 UTC
Turning off 'requiretty' seems to fix this issue. I used following /etc/sudoers.d/20_gluster file: ~~~ Defaults:%hadoop !requiretty mapred ALL= NOPASSWD: /usr/bin/getfattr ~~~ Yes, the proper solution to this is to (1) either use a precompiled xattr program that doesnt require sudo or (2) turn of requiretty and make sure sudoers is working correctly. At some point I guess a smoke test shell script wouldbe nice to bundle with the code so that minor hiccups like this can be directly exposed in bash, before trying to run a mapreduce job. |