You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Aasha Medhi (Jira)" <ji...@apache.org> on 2020/02/07 09:02:00 UTC

[jira] [Commented] (HIVE-22843) Use bounded map for storing encryption zone to cmroot mapping

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

Aasha Medhi commented on HIVE-22843:
------------------------------------

The map<String, String> stores encryption zone root path to cm path mapping

If we assume the paths to be 500 characters long, each row in the map will have 1000 characters.

If we store 1000 encryption zones in the map, it will take up ~1MB space.

We should be good with this much space and further optimisation is not needed now.

 

> Use bounded map for storing encryption zone to cmroot mapping
> -------------------------------------------------------------
>
>                 Key: HIVE-22843
>                 URL: https://issues.apache.org/jira/browse/HIVE-22843
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Aasha Medhi
>            Assignee: Aasha Medhi
>            Priority: Major
>
> Currently cm uses a hashmap to store encryption zone to cm mapping. This may lead to OOM.
> Analyse the same and move to bounded map if needed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)