本文介绍了Ambari - 堆栈中不支持或无效的服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用和添加服务。当我发出curl命令,而不是被添加,我得到这个错误:

I am trying to install a custom service using these instructions and these commands to add the service. When I issue the curl command, instead of getting added, I get this error:

HTTP/1.1 400 Bad Request
Set-Cookie: AMBARISESSIONID=ID;Path=/
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 139
Server: Jetty(7.6.7.v20120910)

{
"status" : 400,
"message" : "Unsupported or invalid service in stack, clusterName=MahiMahi, serviceName=TESTSRV, stackInfo=HDP-2.1"
}

这里?我的群集安装完美,我可以看到仪表板和指标和东西。只是似乎不能添加自定义服务。请帮助。谢谢!

What is going on here? My cluster is installed perfectly and I can see the dashboard and metrics and stuff. Just can’t seem to add a custom service. Please help out. Thanks!

推荐答案

我想出了什么问题。当使用Ambari 1.6.1时,它会自动下载并使用HDP 2.1。链接中的文件夹结构说: cd /var/lib/ambari-server/resources/stacks/HDP/2.0.6/services 。我把它改为: cd /var/lib/ambari-server/resources/stacks/HDP/2.1/services 。问题解决了。如此愚蠢。很简单。这么多的挫折。这种无望的文档。

I figured out what was wrong. When using Ambari 1.6.1, it automatically downloads and uses HDP 2.1. The folder structure in the link says: cd /var/lib/ambari-server/resources/stacks/HDP/2.0.6/services. I changed it to: cd /var/lib/ambari-server/resources/stacks/HDP/2.1/services. Problem solved. So stupid. So simple. So much frustration. Such hopeless documentation.

这篇关于Ambari - 堆栈中不支持或无效的服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-09 19:14