// 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();
if (client.setSafeMode(safeMode)) {
System.out.println("The safeMode is: " +
(safeMode ? "ON" : "OFF"));
} else {
System.err.println("Could not set the safeMode flag");