I'm using Cassandra with Kundera that is installed on UBUNTU environment and I'm getting this Error: com.datastax.driver.core.exceptions.NoHostAvailableException:
I'm using the DSClient Protocol (com.impetus.kundera.client.cassandra.dsdriver.DSClientFactory) and also port 9042. What's interenting is when I test it Local (on my widons environment) it works, but trying to access Linux, (where cassandra is installed) it does't works.
Do you know something about it?
persistence.xml
file:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="default-cassandra-kundera-persistence-unit"
transaction-type="RESOURCE_LOCAL">
<class>com.blablabla.model</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
</persistence-unit>
</persistence>
I'm setting the configurations manually, like this:
public static final String PROPERTY_KUNDERA_CLIENT = "kundera.client.lookup.class";
public static final String CASSANDRA_DATASTAX_CLIENT = "com.impetus.kundera.client.cassandra.dsdriver.DSClientFactory";
persistenceUnitProperties.put(PROPERTY_KUNDERA_CLIENT, CASSANDRA_DATASTAX_CLIENT );