|
@@ -1396,11 +1396,12 @@ public class DFSAdmin extends FsShell {
|
|
ClientDatanodeProtocol dnProxy = getDataNodeProxy(address);
|
|
ClientDatanodeProtocol dnProxy = getDataNodeProxy(address);
|
|
dnProxy.startReconfiguration();
|
|
dnProxy.startReconfiguration();
|
|
System.out.println("Started reconfiguration task on DataNode " + address);
|
|
System.out.println("Started reconfiguration task on DataNode " + address);
|
|
|
|
+ return 0;
|
|
} else {
|
|
} else {
|
|
System.err.println("Node type " + nodeType +
|
|
System.err.println("Node type " + nodeType +
|
|
" does not support reconfiguration.");
|
|
" does not support reconfiguration.");
|
|
|
|
+ return 1;
|
|
}
|
|
}
|
|
- return -1;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
int getReconfigurationStatus(String nodeType, String address,
|
|
int getReconfigurationStatus(String nodeType, String address,
|
|
@@ -1438,11 +1439,11 @@ public class DFSAdmin extends FsShell {
|
|
}
|
|
}
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
err.println("DataNode reloading configuration: " + e + ".");
|
|
err.println("DataNode reloading configuration: " + e + ".");
|
|
- return -1;
|
|
|
|
|
|
+ return 1;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
err.println("Node type " + nodeType + " does not support reconfiguration.");
|
|
err.println("Node type " + nodeType + " does not support reconfiguration.");
|
|
- return -1;
|
|
|
|
|
|
+ return 1;
|
|
}
|
|
}
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|