首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用k8ssandra部署Cassandra

无法使用k8ssandra部署Cassandra
EN

Stack Overflow用户
提问于 2022-04-20 11:22:04
回答 1查看 449关注 0票数 3

我使用下面的图表将Cassandra集群部署到我的gke集群中。https://github.com/k8ssandra/k8ssandra/tree/main/charts/k8ssandra

但是,状态集停留在状态1/2 ( cassandra容器状态总是不健康的)

这是我的values.yaml

代码语言:javascript
复制
cassandra:
  auth:
    superuser: 
      secret: cassandra-admin-secret
  clusterName: cassandra-cluster
  version: "4.0.0"
  cassandraLibDirVolume:
    storageClass: standard
    size: 5Gi
  allowMultipleNodesPerWorker: true
  resources:
    requests:
      cpu: 500m
      memory: 2Gi
    limits:
      cpu: 500m
      memory: 2Gi
  datacenters:
  - name: dc1
    size: 1
    racks:
    - name: default 

stargate:
  enabled: true
  replicas: 1
  heapMB: 256
  cpuReqMillicores: 200
  cpuLimMillicores: 500

kube-prometheus-stack:
  enabled: False
代码语言:javascript
复制
NAME                                                READY   STATUS     RESTARTS   AGE
cassandra-cluster-dc1-default-sts-0          1/2     Running    0          77m

然后我描述了这个吊舱

代码语言:javascript
复制
Events:
  Type     Reason     Age                    From     Message
  ----     ------     ----                   ----     -------
  Warning  Unhealthy  2m11s (x478 over 81m)  kubelet  Readiness probe failed: HTTP probe failed with statuscode: 500

最后,我打印cassandra容器的日志。

代码语言:javascript
复制
INFO  [nioEventLoopGroup-2-2] 2022-04-20 11:09:35,711 Cli.java:617 - address=/10.12.11.58:51000 url=/api/v0/metadata/endpoints status=500 Internal Server Error
INFO  [nioEventLoopGroup-3-14] 2022-04-20 11:09:37,718 UnixSocketCQLAccess.java:88 - Cannot create Driver CQLSession as the driver socket has not been created. This should resolve once Cassandra has started and created the socket at /tmp/cassandra.sock
INFO  [nioEventLoopGroup-2-1] 2022-04-20 11:09:37,720 Cli.java:617 - address=/10.12.11.58:51132 url=/api/v0/metadata/endpoints status=500 Internal Server Error
INFO  [nioEventLoopGroup-3-15] 2022-04-20 11:09:37,750 UnixSocketCQLAccess.java:88 - Cannot create Driver CQLSession as the driver socket has not been created. This should resolve once Cassandra has started and created the socket at /tmp/cassandra.sock
INFO  [nioEventLoopGroup-2-2] 2022-04-20 11:09:37,750 Cli.java:617 - address=/10.12.11.1:48478 url=/api/v0/probes/readiness status=500 Internal Server Error
INFO  [nioEventLoopGroup-3-16] 2022-04-20 11:09:39,741 UnixSocketCQLAccess.java:88 - Cannot create Driver CQLSession as the driver socket has not been created. This should resolve once Cassandra has started and created the socket at /tmp/cassandra.sock

server-system-logger的日志

代码语言:javascript
复制
tail: cannot open '/var/log/cassandra/system.log' for reading: No such file or directory

我该如何解决这个问题?谢谢。

EN

回答 1

Stack Overflow用户

发布于 2022-05-11 00:19:07

cassandra容器中的消息说,一旦Cassandra启动并运行,它应该自行解决,这是正确的。

类似地,在Cassandra启动之前,以及更准确地说,直到日志框架初始化之后,server-system-logger容器才可用日志。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71938749

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档