-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default validator comparator type on hector clients: "cannot parse 'SomeColumn' as hex bytes" #674
Comments
I appreciate the questions and update, but please see this section of the This project is no longer active. On Wed, Jan 27, 2016 at 2:02 PM, krishna81m [email protected]
|
Uh oh, we do use both, we have quite a bit of code still using hector, don't think that is an easy migration :) |
We do too. When upgrading to Cassandra 2.0 I was able to build and use the 2.0 Hector version successfully in production. We are finding that Hector's performance for bulk loading of data far exceeds the performance of the CQL Driver. However, as you found you will need to use compact storage and define tables using the cli using the old style. For example if you need to have composite keys. e.g. CREATE COLUMN FAMILY ORDER_LINE WITH COLUMN_TYPE = 'Standard' AND COMPARATOR = 'UTF8Type' AND key_validation_class = 'UTF8Type' |
I am testing if we can upgrade our cassandra 1.2.13 to 1.2.19 and spun up a single instance and populated data from 1.2 without any problem, everything works, even from a IDE client on thrift:9160 port is able to run this query.
However, hector throws an exception, although we do read by passing key, value, name serializer as string, but shouldn't there be a way to specify the default validator, comparator also as UTF8?
CqlQuery<String, String, String> cqlQuery = new CqlQuery<String, String, String>(instance.getMasterKeyspace(),STR_SERIALIZER,STR_SERIALIZER,STR_SERIALIZER);
The fix was to explicitly create the tables
WITH COMPACT STORAGE
to get the default validator, comparator types to UTF8Type.
http://www.planetcassandra.org/blog/datastax-developer-blog-a-thrift-to-cql3-upgrade-guide/
The text was updated successfully, but these errors were encountered: