public AdminRPCAvro(String masterHost, int masterPort) throws IOException {
this.masterHostname = masterHost;
this.masterPort = masterPort;
URL url = new URL("http", masterHostname, this.masterPort, "/");
trans = new HttpTransceiver(url);
this.masterClient = (FlumeMasterAdminServerAvro) SpecificRequestor
.getClient(FlumeMasterAdminServerAvro.class, trans);
LOG.info("Connected to master at " + masterHostname + ":" + masterPort);
}