Coder Social home page Coder Social logo

Comments (10)

brianmhess avatar brianmhess commented on September 2, 2024

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.

WisDro avatar WisDro commented on September 2, 2024

do u have an Idee hwo to chmod 777 unter Windows ?

from cassandra-loader.

brianmhess avatar brianmhess commented on September 2, 2024

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.

brianmhess avatar brianmhess commented on September 2, 2024

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.

WisDro avatar WisDro commented on September 2, 2024

ok thank u, i will try it :)

from cassandra-loader.

WisDro avatar WisDro commented on September 2, 2024

unbenannt1

do u mean so ?

or can u see where i'm doing wrong ?

from cassandra-loader.

brianmhess avatar brianmhess commented on September 2, 2024

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.

WisDro avatar WisDro commented on September 2, 2024

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.

WisDro avatar WisDro commented on September 2, 2024

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.

brianmhess avatar brianmhess commented on September 2, 2024

Yep. Read about the -dateFormat option here: https://github.com/brianmhess/cassandra-loader

from cassandra-loader.

Related Issues (20)

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.