Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cassandra_06 - could not prepare record id due to: com.datastax.driver.core.exceptions.codecnotfoundexception: codec not found for requested operation: [int <-> java.lang.string]

I'm using default Cassandra available in Streamsets. Im trying to insert records from csv into Cassandra which has a date field.

The value for this Cassandra date field from CSV is 201812061035234, which I'm converting to a long and then to String of following format: yyyy-MM-dd'T'HH:mm:ss.SSS Z and Im getting below error:

CASSANDRA_06 - Could not prepare record id'/STBL/AX2012/EMFP/Latest/PART_SHORT_EMFP_201812061035234.csv::1544076300000::0::3396' due to: com.datastax.driver.core.exceptions.CodecNotFoundException: Codec not found for requested operation: [int <-> java.lang.String]

Thanks in Advance

cassandra_06 - could not prepare record id due to: com.datastax.driver.core.exceptions.codecnotfoundexception: codec not found for requested operation: [int <-> java.lang.string]

I'm using default Cassandra available in Streamsets. Im trying to insert records from csv into Cassandra which has a date field.

The value for this Cassandra date field from CSV is 201812061035234, which I'm converting to a long and then to String of following format: yyyy-MM-dd'T'HH:mm:ss.SSS Z and Im getting below error:

CASSANDRA_06 - Could not prepare record id'/STBL/AX2012/EMFP/Latest/PART_SHORT_EMFP_201812061035234.csv::1544076300000::0::3396' id'/*/_201812061035234.csv::1544076300000::0::3396' due to: com.datastax.driver.core.exceptions.CodecNotFoundException: Codec not found for requested operation: [int <-> java.lang.String]

Thanks in Advance