Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-yarn-server-nodemanager</artifactId>
<version>2.3.0</version>
<version>2.4.0</version>
</dependency>

<dependency>
Expand All @@ -35,7 +35,7 @@
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.3.0</version>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,26 @@
import org.slf4j.Logger;
public class GlusterContainerExecutor extends LinuxContainerExecutor {

static Logger log = org.slf4j.LoggerFactory.getLogger(GlusterContainerExecutor.class);
/**
private static final Log LOG = LogFactory
.getLog(GlusterContainerExecutor.class);

/**
* We override the YARN-1235 patch here.
* @param user
* @return
*/
@Override
String getRunAsUser(String user) {
log.info("Container EXEC overrid: returning user " + user);
LOG.info("Container EXEC overrid: returning user " + user);
//return UserGroupInformation.isSecurityEnabled() ? user : nonsecureLocalUser;
return user;
}
@Override
public void deleteAsUser(String arg0,Path arg1,Path...arg2){
log.info("DELETE AS USER " + arg0 + " " + arg1 +" " + arg2);
super.deleteAsUser(arg0, arg1, arg2);
}

@Override
public void deleteAsUser(String user, Path subDir, Path... basedirs) {
LOG.info("DELETE AS USER " + user + " " + subDir +" " + basedirs);
super.deleteAsUser(user, subDir, basedirs);
}

}