Hive
  1. Hive
  2. HIVE-3779

An empty value to hive.logquery.location can't disable the creation of hive history log files

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None

      Description

      In AdminManual Configuration (https://cwiki.apache.org/Hive/adminmanual-configuration.html), the description of hive.querylog.location mentioned that if the variable set to empty string structured log will not be created.

      But it fails with the following setting,
      <property>
      <name>hive.querylog.location</name>
      <value></value>
      </property>

      It seems that it can NOT get an empty value from HiveConf.ConfVars.HIVEHISTORYFILELOC, but the default value.

        Issue Links

          Activity

          Hide
          Anthony Hsu added a comment -

          In case you're still using an older version of Hive that doesn't let you disable the history log files, one workaround that you can use is to run

          !rm -r /path/to/hive.querylog.location;
          

          as your first shell command before running your queries.

          Show
          Anthony Hsu added a comment - In case you're still using an older version of Hive that doesn't let you disable the history log files, one workaround that you can use is to run !rm -r /path/to/hive.querylog.location; as your first shell command before running your queries.
          Hide
          Thejas M Nair added a comment -

          HIVE-4513 adds a config option to enable/disable hive history logging.

          Show
          Thejas M Nair added a comment - HIVE-4513 adds a config option to enable/disable hive history logging.

            People

            • Assignee:
              Unassigned
              Reporter:
              Bing Li
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development