[ 
https://issues.apache.org/jira/browse/IMPALA-9086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17822259#comment-17822259
 ] 

ASF subversion and git services commented on IMPALA-9086:
---------------------------------------------------------

Commit f3fb58e23aa4b0b0ded0e1f018519cf01df3d4e1 in impala's branch 
refs/heads/master from Saurabh Katiyal
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=f3fb58e23 ]

IMPALA-12830: test_webserver_hide_logs_link() could fail in the exhaustive build

fixed order of "/hadoop-varz" test_web_pages.py for test 
"test_webserver_hide_logs_link()".
In this test for links "/hadoop-varz" was added to expected_catalog_links[]
as part of improvement IMPALA-9086 but order was conflicted with "/events"

Change-Id: I042ae0464cfc3d13b74ff28099ad52ff53e19f74
Reviewed-on: http://gerrit.cloudera.org:8080/21053
Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>


> Show Hive configurations in /hadoop-varz page
> ---------------------------------------------
>
>                 Key: IMPALA-9086
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9086
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Frontend
>            Reporter: Quanlong Huang
>            Assignee: Saurabh Katiyal
>            Priority: Major
>              Labels: ramp-up, supportability
>
> Hive configurations are not shown in /hadoop-varz page. It helps to check 
> hive.metastore.warehouse.dir and hive.metastore.warehouse.external.dir used 
> in FE. We should also add the /hadoop-varz page in catalogd WebUI.
> The URL callback is registered in be/src/service/impala-http-handler.cc:
> {code:cpp}
>   webserver->RegisterUrlCallback("/hadoop-varz", "hadoop-varz.tmpl",
>       MakeCallback(this, &ImpalaHttpHandler::HadoopVarzHandler), true);
> {code}
> https://github.com/apache/impala/blob/379038f7639731605bca4356337616fa69f35f9d/be/src/service/impala-http-handler.cc#L133-L134
> The handler, ImpalaHttpHandler::HadoopVarzHandler(), is implemented by 
> calling a JNI method to invoke FE method JniFrontend.getAllHadoopConfigs():
> https://github.com/apache/impala/blob/379038f7639731605bca4356337616fa69f35f9d/fe/src/main/java/org/apache/impala/service/JniFrontend.java#L626-L631
> We simply create a static object of org.apache.hadoop.conf.Configuration and 
> use it for each /hadoop-varz http request. We can consier changing its type 
> to org.apache.hadoop.hive.conf.HiveConf (inherrits Configuration) which might 
> contain all the hive configurations.
> To add the same page for catalogd, we need to register a similar handler in 
> CatalogServer::RegisterWebpages()
> https://github.com/apache/impala/blob/379038f7639731605bca4356337616fa69f35f9d/be/src/catalog/catalog-server.cc#L434
> Also add a new method in JniCatalog.java to return the configurations 
> throught JNI, add JNI stuffs in catalog.cc and catalog.h (similar to existing 
> JNI methods, e.g. get_catalog_object_id_).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to