[
https://issues.apache.org/jira/browse/GORA-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13413012#comment-13413012
]
Kazuomi Kashii commented on GORA-53:
------------------------------------
I updated gora-cassandra/src/test/conf/gora-cassandra-mapping.xml to use
"qualifier" instead of "path" like:
<class name="org.apache.gora.examples.generated.Employee"
keyClass="java.lang.String" keyspace="Employee">
<field name="name" family="p" qualifier="info:nm"/>
<field name="dateOfBirth" family="p" qualifier="info:db"/>
<field name="ssn" family="p" qualifier="info:sn"/>
<field name="salary" family="p" qualifier="info:sl"/>
</class>
then, it prints:
12/07/12 10:50:30 INFO store.CassandraClient: columnFamily=p columnName=info:nm
value=Random Joe
However, it seems that Avro version is conflicted between
avro-1.3.3.jar and avro-1.4.0-cassandra-1.jar.
The later one was added because of cassandra-all.
testTruncateSchema(org.apache.gora.cassandra.store.TestCassandraStore) Time
elapsed: 0.328 sec <<< ERROR!
java.lang.NoSuchMethodError:
org.apache.avro.generic.GenericArray.add(Ljava/lang/Object;)V
at
org.apache.gora.examples.generated.WebPage.addToParsedContent(WebPage.java:101)
at
org.apache.gora.examples.WebPageDataCreator.createWebPageData(WebPageDataCreator.java:120)
at
org.apache.gora.store.DataStoreTestUtil.testTruncateSchema(DataStoreTestUtil.java:111)
at
org.apache.gora.store.DataStoreTestBase.testTruncateSchema(DataStoreTestBase.java:152)
> Add Gora-Cassandra tests
> ------------------------
>
> Key: GORA-53
> URL: https://issues.apache.org/jira/browse/GORA-53
> Project: Apache Gora
> Issue Type: Improvement
> Components: storage-cassandra
> Affects Versions: 0.1.1-incubating
> Reporter: Lewis John McGibbney
> Assignee: Lewis John McGibbney
> Priority: Critical
> Fix For: 0.3
>
> Attachments: GORA-53-v2.patch, GORA-53.patch, GORA-54-v8.patch
>
>
> As per this thread [1], it is absolutely essential that we get some tests for
> the Cassandra module. Therefore this task should act as a summary task to
> manage all test which are hereby proposed.
> Realistically, this is going to take a good while, so I have marked it for
> 0.2 and 0.3-incubating releases.
> [1] http://www.mail-archive.com/[email protected]/msg00241.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira