Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CQLTypeParser::IncompleteTypeError #7

Open
vroyer opened this issue Jan 25, 2017 · 6 comments
Open

CQLTypeParser::IncompleteTypeError #7

vroyer opened this issue Jan 25, 2017 · 6 comments

Comments

@vroyer
Copy link

vroyer commented Jan 25, 2017

When using the logstash-output-cassandra plugin with elassandra 2.4.2-5 (https://github.com/strapdata/elassandra) , i get the following error when the keyspace kibana defines the following User Defined Type.

Pipeline aborted due to error {:exception=>"Cassandra::Cluster::Schema::CQLTypeParser::IncompleteTypeError"
Host 127.0.0.1 closed connection (Cassandra::Errors::IOError: unable to lookup type "\"visualization_kibanaSavedObjectMeta\"") {:level=>:debug, :file=>"cassandra/cluster/connector.rb", :line=>"341", :method=>"disconnected"}

Kibana keyspace is not really uses by logstash but automatically discovered by the cassandra driver. This probably a cassandra driver issue. Elassandra 2.4.2-5 rely on Cassandra 3.0.10.

CREATE TYPE kibana."visualization_kibanaSavedObjectMeta" (
    "searchSourceJSON" frozen<list<text>>
);

CREATE TABLE kibana.visualization (
    "_id" text PRIMARY KEY,
    description list<text>,
    "kibanaSavedObjectMeta" list<frozen<"visualization_kibanaSavedObjectMeta">>,
    "savedSearchId" list<text>,
    title list<text>,
    "uiStateJSON" list<text>,
    version list<int>,
    "visState" list<text>
) WITH bloom_filter_fp_chance = 0.01
    AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
    AND comment = 'Auto-created by Elassandra'
    AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
    AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
    AND crc_check_chance = 1.0
    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 = '99PERCENTILE';
@valentin-fischer
Copy link

valentin-fischer commented Jan 27, 2017

Interesting project that elassandra thing....

Regarding the actual issue, what LS version are you using ?
In my case using cassandra => 2.2.4 with LS => 2.4.1-1

@vroyer
Copy link
Author

vroyer commented Jan 27, 2017 via email

@valentin-fischer
Copy link

Did you try also => https://github.com/PerimeterX/logstash-output-cassandra ?

@vroyer
Copy link
Author

vroyer commented Jan 27, 2017 via email

@vroyer
Copy link
Author

vroyer commented Feb 7, 2017

This is a cassandra ruby driver issue, see https://datastax-oss.atlassian.net/browse/RUBY-291
It would require an upgrade to the fixed driver version when available.

@vroyer
Copy link
Author

vroyer commented Feb 15, 2017

The ruby cassandra driver version 3.1.1 is now fixed (see https://datastax-oss.atlassian.net/browse/RUBY-291 ) and this will solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants