You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Mac Yang (JIRA)" <ji...@apache.org> on 2011/01/12 21:32:46 UTC

[jira] Created: (HIVE-1910) Provide config parameters to control cache object pining

Provide config parameters to control cache object pining
--------------------------------------------------------

                 Key: HIVE-1910
                 URL: https://issues.apache.org/jira/browse/HIVE-1910
             Project: Hive
          Issue Type: Improvement
          Components: Configuration
    Affects Versions: 0.6.0
            Reporter: Mac Yang
            Priority: Minor


The metastore currently pin instances of the following classes in the secondary cache,
MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class

It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1910) Provide config parameters to control cache object pinning

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987161#action_12987161 ] 

Namit Jain commented on HIVE-1910:
----------------------------------

@Carl, I didnt see your comments before committing.
Can you file a follow-up jira for the same ?

> Provide config parameters to control cache object pinning
> ---------------------------------------------------------
>
>                 Key: HIVE-1910
>                 URL: https://issues.apache.org/jira/browse/HIVE-1910
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.6.0
>            Reporter: Mac Yang
>            Assignee: Mac Yang
>            Priority: Minor
>             Fix For: 0.7.0
>
>         Attachments: HIVE-1910.1.patch.txt, HIVE-1910.2.patch.txt
>
>
> The metastore currently pin instances of the following classes in the secondary cache,
> MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class
> It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1910) Provide config parameters to control cache object pinning

Posted by "Mac Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mac Yang updated HIVE-1910:
---------------------------

    Summary: Provide config parameters to control cache object pinning  (was: Provide config parameters to control cache object pining)

> Provide config parameters to control cache object pinning
> ---------------------------------------------------------
>
>                 Key: HIVE-1910
>                 URL: https://issues.apache.org/jira/browse/HIVE-1910
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.6.0
>            Reporter: Mac Yang
>            Priority: Minor
>         Attachments: HIVE-1910.1.patch.txt
>
>
> The metastore currently pin instances of the following classes in the secondary cache,
> MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class
> It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1910) Provide config parameters to control cache object pinning

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-1910:
-----------------------------

    Status: Open  (was: Patch Available)

> Provide config parameters to control cache object pinning
> ---------------------------------------------------------
>
>                 Key: HIVE-1910
>                 URL: https://issues.apache.org/jira/browse/HIVE-1910
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.6.0
>            Reporter: Mac Yang
>            Priority: Minor
>         Attachments: HIVE-1910.1.patch.txt
>
>
> The metastore currently pin instances of the following classes in the secondary cache,
> MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class
> It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1910) Provide config parameters to control cache object pining

Posted by "Mac Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mac Yang updated HIVE-1910:
---------------------------

    Attachment: HIVE-1910.1.patch.txt

This enhancement is more relevant to metastore running in thrift server mode. With the current code, a long running metastore server could potentially end up with a large number of objects in memory (most notabl with Partition, SerDeInfo and StorageDescriptor object).

This patch adds a new config parameter, "hive.metastore.cache.pinobjtypes", to make object pinning configurable. It also provides default value in hive-default.xml which will keep the current behavior.

> Provide config parameters to control cache object pining
> --------------------------------------------------------
>
>                 Key: HIVE-1910
>                 URL: https://issues.apache.org/jira/browse/HIVE-1910
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.6.0
>            Reporter: Mac Yang
>            Priority: Minor
>         Attachments: HIVE-1910.1.patch.txt
>
>
> The metastore currently pin instances of the following classes in the secondary cache,
> MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class
> It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1910) Provide config parameters to control cache object pinning

Posted by "Mac Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mac Yang updated HIVE-1910:
---------------------------

    Status: Patch Available  (was: Open)

> Provide config parameters to control cache object pinning
> ---------------------------------------------------------
>
>                 Key: HIVE-1910
>                 URL: https://issues.apache.org/jira/browse/HIVE-1910
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.6.0
>            Reporter: Mac Yang
>            Priority: Minor
>         Attachments: HIVE-1910.1.patch.txt, HIVE-1910.2.patch.txt
>
>
> The metastore currently pin instances of the following classes in the secondary cache,
> MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class
> It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1910) Provide config parameters to control cache object pinning

Posted by "Mac Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mac Yang updated HIVE-1910:
---------------------------

    Attachment: HIVE-1910.2.patch.txt

The combination of line 244 and the comma in the key of the map (line 115) was intended to handle the case where an object type is a substring of the other (for example, foo and foobar). However, looking at the code again, it offers no benefit over a straight forward split. I am attaching a new patch that uses split instead.

