Bug 970178 - JobTracker and TaskTracker cannot run as root
Summary: JobTracker and TaskTracker cannot run as root
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: gluster-hadoop
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Bradley Childs
QA Contact: Martin Bukatovic
URL:
Whiteboard:
Depends On:
Blocks: 1057253
TreeView+ depends on / blocked
 
Reported: 2013-06-03 15:38 UTC by Steve Watt
Modified: 2014-03-03 16:31 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-03 16:31:34 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Steve Watt 2013-06-03 15:38:43 UTC
Presently MapReduce will not work if the JobTracker is run under a user other than root due to the fact that the glusterfs plugin for Hadoop calls getfattr (via getFileBlockLocations) which requires superuser privileges.

Comment 2 Bradley Childs 2013-07-24 19:16:56 UTC
GA Workaround:

Job and Task trackers may run as any non root user, as long as its identical on all systems.  The UIDs must also match.  The  mapreduce job must also be submitted as the same user/UID.

In addition, each system must have a sudoers entry allowing sudo access to the getfattr command by the user that started the trackers and is submitting the job.

An example of the correct sudoers setup is creating a file /etc/sudoers.d/gluster, and add the line:

mapred ALL= NOPASSWD: /usr/bin/getfattr

where mapred is replaced by the user running the trackers + job.


Note You need to log in before you can comment on or make changes to this bug.