From 1ae57f0f75695178dc135b0c259d066f7da31c9d Mon Sep 17 00:00:00 2001 From: Brahma Reddy Battula Date: Fri, 11 Nov 2016 20:08:15 +0530 Subject: [PATCH] HDFS-11128. CreateEditsLog throws NullPointerException. Contributed by Hanisha Koneru. --- .../java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java index a846f60f59..d6dd8eead7 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java @@ -338,7 +338,7 @@ synchronized void setStorageDirectories(Collection fsNameDirs, * @param uri URI of a storage directory * @return The matching storage directory or null if none found */ - StorageDirectory getStorageDirectory(URI uri) { + public StorageDirectory getStorageDirectory(URI uri) { try { uri = Util.fileAsURI(new File(uri)); Iterator it = dirIterator();