cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Moses (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-9611) wikipedia demo behaves different depending on how the demos .sh's are called
Date Wed, 17 Jun 2015 16:25:01 GMT
Jon Moses created CASSANDRA-9611:
------------------------------------

             Summary: wikipedia demo behaves different depending on how the demos .sh's are
called
                 Key: CASSANDRA-9611
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9611
             Project: Cassandra
          Issue Type: Bug
            Reporter: Jon Moses
            Priority: Trivial


If you run the "1-add-schema.sh" script from a directory other that the wikipedia demo directory,
it will "succeed" but be unable to find the create_table.cql file.  Subsequently, setting
the solr options will create the table, but with COMPACT STORAGE, rather than via cql.

Outside dir:

{noformat}
$ ./wikipedia/1-add-schema.sh
Creating Cassandra table...
./wikipedia/1-add-schema.sh: line 15: create_table.cql: No such file or directory
Posting solrconfig.xml to http://ip-172-31-22-166.ec2.internal:8983/solr/resource/wiki.solr/solrconfig.xml...
SUCCESS
Posted solrconfig.xml to http://ip-172-31-22-166.ec2.internal:8983/solr/resource/wiki.solr/solrconfig.xml
Posting schema.xml to http://ip-172-31-22-166.ec2.internal:8983/solr/resource/wiki.solr/schema.xml...
SUCCESS
Posted schema.xml to http://ip-172-31-22-166.ec2.internal:8983/solr/resource/wiki.solr/schema.xml
Creating index...
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">5620</int></lst>
</response>
Created index.
{noformat}

{noformat}
$ cqlsh -e "desc table wiki.solr"

/*
Warning: Table wiki.solr omitted because it has constructs not compatible with CQL (was created
via legacy API).

Approximate structure, for reference:
(this should not be used to reproduce this schema)

CREATE TABLE wiki.solr (
    key text PRIMARY KEY,
    "_docBoost" text,
    body text,
    date text,
    name text,
    solr_query text,
    title text
) WITH COMPACT STORAGE
    AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
    AND comment = ''
    AND compaction = {'min_threshold': '4', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy',
'max_threshold': '32'}
    AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
    AND dclocal_read_repair_chance = 0.1
    AND default_time_to_live = 0
    AND gc_grace_seconds = 864000
    AND max_index_interval = 2048
    AND memtable_flush_period_in_ms = 0
    AND min_index_interval = 128
    AND read_repair_chance = 0.0
    AND speculative_retry = 'NONE';
CREATE CUSTOM INDEX wiki_solr__docBoost_index ON wiki.solr ("_docBoost") USING 'com.datastax.bdp.search.solr.ThriftSolrSecondaryIndex';
CREATE CUSTOM INDEX wiki_solr_body_index ON wiki.solr (body) USING 'com.datastax.bdp.search.solr.ThriftSolrSecondaryIndex';
CREATE CUSTOM INDEX wiki_solr_date_index ON wiki.solr (date) USING 'com.datastax.bdp.search.solr.ThriftSolrSecondaryIndex';
CREATE CUSTOM INDEX wiki_solr_name_index ON wiki.solr (name) USING 'com.datastax.bdp.search.solr.ThriftSolrSecondaryIndex';
CREATE CUSTOM INDEX wiki_solr_solr_query_index ON wiki.solr (solr_query) USING 'com.datastax.bdp.search.solr.ThriftSolrSecondaryIndex';
CREATE CUSTOM INDEX wiki_solr_title_index ON wiki.solr (title) USING 'com.datastax.bdp.search.solr.ThriftSolrSecondaryIndex';
CREATE TRIGGER dse_augmentation ON wiki.solr USING 'com.datastax.bdp.search.solr.triggers.SolrAugmentationTrigger';
*/
{noformat}


Inside dir:

{noformat}
$ ./1-add-schema.sh
Creating Cassandra table...
Posting solrconfig.xml to http://ip-172-31-22-166.ec2.internal:8983/solr/resource/wiki.solr/solrconfig.xml...
SUCCESS
Posted solrconfig.xml to http://ip-172-31-22-166.ec2.internal:8983/solr/resource/wiki.solr/solrconfig.xml
Posting schema.xml to http://ip-172-31-22-166.ec2.internal:8983/solr/resource/wiki.solr/schema.xml...
SUCCESS
Posted schema.xml to http://ip-172-31-22-166.ec2.internal:8983/solr/resource/wiki.solr/schema.xml
Creating index...
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">1272</int></lst>
</response>
Created index.
{noformat}

{noformat}
$ cqlsh -e "desc table wiki.solr"

CREATE TABLE wiki.solr (
    id text PRIMARY KEY,
    body text,
    date text,
    name text,
    solr_query text,
    title text
) WITH bloom_filter_fp_chance = 0.01
    AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
    AND comment = ''
    AND compaction = {'min_threshold': '4', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy',
'max_threshold': '32'}
    AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
    AND dclocal_read_repair_chance = 0.1
    AND default_time_to_live = 0
    AND gc_grace_seconds = 864000
    AND max_index_interval = 2048
    AND memtable_flush_period_in_ms = 0
    AND min_index_interval = 128
    AND read_repair_chance = 0.0
    AND speculative_retry = '99.0PERCENTILE';
CREATE CUSTOM INDEX wiki_solr_body_index ON wiki.solr (body) USING 'com.datastax.bdp.search.solr.Cql3SolrSecondaryIndex';
CREATE CUSTOM INDEX wiki_solr_date_index ON wiki.solr (date) USING 'com.datastax.bdp.search.solr.Cql3SolrSecondaryIndex';
CREATE CUSTOM INDEX wiki_solr_name_index ON wiki.solr (name) USING 'com.datastax.bdp.search.solr.Cql3SolrSecondaryIndex';
CREATE CUSTOM INDEX wiki_solr_solr_query_index ON wiki.solr (solr_query) USING 'com.datastax.bdp.search.solr.Cql3SolrSecondaryIndex';
CREATE CUSTOM INDEX wiki_solr_title_index ON wiki.solr (title) USING 'com.datastax.bdp.search.solr.Cql3SolrSecondaryIndex';
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message