Re: Unique Put ends up twice in HBase?

2013-02-03 Thread ramkrishna vasudevan
Hi If the put is successful and stored to memstore then it should be a successful put. What type of exception did the Server throw? Regards Ram On Mon, Feb 4, 2013 at 12:50 PM, Mesika, Asaf wrote: > Hi, > > Can the following scenario occur? > > Create a Put for (rk1, cf1, cq1, value=1L) > run h

Unique Put ends up twice in HBase?

2013-02-03 Thread Mesika, Asaf
Hi, Can the following scenario occur? Create a Put for (rk1, cf1, cq1, value=1L) run hTable.batch Inside implementation: Put is sent to server Server throws an exception, but Put still is saved (WAL, memstore) Flush kicks in Client attempts a retry and succeeds, thus same put is written for the s

Re: Start key and End key in HBase

2013-02-03 Thread Mohammad Tariq
Just to add to whatever Anoop sir has said, the row corresponding to the endkey is not included in the result set by default. Warm Regards, Tariq https://mtariq.jux.com/ cloudfront.blogspot.com On Mon, Feb 4, 2013 at 12:38 PM, Anoop Sam John wrote: > When you do a scan with out specifying any

RE: Start key and End key in HBase

2013-02-03 Thread Anoop Sam John
When you do a scan with out specifying any start/end keys, it is full table scan. The scan from client side will go through all the regions one after the other. But when you know the rowkey range that you want to scan you can specify that using start/end keys. This time client will evaluate whic

RE: Start key and End key in HBase

2013-02-03 Thread raviprasad . t
Hi Anoop, Yes it for scan. Regards Raviprasad. T Mobile :- 91- 9894769541 -Anoop Sam John wrote: - To: "user@hbase.apache.org" From: Anoop Sam John Date: 02/04/2013 10:14AM Subject: RE: Start key and End key in HBase Can you pls make the question clear? You mean use in Scan? -Ano

Re: Start key and End key in HBase

2013-02-03 Thread Mohammad Tariq
It signifies start and end of the table regions, it is used in doing range queries. Warm Regards, Tariq https://mtariq.jux.com/ cloudfront.blogspot.com On Mon, Feb 4, 2013 at 10:11 AM, wrote: > Hi all, > Can anyone let me know what is the use of Start key and End key in > HBase. > > > Rega

RE: Start key and End key in HBase

2013-02-03 Thread Anoop Sam John
Can you pls make the question clear? You mean use in Scan? -Anoop- From: raviprasa...@polarisft.com [raviprasa...@polarisft.com] Sent: Monday, February 04, 2013 10:11 AM To: user@hbase.apache.org Subject: Start key and End key in HBase Hi all, Can anyo

Start key and End key in HBase

2013-02-03 Thread raviprasad . t
Hi all, Can anyone let me know what is the use of Start key and End key in HBase. Regards Raviprasad. T Mobile :- 91- 9894769541 This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error thi

RE: Hbase Read/Write throughput measure

2013-02-03 Thread Dalia Sobhy
Dear Mohamed, It finished compiling and I have changed the hbase-site.xml of ycsb to the one from cloudera. I am following the steps in your blog, but first I couldn't find the pom.xml in YCSB/hbase directory. I found it only in YCSB general directory, here is the contents: 2.2.1

Re: Hbase Read/Write throughput measure

2013-02-03 Thread Mohammad Tariq
it may take some time depending on your connection. wait for sometime. if you still find some problem you can visit this link Warm Regards, Tariq https://mtariq.jux.com/ cloudfront.blogspot.com On Mon, Feb

RE: Hbase Read/Write throughput measure

2013-02-03 Thread Dalia Sobhy
Hello Mohamed, I am using ubuntu 12, but the problem is that I was facing some errors while compiling, after solving them. After $git clone http://github.com/brianfrankcooper/YCSB.git Cloning into 'YCSB'... remote: Counting objects: 2260, done. remote: Compressing objects: 100% (694/694), done.

Re: Hbase Read/Write throughput measure

2013-02-03 Thread Mohammad Tariq
ycsb-1.0.4 was built with with hbase-0.90.5 and you are usin 0.92, so you need to update ycsb's hbase zookeeper jars. To do that copy the hbase-*.jar and zookeeper-*.jar into the /hadoop/projects/ycsb-0.1.4/hbase-binding/lib directory. And copy your hbase-site.xml into /hadoop/projects/ycsb-0.1.4/h

Re: Hbase Read/Write throughput measure

2013-02-03 Thread Mohammad Tariq
Hello Dalia, Me and Anil are talking about this : 1 - git clone http://github.com/brianfrankcooper/YCSB.git 2 - cd YCSB/ 3 - mvn compile And not compiling through Java Warm Regards, Tariq https://mtariq.jux.com/ cloudfront.blogspot.com On Mon, Feb 4, 2013 at 12:14 AM, Dalia Sobhy wr

