hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Srinivas (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-8985) Add namespace declarations in .proto files for languages other than java
Date Sat, 27 Oct 2012 18:49:12 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-8985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Suresh Srinivas updated HADOOP-8985:

       Resolution: Fixed
    Fix Version/s: 2.0.3-alpha
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

+1 for the patch. I committed it to trunk and branch-2.

Thank you Binglin.
> Add namespace declarations in .proto files for languages other than java
> ------------------------------------------------------------------------
>                 Key: HADOOP-8985
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8985
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Binglin Chang
>            Assignee: Binglin Chang
>            Priority: Minor
>             Fix For: 3.0.0, 2.0.3-alpha
>         Attachments: HADOOP-8985-add-namespace.patch
> Currently .proto files use java_package to specify java packages in proto files, but
namespace are not specified for other languages such as cpp, this causes name collision in
cpp. we can add namespace declarations to avoid this. 
> In Java, the package specifier is used as the Java package, unless you explicitly provide
a option java_package in your .proto file. So the original java package will not be affected.
> About namespace name, how about "hadoop.common"(hadoop::common in cpp) for all common
sub-project proto files, and "hadoop.hdfs"(hadoop::hdfs in cpp) for all hdfs sub-project proto

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message