Skip to content

Commit

Permalink
Merge pull request apache#77 from mapr/MAPRHBASE-206
Browse files Browse the repository at this point in the history
MAPRHBASE-206 Excessive logging from DynamicClassLoader
  • Loading branch information
dmisen authored Jan 8, 2021
2 parents abac5b3 + fd7abcd commit d5b139c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.security.AccessControlException;

/**
* This is a class loader that can load classes dynamically from new
Expand Down Expand Up @@ -135,12 +136,18 @@ private synchronized void initTempDir(final Configuration conf) {
if (!remoteDirFs.exists(remoteDir)) {
remoteDir = null;
}
} catch (AccessControlException ioe) {
// Special case for MFS to avoid huge stacktraces in stdin
LOG.warn("Failed to access the fs of dir " + remoteDir +
". Ignore this message if the directory doesn't exist. "
+ ioe.getMessage());
LOG.debug(ioe);
remoteDir = null;
} catch (IOException ioe) {
LOG.warn("Failed to identify the fs of dir "
+ remoteDir + ", ignored", ioe);
remoteDir = null;
}

}
}

Expand Down

0 comments on commit d5b139c

Please sign in to comment.