InterruptedException {
UserGroupInformation ugi = UserGroupInformation.getLoginUser();
return ugi.doAs(new PrivilegedExceptionAction<URI>() {
@Override
public URI run() throws IOException {
AppConfig appConfig = Main.getAppConfigInstance();
String fsTmpDir = appConfig.get(TMP_DIR_PROP);
if(fsTmpDir == null || fsTmpDir.length() <= 0) {
LOG.warn("Could not find 'hadoop.tmp.dir'; " + affectedMsg);
return null;
}
FileSystem fs = FileSystem.get(appConfig);