We are trying to configure Apache Usergrid 2.1 with the following configuration:
- CentOS 7
- Cassandra 1.2.19
- Oracle Java 1.8.0_91
- Tomcat 8.0.33
- ElasticSearch 2.3.2
Tomcat, Cassandra and ElasticSearch work fine, there are no errors in the logs. However, when we deploy the usergrid stack (ROOT.war), we get the following error in catalina.out and nothing works.
WARN Slf4jConnectionPoolMonitorImpl:31 - BadRequestException: [host=localhost(127.0.0.1):9160, latency=3(3), attempts=1]InvalidRequestException(why:Keyspace 'Usergrid_Applications' does not exist)
ERROR ServiceManager:110 - This should never happen
org.apache.usergrid.persistence.collection.exception.CollectionRuntimeException: An error occurred connecting to cassandra
This log is recorded almost every 5 seconds.
Since the application is not running, the proposed database setup URLs also do not work.
Btw, we follow this document: https://usergrid.apache.org/docs/installation/deployment-guide.html
We also tried to generate "Usergrid_Applications user keys" manually, but that didn't work either.
How can we make it work?