json - json2sstable cassandra gives error like "Upgrade to 1.2.5 first, and run upgradesstables" -


.

itemprop = "text">

I want to insert the json2sstable option to insert JSON data into the cassandra sstable

My sstable is: < / P>

  cid | Key | Ts 101 | Ramu | 686   

I want to put another line through json.

The json file is: [["key", "raju"], ["[" "cid", "102"], [" Ts "," 687 "]]}]

I am running as follows:

  D: \ cassandra \ bin & gt; Json2sstable k demodb -c data_points   

I am getting this error ..

  java.lang.UnsupportedOperationException: SSTable data_points -a-1- Data. Db is too oldto open 1.2.5 First upgrade, and run upgradesstables on org.apache.cassandra.io.sstable.Descriptor.fromFilename (Descriptor.java:235) org.apache.cassandra.io.sstable.Descriptor.fromFilename (Descriptor.java: 204) on org.apache.cassandra.io.sstable.SstableWriter. & Lt; Init & gt; (Org.apache.cassandra.tools.SstableImport.importUnsorted (SSTableWriter.java:60) at sstableImport.java354) org.apache. Cassandra.tools.SstableImport.importJson (SSTableImport.java:335) org.apache.cassandra.tools.SstableImport.main (SSTableImport.java Lesson59) Error: SSTable data_points-A-1- Data.db is also old to open is . Upgrade to 1.2.5 first, and upgrade upgrade run "****   

What can I do? Please give me a suggestion. Thanks in advance ... < / Div>

It looks like the file name of the problem that you gave your sstable. Your SSTF indicates 'e' in the filename That is investigating the case which is very old ("e" from the release of the 0.7 release of the cassandra) and is rejecting. You have to look at that version in your data directory, which is your second if you are 2.0.0, it will be 'J'; 2.0.1-2.0.5 will be 'jb'. / P>

You should also be aware that json2sstable is mostly used for debugging and testing. If you are loading a bulk then you may want to consider other (more tested) options such as sstableloader .

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -