简体   繁体   English

Ambari-堆栈中不受支持或无效的服务

[英]Ambari - Unsupported or invalid service in stack

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: 当我发出curl命令时,没有被添加,而是出现此错误:

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! 谢谢!

I figured out what was wrong. 我弄清楚出了什么问题。 When using Ambari 1.6.1, it automatically downloads and uses HDP 2.1. 使用Ambari 1.6.1时,它将自动下载并使用HDP 2.1。 The folder structure in the link says: cd /var/lib/ambari-server/resources/stacks/HDP/2.0.6/services . 链接中的文件夹结构显示: 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 . 我将其更改为: cd /var/lib/ambari-server/resources/stacks/HDP/2.1/services Problem solved. 问题解决了。 So stupid. 这么笨。 So simple. 很简单。 So much frustration. 如此无奈。 Such hopeless documentation. 如此绝望的文档。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM