You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Travis Crawford (Created) (JIRA)" <ji...@apache.org> on 2012/03/16 23:16:39 UTC

[jira] [Created] (PIG-2604) Pig should print its build info at runtime

Pig should print its build info at runtime
------------------------------------------

                 Key: PIG-2604
                 URL: https://issues.apache.org/jira/browse/PIG-2604
             Project: Pig
          Issue Type: Improvement
            Reporter: Travis Crawford
            Priority: Minor


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.

{code}
$ 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>
{code}

CURRENT MESSAGES:

{code}
$ 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>
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIG-2604) Pig should print its build info at runtime

Posted by "Dmitriy V. Ryaboy (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitriy V. Ryaboy updated PIG-2604:
-----------------------------------

    Attachment: PIG-2604-for0.10.patch
    
> Pig should print its build info at runtime
> ------------------------------------------
>
>                 Key: PIG-2604
>                 URL: https://issues.apache.org/jira/browse/PIG-2604
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>            Priority: Minor
>             Fix For: 0.10, 0.11
>
>         Attachments: PIG-2604-for0.10.patch, PIG-2604_print_build_info.diff, PIG-2604_print_build_info_2.diff
>
>
> 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.
> {code}
> $ 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>
> {code}
> CURRENT MESSAGES:
> {code}
> $ 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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (PIG-2604) Pig should print its build info at runtime

Posted by "Travis Crawford (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Travis Crawford reassigned PIG-2604:
------------------------------------

    Assignee: Travis Crawford
    
> Pig should print its build info at runtime
> ------------------------------------------
>
>                 Key: PIG-2604
>                 URL: https://issues.apache.org/jira/browse/PIG-2604
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>            Priority: Minor
>
> 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.
> {code}
> $ 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>
> {code}
> CURRENT MESSAGES:
> {code}
> $ 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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PIG-2604) Pig should print its build info at runtime

Posted by "Dmitriy V. Ryaboy (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitriy V. Ryaboy resolved PIG-2604.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.11
                   0.10

committed to 0.10 and trunk
                
> Pig should print its build info at runtime
> ------------------------------------------
>
>                 Key: PIG-2604
>                 URL: https://issues.apache.org/jira/browse/PIG-2604
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>            Priority: Minor
>             Fix For: 0.10, 0.11
>
>         Attachments: PIG-2604-for0.10.patch, PIG-2604_print_build_info.diff, PIG-2604_print_build_info_2.diff
>
>
> 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.
> {code}
> $ 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>
> {code}
> CURRENT MESSAGES:
> {code}
> $ 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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIG-2604) Pig should print its build info at runtime

Posted by "Travis Crawford (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Travis Crawford updated PIG-2604:
---------------------------------

    Attachment: PIG-2604_print_build_info.diff
    
> Pig should print its build info at runtime
> ------------------------------------------
>
>                 Key: PIG-2604
>                 URL: https://issues.apache.org/jira/browse/PIG-2604
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>            Priority: Minor
>         Attachments: PIG-2604_print_build_info.diff
>
>
> 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.
> {code}
> $ 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>
> {code}
> CURRENT MESSAGES:
> {code}
> $ 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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2604) Pig should print its build info at runtime

Posted by "Dmitriy V. Ryaboy (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233028#comment-13233028 ] 

Dmitriy V. Ryaboy commented on PIG-2604:
----------------------------------------

That didn't quite apply right to 0.10. Attaching committed patch for 0.10.
                
> Pig should print its build info at runtime
> ------------------------------------------
>
>                 Key: PIG-2604
>                 URL: https://issues.apache.org/jira/browse/PIG-2604
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>            Priority: Minor
>         Attachments: PIG-2604_print_build_info.diff, PIG-2604_print_build_info_2.diff
>
>
> 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.
> {code}
> $ 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>
> {code}
> CURRENT MESSAGES:
> {code}
> $ 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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Work started] (PIG-2604) Pig should print its build info at runtime

Posted by "Travis Crawford (Work started) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on PIG-2604 started by Travis Crawford.

> Pig should print its build info at runtime
> ------------------------------------------
>
>                 Key: PIG-2604
>                 URL: https://issues.apache.org/jira/browse/PIG-2604
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>            Priority: Minor
>         Attachments: PIG-2604_print_build_info.diff, PIG-2604_print_build_info_2.diff
>
>
> 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.
> {code}
> $ 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>
> {code}
> CURRENT MESSAGES:
> {code}
> $ 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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2604) Pig should print its build info at runtime

