Quanlong Huang has uploaded a new patch set (#2). ( http://gerrit.cloudera.org:8080/16449 )
Change subject: IMPALA-10168(part-1): Expose JSON catalog objects in catalogd's debug page ...................................................................... IMPALA-10168(part-1): Expose JSON catalog objects in catalogd's debug page Catalogd has a debug page at '/catalog_object' showing catalog objects in thrift debug strings. It's inconvenient for tests to parse the thrift string and get interested infos. This patch extend this page to support returning JSON results, which eases tests to extract complex infos from the catalog objects, e.g. partition ids of a hdfs table. Currently, not all the thrift fields are exposed since we are writing the converting codes by ourselves. If there is a tool/library for converting thrift objects to json objects, we can switch to that solution in the future. Tests: - Add tests to verified json fields existence. Change-Id: I15f256b4e3f5206c7140746694106e03b0a4ad92 --- M be/src/catalog/CMakeLists.txt A be/src/catalog/catalog-json.cc M be/src/catalog/catalog-server.cc M be/src/catalog/catalog-server.h M tests/webserver/test_web_pages.py 5 files changed, 410 insertions(+), 2 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/49/16449/2 -- To view, visit http://gerrit.cloudera.org:8080/16449 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newpatchset Gerrit-Change-Id: I15f256b4e3f5206c7140746694106e03b0a4ad92 Gerrit-Change-Number: 16449 Gerrit-PatchSet: 2 Gerrit-Owner: Quanlong Huang <[email protected]>
