Andrii Babiichuk created AMBARI-15715:
-----------------------------------------

             Summary: ASW send invalid requests for config groups
                 Key: AMBARI-15715
                 URL: https://issues.apache.org/jira/browse/AMBARI-15715
             Project: Ambari
          Issue Type: Bug
          Components: ambari-web
    Affects Versions: 2.4.0
            Reporter: Andrii Babiichuk
            Assignee: Andrii Babiichuk
             Fix For: 2.4.0


There is a cluster with HDFS + ZK
HDFS has 3 config groups (and 1 Default)
Open ASW
Select YARN + MR2
Proceed to the step "Configure services"
Create 1 group for YARN and 1 for MR2
Proceed to "Install, Start and Test"

ASW sends requests to create all config groups (even already created for HDFS).
All this requests are failed (for existing groups and for new groups)

Example with TEZ:
{noformat}
curl 'http://HOST:8080/api/v1/clusters/tdk/config_groups/TEZ_1234' -X PUT -H 
'Pragma: no-cache' -H 'Origin: http://HOST:8080' -H 'Accept-Encoding: gzip, 
deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'X-Requested-By: 
X-Requested-By' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36' -H 
'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: 
application/json, text/javascript, */*; q=0.01' -H 'Cache-Control: no-cache' -H 
'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'Referer: 
http://HOST:8080/' --data 
'[{"ConfigGroup":{"cluster_name":"tdk","group_name":"1234","tag":"TEZ","description":"","hosts":[],"desired_configs":[],"id":"TEZ_1234"}}]'
 --compressed
{noformat}

{noformat}
{
  "status" : 400,
  "message" : "java.lang.NumberFormatException: For input string: \"TEZ_1234\""
}
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to