problems of searching data using java thrift api

106 views
Skip to first unread message

Frank Zhou

unread,
Nov 15, 2012, 3:21:45 AM11/15/12
to hyperta...@googlegroups.com
when I use java apis to search data from hypertable , there are some problem:
I set ColumnPredicate and set columns like this:

// set column predicates
ColumnPredicate cp = new ColumnPredicate();
cp.setColumn_family("age");
cp.setOperation(ColumnPredicateOperation.PREFIX_MATCH);
cp.setValue("3");
scan_spec.addToColumn_predicates(cp);
//set columns
scan_spec.addToColumns("name");
scan_spec.addToColumns("age");

but the result only contain one column 'age':

rowkey: 01
family: age
qualifier:
value: 30

The table is like this:
create table user (name, age, index age);

data is like this:
01      name    zhou
01      name:nakename   san
01      age     30


but when using C++ apis, it can return column "age" and "name".
Is there any bugs about the java thrift apis?
How to make java return all columns I need?

Christoph Rupp

unread,
Nov 15, 2012, 2:37:52 PM11/15/12
to hyperta...@googlegroups.com
Hi Frank,

this could be a bug in the ThriftBroker. I filed issue 974 and will have a look. I'll try to fix it for the next release.

http://code.google.com/p/hypertable/issues/detail?id=974

bye
Christoph

2012/11/15 Frank Zhou <zhoush...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Hypertable Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hypertable-dev/-/2G92QePVEPwJ.
To post to this group, send email to hyperta...@googlegroups.com.
To unsubscribe from this group, send email to hypertable-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hypertable-dev?hl=en.

Christoph Rupp

unread,
Dec 19, 2012, 6:00:40 AM12/19/12
to hyperta...@googlegroups.com, ch...@hypertable.com
Hi Frank,

please check the issue for an update.

bye
Christoph

Ramakrishna Kc

unread,
Jul 23, 2013, 3:39:37 AM7/23/13
to hyperta...@googlegroups.com
From where u get the hypertable.jar ?? I downloaded hypertable zip file from http://www.hypertable.com. Then I extracted that .zip file. In that i searched a lot, I dint get the hypertable<current version>.jar file.In their site, They just given add  hypertable<current version>.jar file to the classpath. There I'm confused. Please tell me step by step to set classpath to hypertable<current version>.jar file. 

Thanks.

Christoph Rupp

unread,
Jul 23, 2013, 4:03:59 AM7/23/13
to hyperta...@googlegroups.com
Just unpack the zip file and you should find the jar files in the lib/java subdirectory.

2013/7/23 Ramakrishna Kc <ramakri...@dioxe.com>

--
You received this message because you are subscribed to the Google Groups "Hypertable Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hypertable-de...@googlegroups.com.

To post to this group, send email to hyperta...@googlegroups.com.

Ramakrishna Kc

unread,
Jul 23, 2013, 5:50:29 AM7/23/13
to hyperta...@googlegroups.com
I'm damn sure, There is no hypertable<version>.jar file. I downloaded all versions of hypertable .zip file from 0.9.7.0 to 0.9.7.8. I searched a lot, I din't get. If that hypertable<version>.jar file really there, then at least send the .zip file to ramakri...@dioxe.com and plz mention where is the hypertable<version>.jar file in that .zip after extracted.I'm using windows 7. I got only jars whose path is "C:\Users\Ozoneadmin\Desktop\New folder\hypertable-0.9.7.8\lib\<list of .jar files(but no hypertable.jar file)>". Even I gt libthrift_0.8.0 dependency jar and other jars like log4j,commons etc., 

Christoph Rupp

unread,
Jul 23, 2013, 6:17:13 AM7/23/13
to hyperta...@googlegroups.com
I just downloaded 0.9.7.8 and found the file in here:
/opt/hypertable/0.9.7.8/lib/java/cdh3/

and in here - depending on the CDH version that you use:
/opt/hypertable/0.9.7.8/lib/java/cdh4

If you would have properly installed hypertable and configured a CDH version then you would also have found the file in /opt/hypertable/0.9.7.8/lib/java.


2013/7/23 Ramakrishna Kc <ramakri...@dioxe.com>

Ramakrishna Kc

unread,
Jul 23, 2013, 8:12:24 AM7/23/13
to hyperta...@googlegroups.com
Yup, I properly Installed hypertable.exe from http://ht4w.softdev.ch/index.php/downloads. After I install c->prgrms files->hypertable I can see all 7 .exe files, 1 CHANGES file, 1 license.txt file and 1 conf folder inside it contains 2 .xml files. I dint get capistrano capfile. How Do I install and configure that .gem file? That is a serialized object I think so. CDH means that only nah? 

Ramakrishna Kc

unread,
Jul 24, 2013, 12:44:29 AM7/24/13
to hyperta...@googlegroups.com
Can you plz make video of installation and configuration with a basic operations like insert,update,delete and retrieve data from hyper-table in windows from beginning and send/upload it?  Plz send me a link after if you done video and upload.
If you do video, it'll be more useful for most of the people including me also. 

Thanks.

Christoph Rupp

unread,
Jul 24, 2013, 1:04:34 AM7/24/13
to hyperta...@googlegroups.com
I certainly won't do that.

There's so much high quality documentation online, if you would just invest a few minutes of time and skim through it then you would know where to start looking.

http://hypertable.com/documentation

Start with "Overview" and "Architecture", then continue with "Developer Guide" -> "HQL Tutorial".

And maybe the Windows package/webpage has additional documentation that you can read.

2013/7/24 Ramakrishna Kc <ramakri...@dioxe.com>
Reply all
Reply to author
Forward
0 new messages