Re: Difference in hbase shell and java API

2017-08-29 Thread Lalit Jadhav
Ted, I am using HBase-1.1.2 Version. Yes, It produced with small sample data Sean, I am just using Bytes.toString(byte[]) to convert byte array to stringified later converted to JSONObject. On Wed, Aug 30, 2017 at 5:12 AM, Sean Busbey wrote: > what are you using to decode / inspect th

Re: Folly not installed

2017-08-29 Thread Ted Yu
load-client is a native client which exercises puts / appends / increments operations using multiple threads. It also has logic to verify that data is written correctly using multi-get / get / scan operations. The HBASE-14850 branch was made off of master branch. So the load-client works with mast

Re: Difference in hbase shell and java API

2017-08-29 Thread Sean Busbey
what are you using to decode / inspect the JSONObject in each case? or are you just looking at the bytes for the string representation? On Tue, Aug 29, 2017 at 3:34 AM, Lalit Jadhav wrote: > Thank you for responding, > > No that what I meant, I am storing a JSONObject in Value. The row I scan in

Re: Folly not installed

2017-08-29 Thread Sean Busbey
+dev@hbase -user@hbase to bcc AFAIK the native client isn't ready for downstream consumption yet. can we please move this discussion to the dev@ list? On Tue, Aug 29, 2017 at 11:57 AM, Stack wrote: > On Tue, Aug 29, 2017 at 8:54 AM, Ted Yu wrote: > >> I have successfully run load-client against

Re: How send/receive (if need) native client messages?

2017-08-29 Thread Sean Busbey
+dev@hbase -user@hbase please move this discussion to the dev list. On Tue, Aug 29, 2017 at 11:22 AM, Ted Yu wrote: > GetTableNames API hasn't been implemented yet. > > If you have bandwidth, you're welcome to contribute to HBASE-14850 (as > subtask). > > On Tue, Aug 29, 2017 at 9:11 AM, Andrzej

Re: Co-processors: Know if row is being deleted by TTL

2017-08-29 Thread Ted Yu
I wonder if you can make use of per Cell TTL ? See third paragraph under http://hbase.apache.org/book.html#ttl Basically there would be two flags (same row): one for marking whether user has submitted the comment, the other is for the TTL you described. When postDelete() is called on the TTL'ed c

Re: Folly not installed

2017-08-29 Thread Stack
On Tue, Aug 29, 2017 at 8:54 AM, Ted Yu wrote: > I have successfully run load-client against an OpenStack cluster running > hbase 1.1.2 . > > What does load-client do? Does it not work w/ master, 1.2 or 1.3? > There is still some gap between the buck build and the Makefile build (e.g. > load-c

Re: How send/receive (if need) native client messages?

2017-08-29 Thread Ted Yu
GetTableNames API hasn't been implemented yet. If you have bandwidth, you're welcome to contribute to HBASE-14850 (as subtask). On Tue, Aug 29, 2017 at 9:11 AM, Andrzej wrote: > I try code: > hbase::pb::GetTableNamesRequest getTableNamesRequest; > //< how send request? > hbase::pb::GetT

How send/receive (if need) native client messages?

2017-08-29 Thread Andrzej
I try code: hbase::pb::GetTableNamesRequest getTableNamesRequest; //< how send request? hbase::pb::GetTableNamesResponse getTableNamesResponse; //< how receive response? int n = getTableNamesResponse.table_names_size(); std::cout << n << std::endl; // <-- is 0 for (int i=0; i

Re: Folly not installed

2017-08-29 Thread Ted Yu
I have successfully run load-client against an OpenStack cluster running hbase 1.1.2 . There is still some gap between the buck build and the Makefile build (e.g. load-client and simple-client cannot be built with Makefile) - according to Enis, separate tickets would be opened. Other pending work

Re: Folly not installed

2017-08-29 Thread Stack
On Tue, Aug 29, 2017 at 7:01 AM, Ted Yu wrote: > You can follow the structure of simple-client to create your own program. > > bq. it is possible compiling my own program without docker and buck? > > You can use make. > > bq. it is problem with includes > > Folly is used heavily by the native cl

Re: Folly not installed

2017-08-29 Thread Ted Yu
You can follow the structure of simple-client to create your own program. bq. it is possible compiling my own program without docker and buck? You can use make. bq. it is problem with includes Folly is used heavily by the native client source code. Ultimately your native program would include

Re: Folly not installed

2017-08-29 Thread Ted Yu
I assume you used the following to start docker: hbase-native-client/bin/start-docker.sh Did you use this command to build simple-client ? buck build //core:simple-client Running buck-out/gen/core/simple-client , I see this output: https://pastebin.com/n0SPm7Bm There was no complaint about li

Re: Folly not installed

2017-08-29 Thread Andrzej
W dniu 29.08.2017 o 14:27, Andrzej pisze: I found simple_client at buck-out/gen/core no libsasl2 sharted library libsasl2.so.3 I add symbolic link to libsasl2.so.2 and is ok, buck build number executable like simple-client but I am interested libraries *.a to build my own program using Hbase.

Re: Folly not installed

2017-08-29 Thread Andrzej
I use docker. Next I use buck inside docker. Buck creates me buck-out directory - 3.1 GB Where is output native client library? How use native client? I found simple_client at buck-out/gen/core no libsasl2 sharted library andrzej@andrzej-VirtualBox ~/code/hbase/hbase-native-client/buck-out/gen/c

Re: Difference in hbase shell and java API

2017-08-29 Thread Ted Yu
Which hbase version are you using ? Is it possible to reproduce the issue with small sample data ? Thanks Original message From: Lalit Jadhav Date: 8/29/17 1:34 AM (GMT-08:00) To: user@hbase.apache.org Subject: Re: Difference in hbase shell and java API Thank you for respondi

Re: Difference in hbase shell and java API

2017-08-29 Thread Lalit Jadhav
Thank you for responding, No that what I meant, I am storing a JSONObject in Value. The row I scan in Shell shows different JSONOject than one I got in Scan of Java API. On Tue, Aug 29, 2017 at 9:38 AM, Ted Yu wrote: > Typo: If the value-filter on scan was not applied in shell command > > On M