Posted by "Jonathan Coveney (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231691#comment-13231691 ] 

Jonathan Coveney commented on PIG-2604:
---------------------------------------

Travis,

They don't exist for every property you want to set, but there are methods in Main that expose some of this information. They are set based on the build manifest. I'd support exposing the rest of the information you want, and then using these methods... it might be handy for other implementations to have the same info. Otherwise, +1

{code}
public static String getMajorVersion() {
    return majorVersion;
}

/**
 * Returns the major version of the Pig build being run.
 */
public static String getMinorVersion() {
    return minorVersion;
}

/**
 * Returns the patch version of the Pig build being run.
 */
public static String getPatchVersion() {
    return patchVersion;
}

/**
 * Returns the svn revision number of the Pig build being run.
 */
public static String getSvnRevision() {
    return svnRevision;
}

/**
 * Returns the built time of the Pig build being run.
 */
public static String getBuildTime() {
    return buildTime;
}
{code}
                
> Pig should print its build info at runtime
> ------------------------------------------
>
>                 Key: PIG-2604
>                 URL: https://issues.apache.org/jira/browse/PIG-2604
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>            Priority: Minor
>         Attachments: PIG-2604_print_build_info.diff
>
>
> 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.
> {code}
> $ 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>
> {code}
> CURRENT MESSAGES:
> {code}
> $ 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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2604) Pig should print its build info at runtime

Posted by "Travis Crawford (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231778#comment-13231778 ] 

Travis Crawford commented on PIG-2604:
--------------------------------------

@jco - Ha, thanks for cluing me into that. We should certainly use that. This turns into a one-line change :)
                
> Pig should print its build info at runtime
> ------------------------------------------
>
>                 Key: PIG-2604
>                 URL: https://issues.apache.org/jira/browse/PIG-2604
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>            Priority: Minor
>         Attachments: PIG-2604_print_build_info.diff
>
>
> 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.
> {code}
> $ 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>
> {code}
> CURRENT MESSAGES:
> {code}
> $ 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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2604) Pig should print its build info at runtime

Posted by "Jonathan Coveney (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232948#comment-13232948 ] 

Jonathan Coveney commented on PIG-2604:
---------------------------------------

+1 to apply to 0.10 and 0.11 trunk. I tested it and worked fine. My commit credentials aren't setup yet, so someone else will have to apply/checkin.

For it to apply to 0.10 I had to do:
{code}
patch -p0 -F3
{code}
                
> Pig should print its build info at runtime
> ------------------------------------------
>
>                 Key: PIG-2604
>                 URL: https://issues.apache.org/jira/browse/PIG-2604
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>            Priority: Minor
>         Attachments: PIG-2604_print_build_info.diff, PIG-2604_print_build_info_2.diff
>
>
> 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.
> {code}
> $ 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>
> {code}
> CURRENT MESSAGES:
> {code}
> $ 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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIG-2604) Pig should print its build info at runtime

Posted by "Travis Crawford (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Travis Crawford updated PIG-2604:
---------------------------------

    Attachment: PIG-2604_print_build_info_2.diff

This change is far simpler than the previous one (thanks @jco!) and prints the existing version string. For example:

{code}
TW-MBP13-TCrawford:pig-git travis$ bin/pig
2012-03-16 18:12:11,491 [main] INFO  org.apache.pig.Main - Apache Pig version 0.11.0-SNAPSHOT (rexported) compiled Mar 16 2012, 18:08:17
2012-03-16 18:12:11,491 [main] INFO  org.apache.pig.Main - Logging error messages to: /Users/travis/apache/pig-git/pig_1331946731489.log
2012-03-16 18:12:11,510 [main] INFO  org.apache.pig.impl.util.Utils - Default bootup file /Users/travis/.pigbootup not found
2012-03-16 18:12:11,665 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: file:///
grunt> TW-MBP13-TCrawford:pig-git travis$ 
{code}
                
> Pig should print its build info at runtime
> ------------------------------------------
>
>                 Key: PIG-2604
>                 URL: https://issues.apache.org/jira/browse/PIG-2604
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>            Priority: Minor
>         Attachments: PIG-2604_print_build_info.diff, PIG-2604_print_build_info_2.diff
>
>
> 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.
> {code}
> $ 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>
> {code}
> CURRENT MESSAGES:
> {code}
> $ 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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira