InetSocketAddress nameNodeAddr, NamenodeProtocol primaryNamenode)
throws IOException {
super(conf);
// wrap namenode metrics
this.metrics = new AvatarNodeMetrics(super.getNameNodeMetrics());
// check if we talk to primary
if (startInfo.isStandby
&& (nameNodeAddr == null || primaryNamenode == null)) {
throw new IOException("RPC to primary namenode not initialized");