You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Kazuomi Kashii (JIRA)" <ji...@apache.org> on 2012/05/21 23:00:42 UTC
[jira] [Created] (GORA-139) Creates Cassandra column family with
BytesType for column value validator (and comparators), instead of UTF8Type
Kazuomi Kashii created GORA-139:
-----------------------------------
Summary: Creates Cassandra column family with BytesType for column value validator (and comparators), instead of UTF8Type
Key: GORA-139
URL: https://issues.apache.org/jira/browse/GORA-139
Project: Apache Gora
Issue Type: Improvement
Components: storage-cassandra
Reporter: Kazuomi Kashii
Currently, if a column family does not exist, it is created by CassandraClient with CassandraMapping
but its column value validator and its comparators are UTF8Type, and it may cause an exception,
depending on its value as follows:
Column Families:
ColumnFamily: f
Key Validation Class: org.apache.cassandra.db.marshal.BytesType
Default column value validator: org.apache.cassandra.db.marshal.UTF8Type
Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
GC grace seconds: 0
Compaction min/max thresholds: 4/32
Read repair chance: 0.0
DC Local Read repair chance: 0.0
Replicate on write: false
Caching: KEYS_ONLY
Bloom Filter FP chance: default
Compaction Strategy: org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy
Compression Options:
sstable_compression: org.apache.cassandra.io.compress.SnappyCompressor
me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:(String didn't validate.) [aarpdaily][f][ts] failed validation)
at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:52)
at me.prettyprint.cassandra.service.KeyspaceServiceImpl$1.execute(KeyspaceServiceImpl.java:97)
...
It should be BytesType instead of UTF8Type to support any value.
--
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
[jira] [Updated] (GORA-139) Creates Cassandra column family with
BytesType for column value validator (and comparators), instead of UTF8Type
Posted by "Kazuomi Kashii (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kazuomi Kashii updated GORA-139:
--------------------------------
Attachment: GORA-139.patch
+ cfDef.setComparatorType(ComparatorType.BYTESTYPE);
for GORA-138
> Creates Cassandra column family with BytesType for column value validator (and comparators), instead of UTF8Type
> ----------------------------------------------------------------------------------------------------------------
>
> Key: GORA-139
> URL: https://issues.apache.org/jira/browse/GORA-139
> Project: Apache Gora
> Issue Type: Improvement
> Components: storage-cassandra
> Reporter: Kazuomi Kashii
> Attachments: GORA-139.patch
>
>
> Currently, if a column family does not exist, it is created by CassandraClient with CassandraMapping
> but its column value validator and its comparators are UTF8Type, and it may cause an exception,
> depending on its value as follows:
> Column Families:
> ColumnFamily: f
> Key Validation Class: org.apache.cassandra.db.marshal.BytesType
> Default column value validator: org.apache.cassandra.db.marshal.UTF8Type
> Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
> GC grace seconds: 0
> Compaction min/max thresholds: 4/32
> Read repair chance: 0.0
> DC Local Read repair chance: 0.0
> Replicate on write: false
> Caching: KEYS_ONLY
> Bloom Filter FP chance: default
> Compaction Strategy: org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy
> Compression Options:
> sstable_compression: org.apache.cassandra.io.compress.SnappyCompressor
> me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:(String didn't validate.) [aarpdaily][f][ts] failed validation)
> at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:52)
> at me.prettyprint.cassandra.service.KeyspaceServiceImpl$1.execute(KeyspaceServiceImpl.java:97)
> ...
> It should be BytesType instead of UTF8Type to support any value.
--
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
[jira] [Closed] (GORA-139) Creates Cassandra column family with
BytesType for column value validator (and comparators), instead of UTF8Type
Posted by "Lewis John McGibbney (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lewis John McGibbney closed GORA-139.
-------------------------------------
> Creates Cassandra column family with BytesType for column value validator (and comparators), instead of UTF8Type
> ----------------------------------------------------------------------------------------------------------------
>
> Key: GORA-139
> URL: https://issues.apache.org/jira/browse/GORA-139
> Project: Apache Gora
> Issue Type: Improvement
> Components: storage-cassandra
> Reporter: Kazuomi Kashii
> Fix For: 0.2.1
>
> Attachments: GORA-139.patch
>
>
> Currently, if a column family does not exist, it is created by CassandraClient with CassandraMapping
> but its column value validator and its comparators are UTF8Type, and it may cause an exception,
> depending on its value as follows:
> Column Families:
> ColumnFamily: f
> Key Validation Class: org.apache.cassandra.db.marshal.BytesType
> Default column value validator: org.apache.cassandra.db.marshal.UTF8Type
> Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
> GC grace seconds: 0
> Compaction min/max thresholds: 4/32
> Read repair chance: 0.0
> DC Local Read repair chance: 0.0
> Replicate on write: false
> Caching: KEYS_ONLY
> Bloom Filter FP chance: default
> Compaction Strategy: org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy
> Compression Options:
> sstable_compression: org.apache.cassandra.io.compress.SnappyCompressor
> me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:(String didn't validate.) [aarpdaily][f][ts] failed validation)
> at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:52)
> at me.prettyprint.cassandra.service.KeyspaceServiceImpl$1.execute(KeyspaceServiceImpl.java:97)
> ...
> It should be BytesType instead of UTF8Type to support any value.
--
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
[jira] [Resolved] (GORA-139) Creates Cassandra column family with
BytesType for column value validator (and comparators), instead of UTF8Type
Posted by "Lewis John McGibbney (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lewis John McGibbney resolved GORA-139.
---------------------------------------
Resolution: Fixed
Fix Version/s: 0.3
Committed @revision 1341264 in trunk
Thank you Kazuomi
> Creates Cassandra column family with BytesType for column value validator (and comparators), instead of UTF8Type
> ----------------------------------------------------------------------------------------------------------------
>
> Key: GORA-139
> URL: https://issues.apache.org/jira/browse/GORA-139
> Project: Apache Gora
> Issue Type: Improvement
> Components: storage-cassandra
> Reporter: Kazuomi Kashii
> Fix For: 0.3
>
> Attachments: GORA-139.patch
>
>
> Currently, if a column family does not exist, it is created by CassandraClient with CassandraMapping
> but its column value validator and its comparators are UTF8Type, and it may cause an exception,
> depending on its value as follows:
> Column Families:
> ColumnFamily: f
> Key Validation Class: org.apache.cassandra.db.marshal.BytesType
> Default column value validator: org.apache.cassandra.db.marshal.UTF8Type
> Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
> GC grace seconds: 0
> Compaction min/max thresholds: 4/32
> Read repair chance: 0.0
> DC Local Read repair chance: 0.0
> Replicate on write: false
> Caching: KEYS_ONLY
> Bloom Filter FP chance: default
> Compaction Strategy: org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy
> Compression Options:
> sstable_compression: org.apache.cassandra.io.compress.SnappyCompressor
> me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:(String didn't validate.) [aarpdaily][f][ts] failed validation)
> at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:52)
> at me.prettyprint.cassandra.service.KeyspaceServiceImpl$1.execute(KeyspaceServiceImpl.java:97)
> ...
> It should be BytesType instead of UTF8Type to support any value.
--
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
[jira] [Commented] (GORA-139) Creates Cassandra column family with
BytesType for column value validator (and comparators), instead of UTF8Type
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280682#comment-13280682 ]
Hudson commented on GORA-139:
-----------------------------
Integrated in gora-trunk #288 (See [https://builds.apache.org/job/gora-trunk/288/])
commit to address GORA-139 and update to CHANGES.txt (Revision 1341264)
Result = SUCCESS
lewismc :
Files :
* /gora/trunk/CHANGES.txt
* /gora/trunk/gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraMapping.java
> Creates Cassandra column family with BytesType for column value validator (and comparators), instead of UTF8Type
> ----------------------------------------------------------------------------------------------------------------
>
> Key: GORA-139
> URL: https://issues.apache.org/jira/browse/GORA-139
> Project: Apache Gora
> Issue Type: Improvement
> Components: storage-cassandra
> Reporter: Kazuomi Kashii
> Fix For: 0.3
>
> Attachments: GORA-139.patch
>
>
> Currently, if a column family does not exist, it is created by CassandraClient with CassandraMapping
> but its column value validator and its comparators are UTF8Type, and it may cause an exception,
> depending on its value as follows:
> Column Families:
> ColumnFamily: f
> Key Validation Class: org.apache.cassandra.db.marshal.BytesType
> Default column value validator: org.apache.cassandra.db.marshal.UTF8Type
> Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
> GC grace seconds: 0
> Compaction min/max thresholds: 4/32
> Read repair chance: 0.0
> DC Local Read repair chance: 0.0
> Replicate on write: false
> Caching: KEYS_ONLY
> Bloom Filter FP chance: default
> Compaction Strategy: org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy
> Compression Options:
> sstable_compression: org.apache.cassandra.io.compress.SnappyCompressor
> me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:(String didn't validate.) [aarpdaily][f][ts] failed validation)
> at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:52)
> at me.prettyprint.cassandra.service.KeyspaceServiceImpl$1.execute(KeyspaceServiceImpl.java:97)
> ...
> It should be BytesType instead of UTF8Type to support any value.
--
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
[jira] [Updated] (GORA-139) Creates Cassandra column family with
BytesType for column value validator (and comparators), instead of UTF8Type
Posted by "Lewis John McGibbney (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lewis John McGibbney updated GORA-139:
--------------------------------------
Fix Version/s: (was: 0.3)
0.2.1
> Creates Cassandra column family with BytesType for column value validator (and comparators), instead of UTF8Type
> ----------------------------------------------------------------------------------------------------------------
>
> Key: GORA-139
> URL: https://issues.apache.org/jira/browse/GORA-139
> Project: Apache Gora
> Issue Type: Improvement
> Components: storage-cassandra
> Reporter: Kazuomi Kashii
> Fix For: 0.2.1
>
> Attachments: GORA-139.patch
>
>
> Currently, if a column family does not exist, it is created by CassandraClient with CassandraMapping
> but its column value validator and its comparators are UTF8Type, and it may cause an exception,
> depending on its value as follows:
> Column Families:
> ColumnFamily: f
> Key Validation Class: org.apache.cassandra.db.marshal.BytesType
> Default column value validator: org.apache.cassandra.db.marshal.UTF8Type
> Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
> GC grace seconds: 0
> Compaction min/max thresholds: 4/32
> Read repair chance: 0.0
> DC Local Read repair chance: 0.0
> Replicate on write: false
> Caching: KEYS_ONLY
> Bloom Filter FP chance: default
> Compaction Strategy: org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy
> Compression Options:
> sstable_compression: org.apache.cassandra.io.compress.SnappyCompressor
> me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:(String didn't validate.) [aarpdaily][f][ts] failed validation)
> at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:52)
> at me.prettyprint.cassandra.service.KeyspaceServiceImpl$1.execute(KeyspaceServiceImpl.java:97)
> ...
> It should be BytesType instead of UTF8Type to support any value.
--
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