riptano / cdm-java Goto Github PK
View Code? Open in Web Editor NEWJava version of CDM
License: Other
Java version of CDM
License: Other
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)
code is there to fetch dataset list, need to support it via the cdm update
command
cdm list
Long imports look like the program just hangs
placeholder for an awesome thing
cdm.yaml includes a version, when installing to a cluster that needs to be respected
api is here: https://developer.github.com/v3/repos/releases/
Useful looking utility: https://github.com/aktau/github-release
Once the 1.0 is out, people should be able to install cdm via brew & apt
I should be able to get only a schema.
user should be able to download a single file and execute it. no building, no dependencies, no nonsense.
I think this is what's needed https://maven.apache.org/plugins/maven-shade-plugin/examples/executable-jar.html
removes all cache
should take a single argument and create a directory, empty schema.cql, data directory, config file
I almost have this done in my branch just need to patch up a couple things
ex: --rf 3
currently cdm prints out the list of all the datasets on every execution, should only do it on cdm list
command
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
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
Writing tombstones now for missing values. Stop doing that.
cdm should be available as a docker image
cdm needs a nice wrapper to dump the schema and data directory, based on the cdm.yaml.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.