1

这是我在右上角显示的错误的图像。

单击此处也可以查看错误图像

我一步一步地遵循了这里的文档https://usergrid.readthedocs.org/en/two-dot-o-instructions/deploy-local.html 。

Cassandra nodetool 状态为 Up 和 Normal。

我在 tomcat/lib 目录中添加了usergrid-deployment.propertiesusergrid-custom.properties 。

我通过运行以下命令完成了数据库设置:/system/database/setup

这是输出:

{“动作”:“cassandra 设置”,“状态”:“ok”,“时间戳”:1455528923575,“持续时间”:0 }

我也完成了超级用户设置:/system/superuser/setup

这是输出:

{“动作”:“超级用户设置”,“状态”:“确定”,“时间戳”:1455528985483,“持续时间”:1}

但是当我运行 /localhost:8080/status/ 时,我得到以下输出:

    {
      "timestamp" : 1455529162925,
      "duration" : 25,
      "status" : {
      "started" : 1455525966458,
      "uptime" : 3196467,
      "version" : "0.0.29-SNAPSHOT",
      "cassandraAvailable" : false,
      "org.apache.usergrid.count.AbstractBatcher" : {
      "add_invocation" : {
           "type" : "timer",
           "unit" : "microseconds",
           "duration" : {
           "min" : 0.0,
           "max" : 0.0,
           "mean" : 0.0,
           "std_dev" : 0.0,
           "median" : 0.0,
           "p75" : 0.0,
           "p95" : 0.0,
           "p98" : 0.0,
           "p99" : 0.0,
           "p999" : 0.0
           },
    "rate" : {
      "unit" : "seconds",
      "count" : 0,
      "mean" : 0.0,
      "m1" : 0.0,
      "m5" : 0.0,
      "m15" : 0.0
    }
  },
  "batch_add_invocations" : {
    "type" : "counter",
    "count" : 0
  },
  "counter_existed" : {
    "type" : "counter",
    "count" : 0
  }
},
"org.apache.usergrid.count.CassandraSubmitter" : {
  "submit_invocation" : {
    "type" : "timer",
    "unit" : "microseconds",
    "duration" : {
      "min" : 0.0,
      "max" : 0.0,
      "mean" : 0.0,
      "std_dev" : 0.0,
      "median" : 0.0,
      "p75" : 0.0,
      "p95" : 0.0,
      "p98" : 0.0,
      "p99" : 0.0,
      "p999" : 0.0
    },
    "rate" : {
      "unit" : "seconds",
      "count" : 0,
      "mean" : 0.0,
      "m1" : 0.0,
      "m5" : 0.0,
      "m15" : 0.0
    }
  }
},
"org.apache.usergrid.rest.filters.MeteringFilter" : {
  "activeRequests" : {
    "type" : "counter",
    "count" : 1
  },
  "requests" : {
    "type" : "timer",
    "unit" : "milliseconds",
    "duration" : {
      "min" : 1.808735,
      "max" : 1259.105594,
      "mean" : 251.21387366666664,
      "std_dev" : 431.53739723624284,
      "median" : 7.695549,
      "p75" : 486.10919975,
      "p95" : 1259.105594,
      "p98" : 1259.105594,
      "p99" : 1259.105594,
      "p999" : 1259.105594
    },
    "rate" : {
      "unit" : "seconds",
      "count" : 12,
      "mean" : 0.003754176303820466,
      "m1" : 0.001183680264329619,
      "m5" : 0.00355060808920887,
      "m15" : 0.0033384011532465838
    }
  }
}
    }
    }

在这里我可以清楚地看到 “cassandraAvailable”:false

我正在使用:Tomcat 8 Cassandra 3.3 Elastic Search 1.7.2 Java 8 Ubuntu 14.04

请帮我。我已经尝试了好几天了。我也经历了其他问题,但似乎没有一个对我有帮助。

4

1 回答 1

0

您正在使用过时的文档和旧的/不受支持的 Usergrid 版本。

官方的 Usergrid 文档在这里:

http://usergrid.apache.org/docs/

部署指南在这里:

http://usergrid.apache.org/docs/installation/deployment-guide.html

最好的 Usergrid 版本是 Usergrid 2.1,它将在几天内发布。您现在可以获得 Usergrid 2.1 候选版本,请阅读此电子邮件:

https://mail-archives.apache.org/mod_mbox/usergrid-dev/201602.mbox/%3cCAF1aazA8zJ9=pU5crZnn1bEtb7aHLKF5L_Bq5fy7FM3u_k70CA@mail.gmail.com%3e

于 2016-02-15T13:15:57.210 回答