Hive
  1. Hive
  2. HIVE-1105

Add service script for starting metastore server

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.4.1
    • Fix Version/s: 0.5.0
    • Component/s: Server Infrastructure
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Hide
      HIVE-1105. Add service script for starting metastore server. (John Sichi via zshao)
      New command for starting a Hive metastore server:
      hive --service metastore
      Show
      HIVE-1105 . Add service script for starting metastore server. (John Sichi via zshao) New command for starting a Hive metastore server: hive --service metastore

      Description

      The instructions on this page recommend running Java directly in order to start the metastore:

      http://wiki.apache.org/hadoop/Hive/AdminManual/MetastoreAdmin

      Since we already have a generic service-starter script, it would be nice to be able to do this instead:

      hive --service metastore

      I've written a metastore.sh for this purpose.

        Activity

        Hide
        XiaoboGu added a comment -

        But how to start metastore service as dameons, write the pids into pid files, and stop it using commands such as hive --service metastore stop?

        Show
        XiaoboGu added a comment - But how to start metastore service as dameons, write the pids into pid files, and stop it using commands such as hive --service metastore stop?
        Hide
        Zheng Shao added a comment -

        Committed to branch-0.5 and trunk. Thanks John!

        Please mention this is available since 0.5.

        Show
        Zheng Shao added a comment - Committed to branch-0.5 and trunk. Thanks John! Please mention this is available since 0.5.
        Hide
        John Sichi added a comment -

        I'll update wiki docs once this patch is accepted.

        Show
        John Sichi added a comment - I'll update wiki docs once this patch is accepted.
        Hide
        Prasad Chakka added a comment -

        nice. it will be great if can you add this info to that wiki.

        Show
        Prasad Chakka added a comment - nice. it will be great if can you add this info to that wiki.
        Hide
        John Sichi added a comment -

        Here's the patch; it also fixes a typo in the existing help.sh.

        Show
        John Sichi added a comment - Here's the patch; it also fixes a typo in the existing help.sh.

          People

          • Assignee:
            John Sichi
            Reporter:
            John Sichi
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development