Re: Hbase Read/Write throughput measure

2013-02-03 Thread Dalia Sobhy
Hi anil, How to recompile it ? Sent from my iPhone On 2013-02-03, at 8:00 PM, "anil gupta" wrote: > Hi Dalia, > > Recently, i ran into same problem with YCSB. You will need to recompile > YCSB with HBase0.92. Download the maven project from yscb site and > recompile it with HBase0.92. > > HT

Re: Hbase Read/Write throughput measure

2013-02-03 Thread anil gupta
Hi Dalia, Recently, i ran into same problem with YCSB. You will need to recompile YCSB with HBase0.92. Download the maven project from yscb site and recompile it with HBase0.92. HTH, Anil Gupta On Sun, Feb 3, 2013 at 9:49 AM, Dalia Sobhy wrote: > > Hello Mohamed, > > Yes Hbase is running good a

RE: Hbase Read/Write throughput measure

2013-02-03 Thread Dalia Sobhy
Hello Mohamed, Yes Hbase is running good and already I have a table and and some records there. I have done what you told me I copied all jar files from lib directory to YSCB/db/hbase/lib/ directory. After restart and writing this command "./bin/ycsb run hbase -p columnfamily=family -P worklo

Re: Pagination with HBase - getting previous page of data

2013-02-03 Thread anil gupta
Inline... On Sun, Feb 3, 2013 at 9:25 AM, Toby Lazar wrote: > Quick question - if you perform the pagination client-side and just > call scanner.iterator().next() > to get to the necessary results, doesn't this add unecessary network > traffic of the unused results? Anil: It depends on the solu

Re: Pagination with HBase - getting previous page of data

2013-02-03 Thread Toby Lazar
Quick question - if you perform the pagination client-side and just call scanner.iterator().next() to get to the necessary results, doesn't this add unecessary network traffic of the unused results? If you want results 100-120, does the client need to first read results 1-100 over the network? Co

Re: Hbase Read/Write throughput measure

2013-02-03 Thread Mohammad Tariq
Hello Dalia, Is your Hbase running OK? Copy the hbase jar from your HBASE_HOME and all the jars from your HBASE_HOME/lib/ directory to your YSCB/db/hbase/lib/ directory, compile it again and restart everything. Warm Regards, Tariq https://mtariq.jux.com/ cloudfront.blogspot.com On Sun,

Re: Pagination with HBase - getting previous page of data

2013-02-03 Thread anil gupta
On Sun, Feb 3, 2013 at 8:07 AM, Anoop John wrote: > >lets say for a scan setCaching is > 10 and scan is done across two regions. 9 Results(satisfying the filter) > are in Region1 and 10 Results(satisfying the filter) are in Region2. Then > will this scan return 19 (9+10) results? > > @Anil. > No

Re: Hbase Read/Write throughput measure

2013-02-03 Thread anil gupta
Hi Dalia, Recently, i ran into the same problem with yscb. You will have to recompile YCSB by yourself by downloading the maven project. The problem is that YCSB is not compiled with 0.92 even though they claim to do so. So, once you locally compile YCSB with HBase0.92 then you should be good to g

RE: Hbase Read/Write throughput measure

2013-02-03 Thread Dalia Sobhy
Hello Mohamed, I believe thats not the case. check this blog http://stackoverflow.com/questions/11649824/hbase-error-not-a-hostport-pair It denotes that this error is due to incompatible Hbase client and server versions, although I am using Hbase server :0.92 and the server is the latest one

Re: Pagination with HBase - getting previous page of data

2013-02-03 Thread Anoop John
>lets say for a scan setCaching is 10 and scan is done across two regions. 9 Results(satisfying the filter) are in Region1 and 10 Results(satisfying the filter) are in Region2. Then will this scan return 19 (9+10) results? @Anil. No it will return 10 results only not 19. The client here takes into

Re: Pagination with HBase - getting previous page of data

2013-02-03 Thread Asaf Mesika
Here are my thoughts on this matter: 1. If you define setCaching(numOfRows) on the the scan object, you can check before each call to make sure you haven't passed your page limit, thus won't get to the point in which you retrieve from each region pageSize results. 2. I think its o.k. for the UI t

Re: Hbase Read/Write throughput measure

2013-02-03 Thread Mohammad Tariq
Hello Dalia, I am sorry for late response, courtesy hectic schedule. Add the hbase-site.xml file to the classpath and see if it works for you. Warm Regards, Tariq https://mtariq.jux.com/ cloudfront.blogspot.com On Sun, Feb 3, 2013 at 3:50 AM, Dalia Sobhy wrote: > > I tried yahoo bench m