Hi Luke,

On Tue, Dec 30, 2008 at 9:00 PM, Luke <[email protected]> wrote:
>
> On Dec 30, 5:43 am, "Mateusz Berezecki" <[email protected]> wrote:
>> Hi Luke,
>>
>> I'm seeing weird behavior when running ThriftClient in python , as
>> well as my own ruby simple clients
>>
>> Is the output below a sign of a broken thrift installation or a bug of
>> thriftbroker?
>
> Well here my client_test.py output:
>
> {'mutator': None, 'cells': None, 'results': ['BigTest', 'METADATA',
> 'Pages', 'Pa
> ges_clone', 'Test1', 'Test2', 'Test3', 'Test4', 'hypertable', 'test',
> 'thrift_te
> st'], 'scanner': None}
> {'mutator': None, 'cells': [{'column_family': 'col',
> 'column_qualifier': None, '
> timestamp': 1226401871000000000L, 'value': 'v1', 'row_key': 'k1',
> 'flag': 255, '
> revision': -9223372036854775806L}, {'column_family': 'col',
> 'column_qualifier':
> None, 'timestamp': 1226401871000000000L, 'value': 'v2', 'row_key':
> 'k2', 'flag':
>  255, 'revision': -9223372036854775806L}, {'column_family': 'col',
> 'column_quali
> fier': None, 'timestamp': 1226401871000000000L, 'value': 'v3',
> 'row_key': 'k3',
> 'flag': 255, 'revision': -9223372036854775806L}], 'results': None,
> 'scanner': No
> ne}

Ok, that looks much cleaner ;-)

> Here is an interactive session:
> $ env PYTHONPATH=.:./gen-py python
> Python 2.5.2 (r252:60911, Apr 14 2008, 21:12:06)
> [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from hypertable.thriftclient import ThriftClient
>>>> client = ThriftClient("localhost", 38080)
>>>> client.hql_query("show tables")
> {'mutator': None, 'cells': None, 'results': ['BigTest', 'METADATA',
> 'Pages', 'Pages_clone', 'Test1', 'Test2', 'Test3', 'Test4',
> 'hypertable', 'test', 'thrift_test'], 'scanner': None}
>>>>
>
> Can you tell me your thrift version? Does the C++ client work? It
> could be that you're using the latest thrift in trunk and they changed
> a few things. In the case, try touch src/cc/ThriftBroker/*.thrift and
> try make again, which will generate new gen-py/rb etc.

My thrift version according to $ thrift -version is
Thrift version 20080411-r729425

I have not tried the C++ client, but I'm not sure I know what you mean?
If you're asking about hypertable shell utility it works correctly. If
that's about a C++ version that is equivalent to py/rb thrift clients
I have not tried that. Does it get autogenerated by default?

What is the supported/suggested Thrfit version I should use with Hypertable?

Mateusz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Hypertable Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hypertable-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to