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

Rest Ambari-堆栈中的服务不受支持或无效,rest,hadoop,centos,hortonworks-data-platform,Rest,Hadoop,Centos,Hortonworks Data Platform,我正在尝试使用和安装自定义服务以添加该服务。当我发出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, "me

我正在尝试使用和安装自定义服务以添加该服务。当我发出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"
}

这是怎么回事?我的集群安装得很好,我可以看到仪表板和指标等等。似乎无法添加自定义服务。请帮忙。谢谢

我发现了问题所在。当使用Ambari 1.6.1时,它会自动下载并使用HDP2.1。链接中的文件夹结构是:cd/var/lib/ambari-server/resources/stacks/HDP/2.0.6/services。我把它改为:cd/var/lib/ambari-server/resources/stacks/HDP/2.1/services。问题解决了。真蠢。这么简单。太多的挫折了。这样毫无希望的文件