Code Monkey home page Code Monkey logo

cdm-java's People

Contributors

pmcfadin avatar rustyrazorblade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cdm-java's Issues

movielens fails to install

Using Apache Cassandra 2.1.16, movielens fails to install because of a date type used for the release_date and video_release_date columns of the movies table :

$ ./cdm install movielens
Starting CDM
Installing movielens
Checking for repo at /home/travis/.cdm/movielens
Cloning https://github.com/rustyrazorblade/movielens.git
Having repository: /home/travis/.cdm/movielens/.git
CDM is using dataset path: /home/travis/.cdm/movielens
Loading schema from /home/travis/.cdm/movielens/schema.cql
log4j:WARN No appenders could be found for logger (com.datastax.driver.core.SystemProperties).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Dropping keyspace
 CREATE KEYSPACE movielens WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}
Schema: /home/travis/.cdm/movielens/schema.cql
Letting schema settle...
CREATE TABLE movies (
    id uuid PRIMARY KEY,
    avg_rating float,
    genres set<text>,
    name text,
    release_date date,
    url text,
    video_release_date date
) WITH bloom_filter_fp_chance = 0.01
    AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
    AND comment = ''
    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'
Exception in thread "main" com.datastax.driver.core.exceptions.SyntaxError: Invalid (reserved) user type name date
	at com.datastax.driver.core.exceptions.SyntaxError.copy(SyntaxError.java:58)
	at com.datastax.driver.core.exceptions.SyntaxError.copy(SyntaxError.java:24)
	at com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:37)
	at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:245)
	at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:64)
	at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:39)
	at com.datastax.cdm.CassandraDatasetManager.install(CassandraDatasetManager.java:277)
	at com.datastax.cdm.CassandraDatasetManager.main(CassandraDatasetManager.java:108)

cdm update

code is there to fetch dataset list, need to support it via the cdm update command

respect version

cdm.yaml includes a version, when installing to a cluster that needs to be respected

cdm new command

should take a single argument and create a directory, empty schema.cql, data directory, config file

cdm list

currently cdm prints out the list of all the datasets on every execution, should only do it on cdm list command

windows support

currently we have a build that generates a linux binary via some funky business catting shell + jar. it would be nice if we could do something similar for windows

Authentication with cdm?

Are there any authentication options for cdm?

I've tried putting user details in /home/user/.cassandra/cqlshrc

But cdm doesn't seem to honour this.

Cheers,

Rhys

dump command

cdm needs a nice wrapper to dump the schema and data directory, based on the cdm.yaml.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.