proxy = new ClientProxyService(new ClientProxyCommons(conf, conf.get(
FSConstants.DFS_CLUSTER_NAME)));
conf.setInt(StorageServiceConfigKeys.PROXY_THRIFT_PORT_KEY, proxy.getThriftPort());
conf.setInt(StorageServiceConfigKeys.PROXY_RPC_PORT_KEY, proxy.getRPCPort());
clientManager = new ThriftClientManager();
FramedClientConnector connector = new FramedClientConnector(
StorageServiceConfigKeys.getProxyThriftAddress(conf));
clientThrift = clientManager.createClient(connector, TClientProxyProtocol.class).get();
clientRPC = RPC.getProxy(ClientProxyProtocol.class, ClientProxyProtocol.versionID,