brianmhess / cassandra-loader

Delimited file loader for Cassandra
Apache License 2.0
197 stars 93 forks source link

NullPointerException trying to load json array #107

Open seanfisher1111 opened 4 years ago

seanfisher1111 commented 4 years ago

I have not been able to get a json array file to load successfully. I keep getting null pointer errors. Capture

My environment:

The data file is a UTF-8 encoded text file. I have tried it with both .json and .txt file extensions in case that mattered.

The contents are formatted as I would expect they should be. [{"iID":1,"myfield":"row1value1"},{"iID":2,"myfield":"row2value1"}]

Here is the command I am using: java -jar cassandra-loader -f c:\mytesttable.json -host localhost -port 32768 -format jsonarray -keyspace test -table mytable -user username -pw password

Here is the test table schema: create table test.mytable ( iID int, myfield text,

PRIMARY KEY (iID, myfield) ) WITH CLUSTERING ORDER BY (myfield ASC);

mytesttable.txt