Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> how can thrift connect to hbase?


Copy link to this message
-
Re: how can thrift connect to hbase?
Hi Andy,
     i have a question about thrift,does thrift server connect to hbase
through zookeeper?
     i read the thrift log and find thrift is assign 'request' to different
regionserver.
     below is the log:
     2012-12-27 15:39:27,924 DEBUG
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation:
Cached location for BT_NET_LOG_000,0000189094114602012122620
200107000031857,1356593966233.d20458ecf526a932f602af63002b290e. is
hadoop1:60020
2012-12-27 15:39:27,924 DEBUG
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation:
Cached location for BT_NET_LOG_000,0000189098696122012122921
000107000031857,1356593966233.c1f127dc9de117605ea332f27b0b3775. is
hadoop1:60020
2012-12-27 15:39:28,563 DEBUG org.apache.hadoop.hbase.client.MetaScanner:
Scanning .META. starting at
row=BT_NET_LOG_000,0000189094114602012122620200107000031857,00000
000000000 for max=10 rows using
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@52313a4e
2012-12-27 15:45:14,850 DEBUG
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation:
Removed BT_NET_LOG_000,0000153910000002012120115134001000000
272,1356589842295.5c84298f6889734514903fffc9582689. for
tableName=BT_NET_LOG_000 from cache because of
0000189002087912012120100000107000031857
2012-12-27 15:45:14,853 DEBUG
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation:
Retry 1, sleep for 1000ms!
2012-12-27 15:45:15,379 DEBUG org.apache.hadoop.hbase.client.MetaScanner:
Scanning .META. starting at
row=BT_NET_LOG_000,0000153910000002012120115134001000000272,00000
000000000 for max=10 rows using
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@52313a4e
2012-12-27 15:45:15,384 DEBUG
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation:
locateRegionInMeta parentTable=.META., metaLocation={region.META.,,1.1028785192, hostname=hadoop1, port=60020}, attempt=0 of 10
failed; retrying after sleep of 1000 because: the only available region for
the required row is a
split parent, the daughters should be online soon:
BT_NET_LOG_000,0000153910000002012120115134001000000272,1356589842295.5c84298f6889734514903fffc9582689.
2012-12-27 15:45:15,856 DEBUG org.apache.hadoop.hbase.client.MetaScanner:
Scanning .META. starting at
row=BT_NET_LOG_000,0000189001962242012122322200106000000559,00000
000000000 for max=10 rows using
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@52313a4e
2012-12-27 15:45:15,859 DEBUG
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation:
Cached location for BT_NET_LOG_000,0000189001962242012122322
200106000000559,1356594314689.23d2fce6f5b6912e39eb7bdf22a069b3. is
hadoop3:60020
2012-12-27 15:45:16,387 DEBUG org.apache.hadoop.hbase.client.MetaScanner:
Scanning .META. starting at
row=BT_NET_LOG_000,0000189001962242012122322200106000000559,00000
000000000 for max=10 rows using
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@52313a4e
2012-12-27 15:45:17,638 DEBUG org.apache.hadoop.hbase.client.MetaScanner:
Scanning .META. starting at
row=BT_NET_LOG_000,0000153910000002012120115134001000000272,00000
000000000 for max=10 rows using
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@52313a4e
2012-12-27 15:45:17,642 DEBUG
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation:
Cached location for BT_NET_LOG_000,0000153910000002012120115
134001000000272,1356594314689.91a440fc38a1d4d9b0afbf0ebf33e7a8. is
hadoop3:60020

    seems thrift assign request to hadoop1 and hadoop3, but i still have a
hadoop2 which seems not included in this circulation.
    any suggestion?
    Thanks!

   beatls

On Wed, Dec 26, 2012 at 2:52 PM, 周梦想 <[EMAIL PROTECTED]> wrote:

> Yes, the first article is the base to install and test thrift, it has
> nothing to do with HBase.
> And the second one is how to use thrift  on HBase.
>
> 2012/12/25 hua beatls <[EMAIL PROTECTED]>