// Get the current configuration
CoronaConf conf = new CoronaConf(getConf());
InetSocketAddress address = NetUtils.createSocketAddr(conf
.getClusterManagerAddress());
TFramedTransport transport = new TFramedTransport(
new TSocket(address.getHostName(), address.getPort()));
ClusterManagerService.Client client = new ClusterManagerService.Client(
new TBinaryProtocol(transport));
try {
transport.open();
client.refreshNodes();
} catch (TException e) {
throw new IOException(e);
} catch (SafeModeException e) {
System.err.println("ClusterManager is in Safe Mode");