Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-13391

Long API query should be made part of request body

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: ambari-web
    • Labels:
      None

      Description

      Following API fails with 413 (in some cases 404) error code due to GET request URL being too large when there are too many services being installed:

      /api/v1/clusters/mycluster/configurations?(type=hadoop-env&tag=TOPOLOGY_RESOLVED)|(type=hadoop-policy&tag=TOPOLOGY_RESOLVED)|(type=hcat-env&tag=TOPOLOGY_RESOLVED)|(type=hdfs-log4j&tag=TOPOLOGY_RESOLVED)|(type=hdfs-site&tag=TOPOLOGY_RESOLVED)|(type=hive-env&tag=TOPOLOGY_RESOLVED)|(type=hive-exec-log4j&tag=TOPOLOGY_RESOLVED)|(type=hive-log4j&tag=TOPOLOGY_RESOLVED)|(type=hive-site&tag=TOPOLOGY_RESOLVED)|(type=hiveserver2-site&tag=TOPOLOGY_RESOLVED)|(type=mapred-env&tag=TOPOLOGY_RESOLVED)|(type=mapred-site&tag=TOPOLOGY_RESOLVED)|(type=oozie-env&tag=TOPOLOGY_RESOLVED)|(type=oozie-log4j&tag=TOPOLOGY_RESOLVED)|(type=oozie-site&tag=TOPOLOGY_RESOLVED)|(type=pig-env&tag=INITIAL)|(type=pig-log4j&tag=INITIAL)|(type=pig-properties&tag=INITIAL)|(type=ranger-hdfs-audit&tag=TOPOLOGY_RESOLVED)|(type=ranger-hdfs-plugin-properties&tag=TOPOLOGY_RESOLVED)|(type=ranger-hdfs-policymgr-ssl&tag=TOPOLOGY_RESOLVED)|(type=ranger-hdfs-security&tag=TOPOLOGY_RESOLVED)|(type=ranger-hive-audit&tag=TOPOLOGY_RESOLVED)|(type=ranger-hive-plugin-properties&tag=TOPOLOGY_RESOLVED)|(type=ranger-hive-policymgr-ssl&tag=TOPOLOGY_RESOLVED)|(type=ranger-hive-security&tag=TOPOLOGY_RESOLVED)|(type=ranger-yarn-audit&tag=INITIAL)|(type=ranger-yarn-plugin-properties&tag=INITIAL)|(type=ranger-yarn-policymgr-ssl&tag=INITIAL)|(type=ranger-yarn-security&tag=INITIAL)|(type=spark-defaults&tag=INITIAL)|(type=spark-env&tag=INITIAL)|(type=spark-javaopts-properties&tag=INITIAL)|(type=spark-log4j-properties&tag=INITIAL)|(type=spark-metrics-properties&tag=INITIAL)|(type=sqoop-env&tag=INITIAL)|(type=ssl-client&tag=TOPOLOGY_RESOLVED)|(type=ssl-server&tag=TOPOLOGY_RESOLVED)|(type=tez-env&tag=INITIAL)|(type=tez-site&tag=INITIAL)|(type=webhcat-env&tag=TOPOLOGY_RESOLVED)|(type=webhcat-log4j&tag=TOPOLOGY_RESOLVED)|(type=webhcat-site&tag=TOPOLOGY_RESOLVED)|(type=yarn-env&tag=INITIAL)|(type=yarn-log4j&tag=INITIAL)|(type=yarn-site&tag=INITIAL)|(type=zoo.cfg&tag=INITIAL)|(type=zookeeper-env&tag=INITIAL)|(type=zookeeper-log4j&tag=INITIAL)&_=1444342364222
      

      This leads to UI failing too load the current applied configs to the cluster on Add service wizard

        Activity

        Hide
        atkach Andrii Tkach added a comment -

        9337 tests complete (13 seconds)
        94 tests pending

        Show
        atkach Andrii Tkach added a comment - 9337 tests complete (13 seconds) 94 tests pending
        Hide
        akovalenko Aleksandr Kovalenko added a comment -

        +1 for the patch

        Show
        akovalenko Aleksandr Kovalenko added a comment - +1 for the patch
        Hide
        atkach Andrii Tkach added a comment -

        committed to trunk and branch-2.1

        Show
        atkach Andrii Tkach added a comment - committed to trunk and branch-2.1
        Hide
        hudson Hudson added a comment -

        ABORTED: Integrated in Ambari-branch-2.1 #670 (See https://builds.apache.org/job/Ambari-branch-2.1/670/)
        AMBARI-13391 Long API query should be made part of request body. (atkach: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=a755a3051d7687eb604139b8fa4139c7ab4a36b0)

        • ambari-web/app/utils/ajax/ajax.js
        • ambari-web/test/utils/ajax/ajax_test.js
        Show
        hudson Hudson added a comment - ABORTED: Integrated in Ambari-branch-2.1 #670 (See https://builds.apache.org/job/Ambari-branch-2.1/670/ ) AMBARI-13391 Long API query should be made part of request body. (atkach: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=a755a3051d7687eb604139b8fa4139c7ab4a36b0 ) ambari-web/app/utils/ajax/ajax.js ambari-web/test/utils/ajax/ajax_test.js
        Hide
        hudson Hudson added a comment -

        ABORTED: Integrated in Ambari-trunk-Commit #3629 (See https://builds.apache.org/job/Ambari-trunk-Commit/3629/)
        AMBARI-13391 Long API query should be made part of request body. (atkach: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=5601b1404ee116e8994102525227817f88176706)

        • ambari-web/app/utils/ajax/ajax.js
        • ambari-web/test/utils/ajax/ajax_test.js
        Show
        hudson Hudson added a comment - ABORTED: Integrated in Ambari-trunk-Commit #3629 (See https://builds.apache.org/job/Ambari-trunk-Commit/3629/ ) AMBARI-13391 Long API query should be made part of request body. (atkach: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=5601b1404ee116e8994102525227817f88176706 ) ambari-web/app/utils/ajax/ajax.js ambari-web/test/utils/ajax/ajax_test.js

          People

          • Assignee:
            atkach Andrii Tkach
            Reporter:
            atkach Andrii Tkach
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development