Issue about the hbase.client.Scan

2011-09-19 Thread mac fang
Hi, Guys, When I use the client.Scan class to get a set of rows back from RegionServer, i found one interesting code, the script i used is like: Scan scan = new Scan(Bytes.toBytes("a"), Bytes.toBytes("f")); > scan.addColumn(famA, col1); > scan.setCaching(1); > scan

One HLog for one RegionServer

2011-02-17 Thread mac fang
Hi, guys, i have a question about HLog, from the design doc, we can see the HLog is for one Region. However, from code, i saw the HLog is for the whole Region Server. Any reason of having this? Does it have some issues of Write Lock and latency of rebuilding the StoreFile. See, if we can use one H

Re: Looks like duplicate in MemoryStoreFlusher flushSomeRegions()

2011-01-25 Thread mac fang
ompactionRequested() only puts the region on a queue to > > be compacted, so if there is unintended duplication, it wont actually > > hold anything up. > > > > -ryan > > > > On Tue, Jan 25, 2011 at 6:05 PM, mac fang wrote: > >> Guys, since the flushCa

Re: Looks like duplicate in MemoryStoreFlusher flushSomeRegions()

2011-01-25 Thread mac fang
Guys, since the flushCache will make the write/read suspend. I am NOT sure if it is necessary here. On Mon, Jan 24, 2011 at 1:48 PM, mac fang wrote: > Yes, I mean the server.compactSplitThread.compactionRequested(region, > getName()); > > in flushRegion, it

Re: Looks like duplicate in MemoryStoreFlusher flushSomeRegions()

2011-01-23 Thread mac fang
ed(region, getName());* > > } On Mon, Jan 24, 2011 at 6:40 AM, Ted Yu wrote: > I think he was referring to this line: > > server.compactSplitThread.compactionRequested(region, getName()); > > On Sun, Jan 23, 2011 at 10:52 AM, Stack wrote: > > > Hello Mac Fa

Looks like duplicate in MemoryStoreFlusher flushSomeRegions()

2011-01-23 Thread mac fang
Hi, guys, see the below codes in* MemStoreFlusher.java*, i am not sure if those lines in orange are the same and looks like they are trying to do the same logic. Are they redundant? regards macf if (!flushRegion(biggestMemStoreRegion, true)) { LOG.warn("Flush failed"); break

Re: Question about HBase Delete

2011-01-20 Thread mac fang
; > Sent: Thursday, January 20, 2011 8:25 AM > > To: dev@hbase.apache.org > > Subject: Re: Question about HBase Delete > > > > The actual deletion happens after compaction. > > > > FYI > > > > On Thu, Jan 20, 2011 at 8:01 AM, mac fang wrote: > >

Question about HBase Delete

2011-01-20 Thread mac fang
Hi, guys, I read the HBase code and found the delete interface only delete the keyValue in the MemoryStore, but NOT really remove the keyValue in the SequenceFile, only invoke the this.writer.append(logKey, logEdit); will it remove the index in the SequenceFile. And I saw the BigTable design an

Re: One question about HBase Client

2011-01-17 Thread mac fang
putting .META. content up in > zookeeper). > > St.Ack > > On Sun, Jan 16, 2011 at 6:36 AM, mac fang wrote: > > Hi, guys, > > > > one question want to get the awnser: i read the HBase Client code, seems > the > > logic to get a table: > > > > 1. Get

One question about HBase Client

2011-01-16 Thread mac fang
Hi, guys, one question want to get the awnser: i read the HBase Client code, seems the logic to get a table: 1. Get -ROOT- RegionLoc from Zk, 2. Get .META. RegionLoc from -ROOT- Table. 3. Get Table RegionLoc from .META. Table. So seems the -ROOT- is NOT necessary, we can put the .META. location

One issue in HMaster Bootstrap when run HBase 0.20.6 on Hadoop 0.21

2011-01-06 Thread mac fang
Hi, guys, I am trying to make the HBase 0.20.6 running on Hadoop 0.21, besides the issues which are caused by the Version differs, I also found one issue: There is NO "info" folder in the -ROOT- directory on Hadoop. /hbase_changes_026_021_mac_1/-ROOT-/70236052 I checked the code, and found there