Pig
  1. Pig
  2. PIG-2510

Make default location for logs in local mode /tmp

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.9.1
    • Fix Version/s: None
    • Component/s: grunt
    • Environment:

      *nix

      Description

      I hate it when logs pile up in my directory, so I always run '-l /tmp' which seems to be a good default directory for logs in local mode.

        Activity

        Hide
        Russell Jurney added a comment -

        Command-line tools logging to /tmp is (I believe) a convention on *nix. As oppose to like, /var/log for daemons.

        However, ~/.pig/logs is ok too.

        Show
        Russell Jurney added a comment - Command-line tools logging to /tmp is (I believe) a convention on *nix. As oppose to like, /var/log for daemons. However, ~/.pig/logs is ok too.
        Hide
        Dmitriy V. Ryaboy added a comment -

        How about ~/.pig/logs as a global default, local or remote?
        I think assuming new users aren't running in MR mode is dangerous (do new users even know about local mode?)
        So is filling up /tmp on what is potentially a shared machine.

        Show
        Dmitriy V. Ryaboy added a comment - How about ~/.pig/logs as a global default, local or remote? I think assuming new users aren't running in MR mode is dangerous (do new users even know about local mode?) So is filling up /tmp on what is potentially a shared machine.
        Hide
        Russell Jurney added a comment -

        Actually, this only matters for local mode. When you're learning Pig, all the log files piling up in your working directory is undesirable and confusing. We might check for /tmp in local mode and log files there by default? New users don't know about pig.properties, they just see Pig littering files in their directories.

        Show
        Russell Jurney added a comment - Actually, this only matters for local mode. When you're learning Pig, all the log files piling up in your working directory is undesirable and confusing. We might check for /tmp in local mode and log files there by default? New users don't know about pig.properties, they just see Pig littering files in their directories.
        Hide
        Dmitriy V. Ryaboy added a comment -

        That can cause badness if you don't have something watching space in /tmp, and you are in a shared environment.

        Also note that you can easily specify it via pig.properties.

        Given those 2 things, can you provide further arguments for making /tmp or some other location that's not `cwd` the default log location?

        Show
        Dmitriy V. Ryaboy added a comment - That can cause badness if you don't have something watching space in /tmp, and you are in a shared environment. Also note that you can easily specify it via pig.properties. Given those 2 things, can you provide further arguments for making /tmp or some other location that's not `cwd` the default log location?

          People

          • Assignee:
            Unassigned
            Reporter:
            Russell Jurney
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development