Author: suresh
Date: Wed Apr 10 03:55:14 2013
New Revision: 1466324
URL: http://svn.apache.org/r1466324
Log:
HDFS-4413. Merge 1466322 from branch-1
Modified:
hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt
hadoop/common/branches/branch-1-win/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java
Modified: hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt?rev=1466324&r1=1466323&r2=1466324&view=diff
==============================================================================
--- hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt (original)
+++ hadoop/common/branches/branch-1-win/CHANGES.branch-1-win.txt Wed Apr 10
03:55:14 2013
@@ -356,3 +356,6 @@ Branch-hadoop-1-win (branched from branc
HADOOP-9071. Configure ivy log levels for resolve/retrieve.
(Giridharan Kesavan via suresh)
+
+ HDFS-4413. Secondary namenode won't start if HDFS isn't the default
+ file system. (Mostafa Elhemali via suresh)
Modified:
hadoop/common/branches/branch-1-win/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-1-win/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java?rev=1466324&r1=1466323&r2=1466324&view=diff
==============================================================================
---
hadoop/common/branches/branch-1-win/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java
(original)
+++
hadoop/common/branches/branch-1-win/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java
Wed Apr 10 03:55:14 2013
@@ -410,11 +410,10 @@ public class SecondaryNameNode implement
* Returns the Jetty server that the Namenode is listening on.
*/
private String getInfoServer() throws IOException {
- URI fsName = FileSystem.getDefaultUri(conf);
- if (!"hdfs".equals(fsName.getScheme())) {
+ String infoAddr = NameNode.getInfoServer(conf);
+ if (infoAddr == null) {
throw new IOException("This is not a DFS");
}
- String infoAddr = NameNode.getInfoServer(conf);
LOG.debug("infoAddr = " + infoAddr);
return infoAddr;
}