Pig
  1. Pig
  2. PIG-2604

Pig should print its build info at runtime

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0, 0.11
    • Component/s: None
    • Labels:
      None

      Description

      Currently no build info is printed when running pig, so its not clear specifically what version you are running. For users, they do not know if the version was updated, which might explain a change in behavior. For developers, its not clear if you're actually running the development jar you're testing.

      This could be improved by printing a line at startup saying what version of pig you are using.

      PROPOSED BUILD MESSAGE:

      Note "exported" below happens because I built from a git repo, per the svnversion command.

      $ JAVA_HOME=/usr/java/default bin/pig
      2012-03-16 22:13:15,266 [main] INFO  org.apache.pig.Main - Apache Pig 0.11.0-SNAPSHOT revision exported built by travis at Mar 16 2012, 14:56:33
      2012-03-16 22:13:15,267 [main] INFO  org.apache.pig.Main - Logging error messages to: /home/travis/pig/pig_1331935995262.log
      2012-03-16 22:13:15,291 [main] INFO  org.apache.pig.impl.util.Utils - Default bootup file /home/travis/.pigbootup not found
      2012-03-16 22:13:15,509 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: hdfs://foo.com:8020
      2012-03-16 22:13:15,737 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to map-reduce job tracker at: foo.com:8021
      grunt>
      

      CURRENT MESSAGES:

      $ pig
      2012-03-16 22:06:14,604 [main] INFO  org.apache.pig.Main - Logging error messages to: /var/log/pig/pig_1331935574602.log
      2012-03-16 22:06:14,834 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: hdfs://foo.com:8020
      2012-03-16 22:06:15,078 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to map-reduce job tracker at: foo.com:8021
      grunt>
      
      1. PIG-2604-for0.10.patch
        0.9 kB
        Dmitriy V. Ryaboy
      2. PIG-2604_print_build_info.diff
        4 kB
        Travis Crawford
      3. PIG-2604_print_build_info_2.diff
        0.5 kB
        Travis Crawford

        Activity

        Travis Crawford created issue -
        Travis Crawford made changes -
        Field Original Value New Value
        Assignee Travis Crawford [ traviscrawford ]
        Travis Crawford made changes -
        Attachment PIG-2604_print_build_info.diff [ 12518744 ]
        Travis Crawford made changes -
        Attachment PIG-2604_print_build_info_2.diff [ 12518762 ]
        Travis Crawford made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Dmitriy V. Ryaboy made changes -
        Attachment PIG-2604-for0.10.patch [ 12518971 ]
        Dmitriy V. Ryaboy made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 0.10 [ 12316246 ]
        Fix Version/s 0.11 [ 12318878 ]
        Resolution Fixed [ 1 ]
        Daniel Dai made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Travis Crawford
            Reporter:
            Travis Crawford
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development