2

I am trying to insert a data from an xml file into Cassandra database directly. It has 1089090 records on it.

I tried to read it pragmatically using java and got this exception after about 77000 records.

java.sql.SqlNontrasientConnectionException: org.apache.thrift.transport.TTTransportException

Hasif Subair
  • 436
  • 2
  • 13
  • 29

1 Answers1

2

I think your connection is got broken after processing some data. I faced such issue once & solved that by using connection pooling. Can you tell me how you are getting the connection in your java code ?

RCS
  • 1,370
  • 11
  • 27