> Provide config parameters to control cache object pinning
> ---------------------------------------------------------
>
>                 Key: HIVE-1910
>                 URL: https://issues.apache.org/jira/browse/HIVE-1910
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.6.0
>            Reporter: Mac Yang
>            Priority: Minor
>         Attachments: HIVE-1910.1.patch.txt, HIVE-1910.2.patch.txt
>
>
> The metastore currently pin instances of the following classes in the secondary cache,
> MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class
> It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HIVE-1910) Provide config parameters to control cache object pinning

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach reassigned HIVE-1910:
------------------------------------

    Assignee: Mac Yang

> Provide config parameters to control cache object pinning
> ---------------------------------------------------------
>
>                 Key: HIVE-1910
>                 URL: https://issues.apache.org/jira/browse/HIVE-1910
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.6.0
>            Reporter: Mac Yang
>            Assignee: Mac Yang
>            Priority: Minor
>         Attachments: HIVE-1910.1.patch.txt, HIVE-1910.2.patch.txt
>
>
> The metastore currently pin instances of the following classes in the secondary cache,
> MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class
> It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HIVE-1910) Provide config parameters to control cache object pinning

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain resolved HIVE-1910.
------------------------------

       Resolution: Fixed
    Fix Version/s: 0.7.0
     Hadoop Flags: [Reviewed]

Committed. Thanks Mac

> Provide config parameters to control cache object pinning
> ---------------------------------------------------------
>
>                 Key: HIVE-1910
>                 URL: https://issues.apache.org/jira/browse/HIVE-1910
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.6.0
>            Reporter: Mac Yang
>            Assignee: Mac Yang
>            Priority: Minor
>             Fix For: 0.7.0
>
>         Attachments: HIVE-1910.1.patch.txt, HIVE-1910.2.patch.txt
>
>
> The metastore currently pin instances of the following classes in the secondary cache,
> MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class
> It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1910) Provide config parameters to control cache object pinning

Posted by "Mac Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mac Yang updated HIVE-1910:
---------------------------

    Status: Patch Available  (was: Open)

https://reviews.apache.org/r/343/

> Provide config parameters to control cache object pinning
> ---------------------------------------------------------
>
>                 Key: HIVE-1910
>                 URL: https://issues.apache.org/jira/browse/HIVE-1910
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.6.0
>            Reporter: Mac Yang
>            Priority: Minor
>         Attachments: HIVE-1910.1.patch.txt
>
>
> The metastore currently pin instances of the following classes in the secondary cache,
> MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class
> It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1910) Provide config parameters to control cache object pinning

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986121#action_12986121 ] 

Namit Jain commented on HIVE-1910:
----------------------------------

+1

> Provide config parameters to control cache object pinning
> ---------------------------------------------------------
>
>                 Key: HIVE-1910
>                 URL: https://issues.apache.org/jira/browse/HIVE-1910
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.6.0
>            Reporter: Mac Yang
>            Priority: Minor
>         Attachments: HIVE-1910.1.patch.txt, HIVE-1910.2.patch.txt
>
>
> The metastore currently pin instances of the following classes in the secondary cache,
> MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class
> It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1910) Provide config parameters to control cache object pinning

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-1910:
---------------------------------

    Status: Open  (was: Patch Available)

@Mac: Please see my comments on reviewboard. Sorry that I didn't get a chance to look at this earlier.

> Provide config parameters to control cache object pinning
> ---------------------------------------------------------
>
>                 Key: HIVE-1910
>                 URL: https://issues.apache.org/jira/browse/HIVE-1910
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.6.0
>            Reporter: Mac Yang
>            Assignee: Mac Yang
>            Priority: Minor
>         Attachments: HIVE-1910.1.patch.txt, HIVE-1910.2.patch.txt
>
>
> The metastore currently pin instances of the following classes in the secondary cache,
> MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class
> It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1910) Provide config parameters to control cache object pinning

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985530#action_12985530 ] 

Namit Jain commented on HIVE-1910:
----------------------------------

Why do need line 244 (ObjectStore.java) ?

> Provide config parameters to control cache object pinning
> ---------------------------------------------------------
>
>                 Key: HIVE-1910
>                 URL: https://issues.apache.org/jira/browse/HIVE-1910
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 0.6.0
>            Reporter: Mac Yang
>            Priority: Minor
>         Attachments: HIVE-1910.1.patch.txt
>
>
> The metastore currently pin instances of the following classes in the secondary cache,
> MTable, MStorageDescriptor, MSerDeInfo, MPartition, MDatabase, MType, MFieldSchema, MOrder.class
> It would be better if this behavior is configurable instead of hard coded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.