You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Pavel Yaskevich (Commented) (JIRA)" <ji...@apache.org> on 2011/09/30 17:48:45 UTC

[jira] [Commented] (CASSANDRA-3282) CLI does not support removing compression options from a ColumnFamily

    [ https://issues.apache.org/jira/browse/CASSANDRA-3282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118148#comment-13118148 ] 

Pavel Yaskevich commented on CASSANDRA-3282:
--------------------------------------------

Works for me on the latest cassandra-1.0.0 branch:

{noformat}
[git:cassandra-1.0.0] (~/work/java/cassandra-trunk) → ./bin/cassandra-cli --host localhost
Connected to: "Test Cluster" on localhost/9160
Welcome to the Cassandra CLI.

Type 'help;' or '?' for help.
Type 'quit;' or 'exit;' to quit.

[default@unknown] create keyspace ks;
972385e0-eb7a-11e0-0000-242d50cf1fdd
Waiting for schema agreement...
... schemas agree across the cluster
[default@ks] create column family cf with comparator=UTF8Type and key_validation_class=UTF8Type and 
...	compression_options={sstable_compression:SnappyCompressor, chunk_length_kb:16};        
11870140-eb7b-11e0-0000-242d50cf1fdd
Waiting for schema agreement...
... schemas agree across the cluster
[default@ks] describe cf;                                                                           
    ColumnFamily: cf
      Key Validation Class: org.apache.cassandra.db.marshal.UTF8Type
      Default column value validator: org.apache.cassandra.db.marshal.BytesType
      Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
      Row cache size / save period in seconds / keys to save : 0.0/0/all
      Key cache size / save period in seconds: 200000.0/14400
      GC grace seconds: 864000
      Compaction min/max thresholds: 4/32
      Read repair chance: 1.0
      Replicate on write: true
      Built indexes: []
      Compaction Strategy: org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy
      Compression Options:
        chunk_length_kb: 16
        sstable_compression: org.apache.cassandra.io.compress.SnappyCompressor
[default@ks] update column family cf with comparator=UTF8Type and key_validation_class=UTF8Type and 
...	compression_options=null;                                                              
18177490-eb7b-11e0-0000-242d50cf1fdd
Waiting for schema agreement...
... schemas agree across the cluster
[default@ks] describe cf;                                                                           
    ColumnFamily: cf
      Key Validation Class: org.apache.cassandra.db.marshal.UTF8Type
      Default column value validator: org.apache.cassandra.db.marshal.BytesType
      Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
      Row cache size / save period in seconds / keys to save : 0.0/0/all
      Key cache size / save period in seconds: 200000.0/14400
      GC grace seconds: 864000
      Compaction min/max thresholds: 4/32
      Read repair chance: 1.0
      Replicate on write: true
      Built indexes: []
      Compaction Strategy: org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy
[default@ks] quit;
{noformat}

Can you please provide at least your error message?
                
> CLI does not support removing compression options from a ColumnFamily
> ---------------------------------------------------------------------
>
>                 Key: CASSANDRA-3282
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3282
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.0.0
>            Reporter: Nate McCall
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.0.0
>
>
> This may be an issue with ThriftValidator as well - not accepting a null or empty compression properties map as a disable flag.

--
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