无法启动Apache Usergrid

时间:2015-11-29 09:30:53

标签: usergrid

我在本地Windows机器上设置了Apache Usergrid,但在启动时tomcat在日志中显示错误。因此,我们也无法访问usergrid应用程序。以下是参考的错误日志。谢谢!

connectionpool.impl.Slf4jConnectionPoolMonitorImpl.incOperationFailure(31)<RingDescribeAutoDiscovery>- BadRequestException: [host=127.0.0.1(127.0.0.1):9160, latency=2(2), attempts=1]InvalidRequestException(why:Keyspace 'Usergrid_Applications' does not exist)

2015-11-29 12:45:04 ERROR cassandra.io.AbstractSearch.getQueueBounds(272)<JobSchedulerService RUNNING>- Error getting oldest queue message ID
me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:Keyspace 'Usergrid_Applications' does not exist)
    at me.prettyprint.cassandra.connection.client.HThriftClient.getCassandra(HThriftClient.java:112)
    at me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:251)
    at me.prettyprint.cassandra.service.KeyspaceServiceImpl.operateWithFailover(KeyspaceServiceImpl.java:132)
    at me.prettyprint.cassandra.service.KeyspaceServiceImpl.getSlice(KeyspaceServiceImpl.java:290)
    at me.prettyprint.cassandra.service.VirtualKeyspaceServiceImpl.getSlice(VirtualKeyspaceServiceImpl.java:133)
    at me.prettyprint.cassandra.model.thrift.ThriftSliceQuery$1.doInKeyspace(ThriftSliceQuery.java:53)
    at me.prettyprint.cassandra.model.thrift.ThriftSliceQuery$1.doInKeyspace(ThriftSliceQuery.java:49)
    at me.prettyprint.cassandra.model.KeyspaceOperationCallback.doInKeyspaceAndMeasure(KeyspaceOperationCallback.java:20)
    at me.prettyprint.cassandra.model.ExecutingVirtualKeyspace.doExecute(ExecutingVirtualKeyspace.java:53)
    at me.prettyprint.cassandra.model.thrift.ThriftSliceQuery.execute(ThriftSliceQuery.java:48)
    at org.apache.usergrid.mq.cassandra.io.AbstractSearch.getQueueBounds(AbstractSearch.java:263)
    at org.apache.usergrid.mq.cassandra.io.ConsumerTransaction.getResults(ConsumerTransaction.java:213)
    at org.apache.usergrid.mq.cassandra.QueueManagerImpl.getFromQueue(QueueManagerImpl.java:412)
    at org.apache.usergrid.batch.service.SchedulerServiceImpl.getJobs(SchedulerServiceImpl.java:168)
    at org.apache.usergrid.batch.service.JobSchedulerService.runOneIteration(JobSchedulerService.java:118)
    at com.google.common.util.concurrent.AbstractScheduledService$1$1.run(AbstractScheduledService.java:174)
    at com.google.common.util.concurrent.Callables$3.run(Callables.java:95)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: InvalidRequestException(why:Keyspace 'Usergrid_Applications' does not exist)
    at org.apache.cassandra.thrift.Cassandra$set_keyspace_result.read(Cassandra.java:5540)
    at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
    at org.apache.cassandra.thrift.Cassandra$Client.recv_set_keyspace(Cassandra.java:540)
    at org.apache.cassandra.thrift.Cassandra$Client.set_keyspace(Cassandra.java:527)
    at me.prettyprint.cassandra.connection.client.HThriftClient.getCassandra(HThriftClient.java:110)
    ... 23 more

2 个答案:

答案 0 :(得分:1)

看起来你没有使用Usergrid数据库&amp;超级用户设置,如Deploying to Tomcat步骤中所述。

您可以使用http://dbeaver.jkiss.org访问C *,看看在执行这些步骤时,Usergrid是否能够成功设置键空间。

答案 1 :(得分:0)

经过长时间的努力解决这个问题后,我意识到在我的情况下,弹性搜索1.7.6以及2.x在 / etc / default / elasticsearch 中没有额外配置时无法启动。 只需在文件中添加此行 START_DAEMON = true ,然后重新启动elasticsearch就可以在Ubuntu 16.04上为我工作。

现在可以成功连接到设置用户网格。到处寻找答案,但到目前为止找不到任何参考。因此想发布。 我正在使用的堆栈是  1. apache-usergrid-2.1.0  2. cassandra 3.7  3. tomcat8  4. elasticsearch 2.4.4

由于这个问题,我几乎放弃了使用usergrid。