|
@@ -324,7 +324,9 @@ public class NameNode implements ClientProtocol, DatanodeProtocol,
|
|
this.server = RPC.getServer(this, socAddr.getHostName(),
|
|
this.server = RPC.getServer(this, socAddr.getHostName(),
|
|
socAddr.getPort(), handlerCount, false, conf, namesystem
|
|
socAddr.getPort(), handlerCount, false, conf, namesystem
|
|
.getDelegationTokenSecretManager());
|
|
.getDelegationTokenSecretManager());
|
|
-
|
|
|
|
|
|
+ // Set terse exception whose stack trace won't be logged
|
|
|
|
+ this.server.addTerseExceptions(SafeModeException.class);
|
|
|
|
+
|
|
// The rpc-server port can be ephemeral... ensure we have the correct info
|
|
// The rpc-server port can be ephemeral... ensure we have the correct info
|
|
this.serverAddress = this.server.getListenerAddress();
|
|
this.serverAddress = this.server.getListenerAddress();
|
|
FileSystem.setDefaultUri(conf, getUri(serverAddress));
|
|
FileSystem.setDefaultUri(conf, getUri(serverAddress));
|