Hbase - limit connection per IP?

2011-07-19 Thread King JKing
Dear all, I application run well with HBase. But when I deploy my application to 10 instances, the eleventh application not run. Maybe HBase have limit connection per IP? How can I fix my problem? I use zookeeper dump to see connection from my server to Hbase server. It show 10 connection. My HB

Re: Best way to Import data from Cassandra to HBase

2011-06-14 Thread King JKing
,f1:c -Dimporttsv.bulk.output=output t1 input In that, 't1', 'f1' is table and family in HBase. No data write in 'output' folder. Could you give me some advice? Thank you in advance. On Tue, Jun 14, 2011 at 10:44 AM, Todd Lipcon wrote: > On Mon, Jun 13, 2011 at 8:17 PM, King JKing

Best way to Import data from Cassandra to HBase

2011-06-13 Thread King JKing
Dear all, I want to import data from Cassandra to HBase. I think the way maybe: Customize ImportTsv.java for read Cassandra data file (*.dbf) and convert to HBase data files, and use completebulkload tool Could you give me show advice? Thank a lot for support.

HBase question

2011-06-02 Thread King JKing
Dear all, I want to design Follower schema like Twitter. I have 2 design Design 1: userId{//rowkey followerId: time, } Design 2 : [userId][followerId]{//rowkey "time": time } I have 2 question: 1. Does HBase support scan data of rowkey by column? 2. Which design is better? I think that

Re: Warning throw when restart HBase

2011-05-04 Thread King JKing
On Wed, May 4, 2011 at 10:30 PM, Stack wrote: > Why not do 'Configuration config = HBaseConfiguration.create()' so you > pick up defaults for hbase? That might help. Then do your add of > conf/hbase-dev.xml (Is this working?). > > I used your code. But warning still occur. > > >Thread.

Warning throw when restart HBase

2011-05-04 Thread King JKing
Dear all, When I stop and start HBase, I get this warning throw forever Exception closing session 0x12fb9d5b5e10005 to sun.nio.ch.SelectionKeyImpl@1fe88d java.io.IOException: Read error rc = -1 java.nio.DirectByteBuffer[pos=0 lim=4 cap=4] at org.apache.zookeeper.ClientCnxn$SendThread.doIO(

Re: Client HTable throw exception when HBase Server stop and start

2011-03-11 Thread King JKing
".getBytes(; On Fri, Mar 11, 2011 at 11:19 AM, Stack wrote: > What did you change (Its hard looking at code to see what line is > different; better to post a diff). > St.Ack > > On Thu, Mar 10, 2011 at 6:09 PM, King JKing wrote: > > After change co

Re: Client HTable throw exception when HBase Server stop and start

2011-03-10 Thread King JKing
t.get(get); System.out.println(Bytes.toString(result.getValue("F1".getBytes(), "C1".getBytes(; This code run well. On Fri, Mar 11, 2011 at 9:02 AM, King JKing wrote: > Here is stacktrace: > > 11/03/11 08:56:44 WARN zookeeper.ClientCnxn: Exception closing session

Re: Client HTable throw exception when HBase Server stop and start

2011-03-10 Thread King JKing
ion stack? > > 2011/3/10 King JKing : > > Dear all, > > > > When I stop and start HBase server, HTable > (org.apache.hadoop.hbase.client) > > throw exception. > > Here is my code test: > >HTable ht = new HTable(config, "T1"); > &

Client HTable throw exception when HBase Server stop and start

2011-03-10 Thread King JKing
Dear all, When I stop and start HBase server, HTable (org.apache.hadoop.hbase.client) throw exception. Here is my code test: HTable ht = new HTable(config, "T1"); byte[] row = Bytes.toBytes(1); Get get = new Get(row); Result result = ht.get(get); S

HBase client - reduce client retries when connect fail

2011-02-27 Thread King JKing
Dear all, I use package org.apache.hadoop.hbase.client to connect to HBase. To decrease the number of retries when client connect to HBase fail, I configured: zookeeper.retries 1 hbase.client.retries.number 1 But client always retry 12 times. Could you help me? Thank

Moving Hbase data

2011-02-26 Thread King JKing
Dear all, I want to move my Hbase data to another directory. How can I do that? Thank a lot for support.

Hbase library - hadoop apend

2011-02-26 Thread King JKing
Dear all, I found in Github project about hadoop apend (hadoop-20-append - Facebook's Realtime Distributed FS based on Apache Hadoop 0.20-append) (1) And in HBase release 0.9.1 or 0.9.0, 0.8.9, I found the library hadoop-core-0.20-append-r1056497. (2) Could you give the different between them? Do

Hbase Memory

2011-01-05 Thread King JKing
Dear all, I use default configuration of HBase. That is 1000MB. hbase.regionserver.global.memstore.upperLimit 0.4 hbase.regionserver.global.memstore.lowerLimit 0.35 But the memory used by HBase process is 1121MB? Anything wrong? Thanks for support.

HBase Scan

2011-01-04 Thread King JKing
Dear all, Does HBase support scan by both reverse order and normal order? Thank a lot for support.

HBase Client error

2010-12-29 Thread King JKing
Hi all, I have exception with HBase Client. Here is my code HTable client = new HTable(conf, this.table); Put put = new Put(rowid); put.add(cf, columnkey, columnval); hTable.put(put); client.close(); Data put well. But some time client raise the error. 10/12/30 11:48:33 INFO zookeeper.ClientC

Re: HBase Client connect to remote HBase

2010-12-23 Thread King JKing
*slave.red* 127.0.0.1 slave.red localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 192.168.10.21 master 192.168.10.22 slave.yellow On Thu, Dec 23, 2010 at 6:17 PM, King JKing wrote: > I've deleted this file. But error still :( > Here is my zk_dump value > &

Re: HBase Client connect to remote HBase

2010-12-23 Thread King JKing
nt's classpath? > > Lars > > On Thu, Dec 23, 2010 at 9:34 AM, King JKing wrote: > > When I comment any line contain 127.0.0.1, HBase server can not run :( > > > > On Thu, Dec 23, 2010 at 4:21 PM, Andrey Stepachev > wrote: > > > >> 2010/12/23

Re: HBase Client connect to remote HBase

2010-12-23 Thread King JKing
When I comment any line contain 127.0.0.1, HBase server can not run :( On Thu, Dec 23, 2010 at 4:21 PM, Andrey Stepachev wrote: > 2010/12/23 King JKing > > > My HBase is running in standalone mode. Can HBase Client connect to a > > remote > > HBase (running in stand

Re: HBase Client connect to remote HBase

2010-12-23 Thread King JKing
an't say. Only three things you can check: > 1. /etc/hosts, where you hostname should'n be 127.0.0.1 > 2. hbas-site.xml in conf dir (try to specify ip address instead of > hostname) > 3. check you dns. > > 2010/12/23 King JKing > > > HBase tree in ZooKeeper is

Re: HBase Client connect to remote HBase

2010-12-23 Thread King JKing
: > Wey strange. Can you post > http://you_hbase_server:60010/zk.jsp<http://mars.nkb:60010/zk.jsp> (or > zk_dump from hbase shell) > > 2010/12/23 King JKing > > > No. When I add your code to hbase-site.xml and restart HBase Server. When > I > > run HBase Clien

Re: HBase Client connect to remote HBase

2010-12-23 Thread King JKing
after 1 tries, giving up. On Thu, Dec 23, 2010 at 3:24 PM, King JKing wrote: > No. When I add your code to hbase-site.xml and restart HBase Server. When I > run HBase Client, client hang up. > > Here is some information on HBase server > > [r...@me-182 conf]# netstat -an|grep 60

Re: HBase Client connect to remote HBase

2010-12-23 Thread King JKing
C: Server at /127.0.0.1:45369 could not > be > > 2010/12/23 King JKing > > > I had already config this parameter. But still error > > > > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev > > wrote: > > > > > Looks like in zookeeper stored wrong reg

Re: HBase Client connect to remote HBase

2010-12-23 Thread King JKing
thing like this. > > > hbase.zookeeper.quorum > you_host_or_ip > Comma separated list of servers in the ZooKeeper Quorum. > > > > > 2010/12/23 King JKing > > > HBase and client are on the different machine > > > > On Thu, Dec 23,

Re: HBase Client connect to remote HBase

2010-12-22 Thread King JKing
HBase and client are on the different machine On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev wrote: > Are HBase and client on the same machine? > > 2010/12/23 King JKing > > > But still error... > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:

Re: HBase Client connect to remote HBase

2010-12-22 Thread King JKing
for example jndi in some of my apps). > > c = HBaseConfiguration.create(); > c.set(propname, propvalue); > > > > 2010/12/23 King JKing > > > Dear all, > > > > I set up my HBase server in standalone mode. > > > > Can HBase Client (from another

HBase Client connect to remote HBase

2010-12-22 Thread King JKing
Dear all, I set up my HBase server in standalone mode. Can HBase Client (from another machine) connect to this HBase server? How can I do that? A lot of people have the same question. But I did not find correct answer. Thank a lot for support.

Hbase design

2010-12-14 Thread King JKing
Dear all, Which is better design between more row key and more columns? And another question, does HBase support query column like function get_slice of Cassandra? Thank a lot for support. JKing.