0

I am inserting data in cassandra from a csv file using java driver.But after some inserts it throws NoHostAvailableException:java 65 :All host(s) tried for query failed (no host was tried). I am having cassandra on client machine (singlenode).Cassandra services are still running on client machine. Thanks in advance.I am a newbie.

2 Answers2

0

Here's some best practices for bulk ingestions using the java driver:

http://lostechies.com/ryansvihla/2014/08/28/cassandra-batch-loading-without-the-batch-keyword/

phact
  • 7,305
  • 23
  • 27
0

I got this problem solved by using executeasync method present in the java driver.

Russia Must Remove Putin
  • 374,368
  • 89
  • 403
  • 331