java写main方法连接hbase callTimeout=60000 超时问题???
代码大体如下:
Configuration conf = HBaseConfiguration.create();
conf.set("hbase.zookeeper.quorum","集群hostname" );
conf.set("hbase.zookeeper.property.clientPort", "2181");
conf.set("zookeeper.znode.parent", "/hbase-unsecure");
Connection connection = ConnectionFactory.createConnection(conf);
Admin admin = connection.getAdmin();
List<TableName> tableNames = new ArrayList();
HTableDescriptor[] tables = admin.getTableDescriptorsByTableName(tableNames);
就是说 能连上hbase,并且能查出tables,这几步没问题,但是
我执行
admin.isTableEnabled(htableDescriptor.getTableName()) //获取table是否可用时
超时了,
报错如下:
org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptions:
Fri Apr 22 14:10:54 CST 2016, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=75362: row 'aaa,,00000000000000' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=testserver,16020,1431006913051, seqNum=0
请教各位大神,还需要什么额外配置吗,还是我本地环境的某些参数不对?
万分感谢!