I can export the data in CSV format using the COPY command, however, when I try to import the data am see the following error :
COPY loggtest.testdclog from 'G:\logtest\diagnosticlog_table.csv' with header=true;
Bad Request: unable to coerce '2019-10-14 03:38:30AUS Eastern Daylight Time' to a formatted date (long)
Aborting import at record #0 (line 1). Previously-inserted values still present.
0 rows imported in 0.047 seconds.
Can you let me know if anything missing?
is there any other way to copy data from one Windows server to another Windows server
It is not very clear what version of Cassandra (C*) you're using nor what is the step that failed.
Could you provide the below?
Version of C*
Exact
COPYcommand and console outputAny other
system.logrelated info/error messagesOSS C* documentation on the cassandra.apache.org is here
more examples here has more examples on the usage.
There is also a free open-source tool that is called DataStax Bulk Loader (aka DSBulk) which can seamlessly perform load/unload/count operations. Check out the below references,
These multi-part DSBulk blog series should help you get going:
And you'll do it something like,