HADOOP-6534. Trim whitespace from directory lists initializing
LocalDirAllocator. Contributed by Todd Lipcon git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@909806 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fc83909c3f
commit
96a1477d02
@ -137,6 +137,9 @@ Trunk (unreleased changes)
|
||||
HADOOP-6552. Puts renewTGT=true and useTicketCache=true for the keytab
|
||||
kerberos options. (ddas)
|
||||
|
||||
HADOOP-6534. Trim whitespace from directory lists initializing
|
||||
LocalDirAllocator. (Todd Lipcon via cdouglas)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
@ -213,7 +213,7 @@ public AllocatorPerContext(String contextCfgItemName) {
|
||||
private void confChanged(Configuration conf) throws IOException {
|
||||
String newLocalDirs = conf.get(contextCfgItemName);
|
||||
if (!newLocalDirs.equals(savedLocalDirs)) {
|
||||
localDirs = conf.getStrings(contextCfgItemName);
|
||||
localDirs = conf.getTrimmedStrings(contextCfgItemName);
|
||||
localFS = FileSystem.getLocal(conf);
|
||||
int numDirs = localDirs.length;
|
||||
ArrayList<String> dirs = new ArrayList<String>(numDirs);
|
||||
|
Loading…
Reference in New Issue
Block a user