Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18884

Simplify Logging in Hive Metastore Client

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Included URI details in the connection & failure logs

    Description

      https://github.com/apache/hive/blob/4047befe48c8f762c58d8854e058385c1df151c6/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java

      The current logging is:

      2018-02-26 07:02:44,883  INFO  hive.metastore: [HiveServer2-Handler-Pool: Thread-65]: Trying to connect to metastore with URI thrift://host.company.com:9083
      2018-02-26 07:02:44,892  INFO  hive.metastore: [HiveServer2-Handler-Pool: Thread-65]: Connected to metastore.
      2018-02-26 07:02:44,892  INFO  hive.metastore: [HiveServer2-Handler-Pool: Thread-65]: Opened a connection to metastore, current connections: 2
      

      Please simplify to something like:

      2018-02-26 07:02:44,892  INFO  hive.metastore: [HiveServer2-Handler-Pool: Thread-65]: Opened a connection to the Metastore Server (URI thrift://host.company.com:9083), current connections: 2
      
      ... or ...
      
      2018-02-26 07:02:44,892  ERROR  hive.metastore: [HiveServer2-Handler-Pool: Thread-65]: Failed to connect to the Metastore Server (URI thrift://host.company.com:9083)
      

      Attachments

        1. HIVE.18884.02.patch
          5 kB
          Mani M
        2. HIVE.18884.03.patch
          5 kB
          Mani M
        3. HIVE.18884.04.patch
          5 kB
          Mani M
        4. HIVE.18884.05.patch
          5 kB
          Mani M
        5. HIVE.18884.06.patch
          5 kB
          Mani M
        6. HIVE.18884.07.patch
          5 kB
          Mani M
        7. HIVE.18884.08.patch
          5 kB
          Mani M
        8. HIVE.18884.09.patch
          5 kB
          Mani M
        9. HIVE.18884.patch
          2 kB
          Mani M

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rmsmani@gmail.com Mani M Assign to me
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment