简体   繁体   English

如何检查 Apache Ranger 的状态/健康状况?

[英]How to check status/health of Apache Ranger?

We recently deployed Apache Ranger version 2.0.0 on Kubernetes.我们最近在 Kubernetes 上部署了 Apache Ranger 2.0.0 版。 We wanted to configure Readiness and Liveness probes for Apache Ranger service which is running inside pods.我们想为在 pod 中运行的 Apache Ranger 服务配置就绪和活跃探测。

Is there any health endpoint for Apache Ranger which we can use?我们可以使用 Apache Ranger 的任何健康端点吗?

There is on api endpoint to check the service status as of now, however, you can use any api to check it is connecting, for example something lie below:-截至目前,api 端点上有用于检查服务状态,但是,您可以使用任何 api 来检查它是否正在连接,例如下面的内容:-

curl -s -o /dev/null -w "%{http_code}" -u admin:admin -H "Content-Type: application/json" -X GET http://`hostname -f`:6080/service/tags/tags

if above call returns following value means ranger is live and serving trafic如果上述调用返回以下值,则表示 Ranger 处于活动状态并为流量提供服务

200 200

if it returns following which means ranger is down如果它返回以下,则意味着游侠已关闭

000 000

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何检查 kubernetes 集群的健康状况 - How to check health of kubernetes cluster 不健康和降级的.NET健康检查状态之间有什么区别 - Whats the difference between Unhealthy vs Degraded .NET health check status 如何从外部对 elasticsearch 集群进行健康检查 - How to health check elasticsearch cluster from outside 如何检查运行 sidekiq 的 docker 镜像的健康状况 - How to check health of docker image running sidekiq 如何检查上次运行运行状况检查以及Pod的结果 - How to check the last time health check was run and the result for a Pod 如何在 kubernetes 中检查 liveness/redinessprobe 中的多个健康检查路径 - how to check multiple health check path in liveness/redinessprobe in kubernetes 如果健康检查不满足successThreshold和failureThreshold,pod的状态应该是什么,也不是 - What the status of pods should be if the health check doesn't meet successThreshold and failureThreshold, neither 使用GCP进行自定义健康检查 - Custom Health check with GCP 如何在没有 http 的情况下为 graphql api 编写健康检查 - How to write health check for graphql apis without http .NET Core Workerservice - 如何在没有 HTTP 的情况下提供健康检查端点? - .NET Core Workerservice - how to provide a health check endpoint without HTTP?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM