You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Harsh J (Created) (JIRA)" <ji...@apache.org> on 2012/01/02 11:24:30 UTC

[jira] [Created] (PIG-2455) Need a way to get Pig's version programmatically.

Need a way to get Pig's version programmatically.
-------------------------------------------------

                 Key: PIG-2455
                 URL: https://issues.apache.org/jira/browse/PIG-2455
             Project: Pig
          Issue Type: Wish
          Components: build
    Affects Versions: 0.9.0
            Reporter: Harsh J
            Priority: Minor


There seems to be no API in Apache Pig that provides back a version string, or anything of that sort. For Apache Hadoop and HBase, we have VersionInfo classes doing this.

I'm up for providing a patch if you guys feel this is worth maintaining (you'd need to maintain a package-info.java with some strings, as you change versions/revisions, I can look at how hadoop maintains this and help).

I came across this thought while trying to think of an easy way around OOZIE-623.

--
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-2455) Need a way to get Pig's version programmatically.

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

Harsh J commented on PIG-2455:
------------------------------

Apache Hadoop runs a script that saves version strings (from mvn/ant) into the package-info.java upon a build. So it should be fairly straightforward to maintain this as well, once you have a similar script added to Pig (i.e. You need only maintain versions in the same way as you do already, but have the script added to the execution when compiling, to take effect).
                
> Need a way to get Pig's version programmatically.
> -------------------------------------------------
>
>                 Key: PIG-2455
>                 URL: https://issues.apache.org/jira/browse/PIG-2455
>             Project: Pig
>          Issue Type: Wish
>          Components: build
>    Affects Versions: 0.9.0
>            Reporter: Harsh J
>            Priority: Minor
>              Labels: newbie
>
> There seems to be no API in Apache Pig that provides back a version string, or anything of that sort. For Apache Hadoop and HBase, we have VersionInfo classes doing this.
> I'm up for providing a patch if you guys feel this is worth maintaining (you'd need to maintain a package-info.java with some strings, as you change versions/revisions, I can look at how hadoop maintains this and help).
> I came across this thought while trying to think of an easy way around OOZIE-623.

--
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-2455) Need a way to get Pig's version programmatically.

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

Harsh J commented on PIG-2455:
------------------------------

Nope, that works just fine! And sorry for not searching deep. I looked for the VersionInfo class, thinking it'd be standard across, but didn't find one and hence reported this.

PIG-2380 works for me. Thanks again!
                
> Need a way to get Pig's version programmatically.
> -------------------------------------------------
>
>                 Key: PIG-2455
>                 URL: https://issues.apache.org/jira/browse/PIG-2455
>             Project: Pig
>          Issue Type: Wish
>          Components: build
>    Affects Versions: 0.9.0
>            Reporter: Harsh J
>            Priority: Minor
>              Labels: newbie
>
> There seems to be no API in Apache Pig that provides back a version string, or anything of that sort. For Apache Hadoop and HBase, we have VersionInfo classes doing this.
> I'm up for providing a patch if you guys feel this is worth maintaining (you'd need to maintain a package-info.java with some strings, as you change versions/revisions, I can look at how hadoop maintains this and help).
> I came across this thought while trying to think of an easy way around OOZIE-623.

--
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-2455) Need a way to get Pig's version programmatically.

Posted by "Gianmarco De Francisci Morales (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gianmarco De Francisci Morales resolved PIG-2455.
-------------------------------------------------

    Resolution: Duplicate

This issue was solved in PIG-2380 and is integrated into trunk.
I am marking this Jira as duplicate and closing it for now.
In PIG-2380 we use info from the manifest to keep track of version numbers.
If you feel that the patch in PIG-2380 does not address the issues you have in mind, please reopen the ticket and let us know what you think would be the gain in keeping a separate package-info class.

Thanks
                
> Need a way to get Pig's version programmatically.
> -------------------------------------------------
>
>                 Key: PIG-2455
>                 URL: https://issues.apache.org/jira/browse/PIG-2455
>             Project: Pig
>          Issue Type: Wish
>          Components: build
>    Affects Versions: 0.9.0
>            Reporter: Harsh J
>            Priority: Minor
>              Labels: newbie
>
> There seems to be no API in Apache Pig that provides back a version string, or anything of that sort. For Apache Hadoop and HBase, we have VersionInfo classes doing this.
> I'm up for providing a patch if you guys feel this is worth maintaining (you'd need to maintain a package-info.java with some strings, as you change versions/revisions, I can look at how hadoop maintains this and help).
> I came across this thought while trying to think of an easy way around OOZIE-623.

--
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