hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: Doubt at hbase configuration
Date Fri, 30 Mar 2012 16:54:33 GMT
The timeout is on the client side, not the server side.

J-D

On Fri, Mar 30, 2012 at 12:11 AM, Balaji k <balaji.kandha@gmail.com> wrote:
> Hi,
>          I was running coprocessor AggregationProtocol, it got socket
> timeout exception. Somebody said to set  "hbase.rpc.timeout" to larger
> value.
> I added the following  in hbase.site.xml
> <property>
>  <name>hbase.rpc.timeout</name>
>  <value>3000000</value>
> </property>
>
> but it was not working. The samething i tried dynamically in my code
>
>        Configuration conf = HBaseConfiguration.create();
>        conf.setLong("hbase.rpc.timeout", 6000000);
>        AggregationClient agg = new AggregationClient(conf);
>        Scan scan = new Scan();
>        scan.addColumn(Bytes.toBytes("f1l"), Bytes.toBytes("c1"));
>        scan.setCaching(500);
>        scan.setCacheBlocks(false);
>        ColumnInterpreter ci = null;
>        long a = agg.rowCount(Bytes.toBytes("xxxx"), ci, scan);
>        System.out.println(a);
>
> now it works fine. What is the problem writing in hbase.site.xml ?
> where i went wrong?
>
>
> --
> Regards,
> Balaji,K

Mime
View raw message