Can't connect to cassandra - NoHostAvailableException

后端 未结 5 1021
时光取名叫无心
时光取名叫无心 2020-12-01 20:48

I know there are several threads about the NoHostAvailableException but they simply don\'t provide a solution to my problem.

I can\'t connect to Cassand

5条回答
  •  再見小時候
    2020-12-01 21:26

    Accessing Cassandra using java driver very much depends on the driver version and the dependencies of the driver. The final thing that worked for me was to take the lib(jars) that are bundled on the server download. In my case it was windows. But I am sure the linux tar balls also will have the driver and the dependencies in them. take the jars shipped in the server download and use them in your java client's classpath instead of downloading the drivers separately from the internet

提交回复
热议问题