You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Edward Capriolo (JIRA)" <ji...@apache.org> on 2010/10/27 17:14:29 UTC
[jira] Updated: (CASSANDRA-1667) StorageService exportSchema
display is confusing
[ https://issues.apache.org/jira/browse/CASSANDRA-1667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edward Capriolo updated CASSANDRA-1667:
---------------------------------------
Description:
If you think of the data model as keyspace the top level and column family the second level, the output of StorageService exportSchema is confusing. It is correct YAML. The wish would be to add spaces and/or move the name of the keyspaces above the column families in that keyspace.
{noformat}
keyspaces:
- column_families:
- column_type: Standard
comment: ''
compare_with: org.apache.cassandra.db.marshal.BytesType
gc_grace_seconds: 864000
keys_cached: 200000.0
max_compaction_threshold: 32
min_compaction_threshold: 4
name: cf22
preload_row_cache: false
read_repair_chance: 1.0
rows_cached: 0.0
name: ks22
replica_placement_strategy: org.apache.cassandra.locator.SimpleStrategy
replication_factor: 2
- column_families:
- column_type: Standard
comment: ''
compare_with: org.apache.cassandra.db.marshal.BytesType
gc_grace_seconds: 864000
keys_cached: 200000.0
max_compaction_threshold: 32
min_compaction_threshold: 4
name: cf33
preload_row_cache: false
read_repair_chance: 1.0
rows_cached: 0.0
name: ks33
replica_placement_strategy: org.apache.cassandra.locator.SimpleStrategy
replication_factor: 3
[default@unknown] show Keyspaces
Keyspace: system
Replication Factor: 1
Column Families:
Column Family Name: IndexInfo {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.UTF8Type
}
Column Family Name: Schema {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.UTF8Type
}
Column Family Name: Migrations {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.TimeUUIDType
}
Column Family Name: LocationInfo {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.BytesType
}
Column Family Name: HintsColumnFamily {
Column Family Type: Super
Column Sorted By: org.apache.cassandra.db.marshal.BytesType
}
Keyspace: ks22
Replication Factor: 2
Column Families:
Column Family Name: cf22 {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.BytesType
}
Keyspace: ks33
Replication Factor: 3
Column Families:
Column Family Name: cf33 {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.BytesType
}
{noformat}
was:
Created a keyspace through thrift then ran StorageService exportSchema() with JMX. Results do not match 'show keyspaces' namely ks33 does not have any information on its column family.
ks33 was created like so using a replication factor of 3
{noformat}
public static KsDef createRackUnawareKSandCF(String ksname,String cfname,int replication){
KsDef newKs = new KsDef();
newKs.setStrategy_class("org.apache.cassandra.locator.SimpleStrategy");
newKs.setName(ksname);
newKs.setReplication_factor(replication);
CfDef cfdef = new CfDef();
cfdef.setKeyspace(ksname);
cfdef.setName(cfname);
newKs.addToCf_defs(cfdef);
return newKs;
}
{noformat}
Output
{noformat}
keyspaces:
- column_families:
- column_type: Standard
comment: ''
compare_with: org.apache.cassandra.db.marshal.BytesType
gc_grace_seconds: 864000
keys_cached: 200000.0
max_compaction_threshold: 32
min_compaction_threshold: 4
name: cf22
preload_row_cache: false
read_repair_chance: 1.0
rows_cached: 0.0
name: ks22
replica_placement_strategy: org.apache.cassandra.locator.SimpleStrategy
replication_factor: 2
- column_families:
- column_type: Standard
comment: ''
compare_with: org.apache.cassandra.db.marshal.BytesType
gc_grace_seconds: 864000
keys_cached: 200000.0
max_compaction_threshold: 32
min_compaction_threshold: 4
name: cf33
preload_row_cache: false
read_repair_chance: 1.0
rows_cached: 0.0
name: ks33
replica_placement_strategy: org.apache.cassandra.locator.SimpleStrategy
replication_factor: 3
[default@unknown] show Keyspaces
Keyspace: system
Replication Factor: 1
Column Families:
Column Family Name: IndexInfo {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.UTF8Type
}
Column Family Name: Schema {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.UTF8Type
}
Column Family Name: Migrations {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.TimeUUIDType
}
Column Family Name: LocationInfo {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.BytesType
}
Column Family Name: HintsColumnFamily {
Column Family Type: Super
Column Sorted By: org.apache.cassandra.db.marshal.BytesType
}
Keyspace: ks22
Replication Factor: 2
Column Families:
Column Family Name: cf22 {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.BytesType
}
Keyspace: ks33
Replication Factor: 3
Column Families:
Column Family Name: cf33 {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.BytesType
}
{noformat}
Issue Type: Wish (was: Bug)
Summary: StorageService exportSchema display is confusing (was: StoreService exportSchema does not display all Column families )
> StorageService exportSchema display is confusing
> ------------------------------------------------
>
> Key: CASSANDRA-1667
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1667
> Project: Cassandra
> Issue Type: Wish
> Components: Core
> Affects Versions: 0.7 beta 2
> Reporter: Edward Capriolo
> Assignee: Gary Dusbabek
> Priority: Minor
> Fix For: 0.7.1
>
>
> If you think of the data model as keyspace the top level and column family the second level, the output of StorageService exportSchema is confusing. It is correct YAML. The wish would be to add spaces and/or move the name of the keyspaces above the column families in that keyspace.
> {noformat}
> keyspaces:
> - column_families:
> - column_type: Standard
> comment: ''
> compare_with: org.apache.cassandra.db.marshal.BytesType
> gc_grace_seconds: 864000
> keys_cached: 200000.0
> max_compaction_threshold: 32
> min_compaction_threshold: 4
> name: cf22
> preload_row_cache: false
> read_repair_chance: 1.0
> rows_cached: 0.0
> name: ks22
> replica_placement_strategy: org.apache.cassandra.locator.SimpleStrategy
> replication_factor: 2
> - column_families:
> - column_type: Standard
> comment: ''
> compare_with: org.apache.cassandra.db.marshal.BytesType
> gc_grace_seconds: 864000
> keys_cached: 200000.0
> max_compaction_threshold: 32
> min_compaction_threshold: 4
> name: cf33
> preload_row_cache: false
> read_repair_chance: 1.0
> rows_cached: 0.0
> name: ks33
> replica_placement_strategy: org.apache.cassandra.locator.SimpleStrategy
> replication_factor: 3
> [default@unknown] show Keyspaces
> Keyspace: system
> Replication Factor: 1
> Column Families:
> Column Family Name: IndexInfo {
> Column Family Type: Standard
> Column Sorted By: org.apache.cassandra.db.marshal.UTF8Type
> }
> Column Family Name: Schema {
> Column Family Type: Standard
> Column Sorted By: org.apache.cassandra.db.marshal.UTF8Type
> }
> Column Family Name: Migrations {
> Column Family Type: Standard
> Column Sorted By: org.apache.cassandra.db.marshal.TimeUUIDType
> }
> Column Family Name: LocationInfo {
> Column Family Type: Standard
> Column Sorted By: org.apache.cassandra.db.marshal.BytesType
> }
> Column Family Name: HintsColumnFamily {
> Column Family Type: Super
> Column Sorted By: org.apache.cassandra.db.marshal.BytesType
> }
> Keyspace: ks22
> Replication Factor: 2
> Column Families:
> Column Family Name: cf22 {
> Column Family Type: Standard
> Column Sorted By: org.apache.cassandra.db.marshal.BytesType
> }
> Keyspace: ks33
> Replication Factor: 3
> Column Families:
> Column Family Name: cf33 {
> Column Family Type: Standard
> Column Sorted By: org.apache.cassandra.db.marshal.BytesType
> }
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.