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

Add session and operation_log directory deletion messages

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.0
    • HiveServer2
    • None

    Description

      In the current master, when connecting to HS2, we can confirm that some directories were created. For example the following messages of HS2 log.

      2016-02-14T13:57:52,412 INFO  [HiveServer2-Handler-Pool: Thread-607]: session.SessionState (SessionState.java:createPath(693)) - Created HDFS directory: /tmp/hive/root/bfe28a51-5804-4cbb-952c-26709aed4652
      2016-02-14T13:57:52,416 INFO  [HiveServer2-Handler-Pool: Thread-607]: session.SessionState (SessionState.java:createPath(693)) - Created local directory: /tmp/hive/bfe28a51-5804-4cbb-952c-26709aed4652
      2016-02-14T13:57:52,419 INFO  [HiveServer2-Handler-Pool: Thread-607]: session.SessionState (SessionState.java:createPath(693)) - Created HDFS directory: /tmp/hive/root/bfe28a51-5804-4cbb-952c-26709aed4652/_tmp_space.db
      2016-02-14T13:57:52,421 INFO  [HiveServer2-Handler-Pool: Thread-607]: session.HiveSessionImpl (HiveSessionImpl.java:setOperationLogSessionDir(287)) - Operation log session directory is created: /tmp/hive/operation_logs/bfe28a51-5804-4cbb-952c-26709aed4652
      

      But when closing from HS2, we cannot confirm that these directories were deleted. So I change it so that some messages about these directories deletion may be output as follows.

      2016-02-14T13:57:56,877 INFO  [bfe28a51-5804-4cbb-952c-26709aed4652bfe28a51-5804-4cbb-952c-26709aed4652HiveServer2-Handler-Pool: Thread-607]: session.HiveSessionImpl (HiveSessionImpl.java:cleanupSessionLogDir(690)) - Operation log session directory is deleted: /tmp/hive/operation_logs/bfe28a51-5804-4cbb-952c-26709aed4652
      2016-02-14T13:57:56,890 INFO  [bfe28a51-5804-4cbb-952c-26709aed4652bfe28a51-5804-4cbb-952c-26709aed4652HiveServer2-Handler-Pool: Thread-607]: session.SessionState (SessionState.java:dropSessionPaths(750)) - Deleted HDFS directory: /tmp/hive/root/bfe28a51-5804-4cbb-952c-26709aed4652
      2016-02-14T13:57:56,891 INFO  [bfe28a51-5804-4cbb-952c-26709aed4652bfe28a51-5804-4cbb-952c-26709aed4652HiveServer2-Handler-Pool: Thread-607]: session.SessionState (SessionState.java:dropSessionPaths(754)) - Deleted local directory: /tmp/hive/bfe28a51-5804-4cbb-952c-26709aed4652
      

      Attachments

        1. HIVE-13058.1.patch
          2 kB
          Shinichi Yamashita

        Activity

          People

            sinchii Shinichi Yamashita
            sinchii Shinichi Yamashita
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: