metaInfo = new RequestMetaInfo(conf.getInt(FSConstants.DFS_CLUSTER_ID,
RequestMetaInfo.NO_CLUSTER_ID), cluster.getNameNode(0).getNameserviceId(),
RequestMetaInfo.NO_NAMESPACE_ID, RequestMetaInfo.NO_APPLICATION_ID,
(UnixUserGroupInformation) UserGroupInformation.getUGI(conf));
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();