Comments (10)
If you just want to load data and do not want to modify the source code, then you can just download the file you did (https://github.com/brianmhess/cassandra-loader/releases/download/v0.0.27/cassandra-loader), chmod 777 that cassandra-loader
file, and then just run it:
./cassandra-loader -host 127.0.0.1 -f test.csv -schema "myks.mytbl(pkey,x)"
If you want to modify the source, then clone this repository, make changes (if necessary) and use gradle loader
to build. The executable (cassandra-loader
) will be in the build/
subdirectory.
from cassandra-loader.
do u have an Idee hwo to chmod 777 unter Windows ?
from cassandra-loader.
Ah - if you are running on Windows, then I do not believe you can just execute cassandra-loader
. Instead, you would run it with java -jar cassandra-loader <arguments>
from the directory that the cassandra-loader
file is in.
from cassandra-loader.
Are you running this command from Windows or Linux?
In either case, the java -jar cassandra-loader <arguments>
approach will work. You do not run it via cqlsh. It is a stand-alone executable.
from cassandra-loader.
ok thank u, i will try it :)
from cassandra-loader.
do u mean so ?
or can u see where i'm doing wrong ?
from cassandra-loader.
I think that you want:
java -jar cassandra-loader -host 127.0.0.1 -f M3000DB_L.csv -schema "test_m3000.ac_asd(acs_alarmid,acs_type,acs_State,acs_alarmtag,acs_dcs,acs_alarmtext,acs_flag,acs_staterg,acs_timestamp_Local)"
from cassandra-loader.
do u knwo how to solve this Problem ? "Unparseable date : "2017-05-31 14:54:40.530" , there is an Option withe dateFormat, but would that work for me, and how schould i write the Format for my dateFormat ?
from cassandra-loader.
i did it so: -dateformat " yyyy-mm-dd hh:mm:ss" , but so i lose the part of miliseconds, can i avoide that ?
from cassandra-loader.
Yep. Read about the -dateFormat
option here: https://github.com/brianmhess/cassandra-loader
from cassandra-loader.
Related Issues (20)
- Project Status? HOT 1
- Add an option to set time formatting
- Map and Set Unload
- NullPointerException trying to load json array
- Not able to start this utility on windows machine
- Empty BLOB columns
- cassandra-loader not recognising column correctly and failed to load data
- cassandra-unloader options
- Timestamp nanosecond support HOT 1
- com.datastax.driver.core.exceptions.AuthenticationException HOT 3
- ExecutionException java.lang.NullPointerException HOT 2
- Exit status of loader on error is 0
- Loader should fail quickly on error
- Unloader hanging indefinitely due to a worker thread exception
- java.lang.StringIndexOutOfBoundsException: String index out of range: -2 When I run: ./cassandra-unloader -f stdout -host xx.xxx.xx.xxx -port 9042 -user admin -pw xxxxxx -schema "keyspace.table" HOT 2
- addContactPoint vs addContactPoints
- I can't change the maximum amount of columns per csv file
- Allow for unescaped non-ascii characters (preferably utf8 encoded)
- Missing data when loading on Cassandra
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cassandra-loader.