Hi..
I have moved from CQL to Hector method of creating CF.
I am creating the CF like this:
ColumnFamilyDefinition cfDef =
HFactory.createColumnFamilyDefinition(keyspaceName, "cfname",
ComparatorType.UUIDTYPE, columnList);
ColumnFamilyTemplate<UUID, String> template =
new ThriftColumnFamilyTemplate<UUID, String>(
ksp, "cfname", UUIDSerializer.get(),
StringSerializer.get());
ColumnFamilyUpdater<UUID, String> updater =
template.createUpdater(UUIDKeyHere); // UUIDKeyHere is a UUID Format
updater.setString("site_url", siteURL);
template.update(updater);
I get the below Trace now:
me.prettyprint.hector.api.exceptions.HInvalidRequestException:
InvalidRequestException(why:Column name 736974655f75726c is not valid
for comparator org.apache.cassandra.db.marshal.UUIDType)
Connect to the existing group...
at
me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:
52)
at me.prettyprint.cassandra.service.ThriftCluster
$6.execute(ThriftCluster.java:152)
at me.prettyprint.cassandra.service.ThriftCluster
$6.execute(ThriftCluster.java:142)
at
me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:
99)
at
me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:
241)
at
me.prettyprint.cassandra.service.ThriftCluster.addKeyspace(ThriftCluster.java:
156)
at com.cinteron.db.HectorDB.createSchema(HectorDB.java:58)
at com.cinteron.db.HectorDB.<init>(HectorDB.java:40)
at com.cinteron.db.DBMethods.<init>(DBMethods.java:9)
at com.cinteron.seo.Test.main(Test.java:20)
-geeek