You should not have to create Usergrid_Applications, Usergrid will do that
for you.

The root problem is probably that Usergrid cannot connect to your Cassandra
cluster.
Usually this is because of one or more of these things:

1) Usergrid cannot find its properties file, did you name it
usergrid-deplotment.properties and place it in tomcat's lib directory?

2) the Cassandra hosts are not specified correction in your usergrid
properties file. Check the deployment guide and make sure you are setting
these properties. The must all be set in your properties file:

usergrid.cluster_name=${USERGRID_CLUSTER_NAME}

cassandra.url=${CASSANDRA_HOSTS}
cassanrda.cluster=${CASSANDRA_CLUSTER_NAME}

elasticsearch.cluster_name=${ELASTICSEARCH_CLUSTER_NAME}
elasticsearch.hosts=${ELASTIC_SEARCH_HOSTS}

3) Some network configuration is preventing Usergrid from reaching Cassandra


The deployment guide is here (should work for 2.1 or master):
http://usergrid.apache.org/docs/installation/deployment-guide.html

Hope that helps...

Dave


On Mon, Feb 15, 2016 at 1:17 AM [email protected] <[email protected]>
wrote:

> Hi all,
>  i am trying to setup the usergrid, building from source. I am able to
> build the code successfully, however when i deploy and  start tomcat, it
> was throwing the error as Usergrid_Applications not found. so i created
> this keyspace, after that i am getting the following exceptions when i
> deploy and start the tomcat server. Kindly advise what may be the issue and
> fix for the same.
>
> I have been useing cassandra1.2.1.
> jdk 1.8
> mvn 2.x
> checked out the usergrid from github, looks like its the main branch.
>
>
> Thank you,
> Ranganath.S
>
> 24:52,062 ERROR ServiceManager:110 - ServiceManager init failure
> com.google.common.util.concurrent.UncheckedExecutionException:
> java.lang.RuntimeException: Unable to connect to cassandra to retrieve
> status
>     at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2203)
>     at com.google.common.cache.LocalCache.get(LocalCache.java:3937)
>     at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)
>     at
> com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)
>     at
> org.apache.usergrid.persistence.core.migration.data.MigrationInfoCacheImpl.getVersion(MigrationInfoCacheImpl.java:78)
>     at
> org.apache.usergrid.persistence.collection.serialization.impl.MvccEntitySerializationStrategyProxyImpl.getMigrationRelationShip(MvccEntitySerializationStrategyProxyImpl.java:180)
>     at
> org.apache.usergrid.persistence.collection.serialization.impl.MvccEntitySerializationStrategyProxyImpl.load(MvccEntitySerializationStrategyProxyImpl.java:89)
>     at
> org.apache.usergrid.persistence.collection.impl.EntityCollectionManagerImpl$1.call(EntityCollectionManagerImpl.java:252)
>     at
> org.apache.usergrid.persistence.collection.impl.EntityCollectionManagerImpl$1.call(EntityCollectionManagerImpl.java:246)
>     at rx.Observable$2.call(Observable.java:162)
>     at rx.Observable$2.call(Observable.java:154)
>     at rx.Observable$2.call(Observable.java:162)
>
>
>
> --
> I blog at http://ranganaths.wordpress.com
>

Reply via email to