HDFS-4909. Avoid protocol buffer RPC namespace clashes (cmccabe)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1588093 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
327efd2672
commit
d28e711956
|
@ -107,6 +107,8 @@ Release 2.5.0 - UNRELEASED
|
||||||
HDFS-5409. TestOfflineEditsViewer#testStored fails on Windows due to CRLF
|
HDFS-5409. TestOfflineEditsViewer#testStored fails on Windows due to CRLF
|
||||||
line endings in editsStored.xml from git checkout. (cnauroth)
|
line endings in editsStored.xml from git checkout. (cnauroth)
|
||||||
|
|
||||||
|
HDFS-4909. Avoid protocol buffer RPC namespace clashes. (cmccabe)
|
||||||
|
|
||||||
Release 2.4.1 - UNRELEASED
|
Release 2.4.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -425,81 +425,18 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<source>
|
<source>
|
||||||
<directory>${basedir}/src/main/proto</directory>
|
<directory>${basedir}/src/main/proto</directory>
|
||||||
<includes>
|
<includes>
|
||||||
|
<include>ClientDatanodeProtocol.proto</include>
|
||||||
|
<include>ClientNamenodeProtocol.proto</include>
|
||||||
|
<include>DatanodeProtocol.proto</include>
|
||||||
<include>HAZKInfo.proto</include>
|
<include>HAZKInfo.proto</include>
|
||||||
<include>InterDatanodeProtocol.proto</include>
|
<include>InterDatanodeProtocol.proto</include>
|
||||||
<include>JournalProtocol.proto</include>
|
<include>JournalProtocol.proto</include>
|
||||||
<include>datatransfer.proto</include>
|
|
||||||
<include>hdfs.proto</include>
|
|
||||||
</includes>
|
|
||||||
</source>
|
|
||||||
<output>${project.build.directory}/generated-sources/java</output>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>compile-protoc-datanode</id>
|
|
||||||
<phase>generate-sources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>protoc</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<protocVersion>${protobuf.version}</protocVersion>
|
|
||||||
<protocCommand>${protoc.path}</protocCommand>
|
|
||||||
<imports>
|
|
||||||
<param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
|
|
||||||
<param>${basedir}/src/main/proto</param>
|
|
||||||
</imports>
|
|
||||||
<source>
|
|
||||||
<directory>${basedir}/src/main/proto</directory>
|
|
||||||
<includes>
|
|
||||||
<include>ClientDatanodeProtocol.proto</include>
|
|
||||||
<include>DatanodeProtocol.proto</include>
|
|
||||||
<include>fsimage.proto</include>
|
|
||||||
</includes>
|
|
||||||
</source>
|
|
||||||
<output>${project.build.directory}/generated-sources/java</output>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>compile-protoc-namenode</id>
|
|
||||||
<phase>generate-sources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>protoc</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<protocVersion>${protobuf.version}</protocVersion>
|
|
||||||
<protocCommand>${protoc.path}</protocCommand>
|
|
||||||
<imports>
|
|
||||||
<param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
|
|
||||||
<param>${basedir}/src/main/proto</param>
|
|
||||||
</imports>
|
|
||||||
<source>
|
|
||||||
<directory>${basedir}/src/main/proto</directory>
|
|
||||||
<includes>
|
|
||||||
<include>ClientNamenodeProtocol.proto</include>
|
|
||||||
<include>NamenodeProtocol.proto</include>
|
<include>NamenodeProtocol.proto</include>
|
||||||
<include>acl.proto</include>
|
|
||||||
</includes>
|
|
||||||
</source>
|
|
||||||
<output>${project.build.directory}/generated-sources/java</output>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>compile-protoc-qjournal</id>
|
|
||||||
<phase>generate-sources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>protoc</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<protocVersion>${protobuf.version}</protocVersion>
|
|
||||||
<protocCommand>${protoc.path}</protocCommand>
|
|
||||||
<imports>
|
|
||||||
<param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
|
|
||||||
<param>${basedir}/src/main/proto</param>
|
|
||||||
</imports>
|
|
||||||
<source>
|
|
||||||
<directory>${basedir}/src/main/proto</directory>
|
|
||||||
<includes>
|
|
||||||
<include>QJournalProtocol.proto</include>
|
<include>QJournalProtocol.proto</include>
|
||||||
|
<include>acl.proto</include>
|
||||||
|
<include>datatransfer.proto</include>
|
||||||
|
<include>fsimage.proto</include>
|
||||||
|
<include>hdfs.proto</include>
|
||||||
</includes>
|
</includes>
|
||||||
</source>
|
</source>
|
||||||
<output>${project.build.directory}/generated-sources/java</output>
|
<output>${project.build.directory}/generated-sources/java</output>
|
||||||
|
|
|
@ -29,7 +29,7 @@ option java_package = "org.apache.hadoop.hdfs.protocol.proto";
|
||||||
option java_outer_classname = "DatanodeProtocolProtos";
|
option java_outer_classname = "DatanodeProtocolProtos";
|
||||||
option java_generic_services = true;
|
option java_generic_services = true;
|
||||||
option java_generate_equals_and_hash = true;
|
option java_generate_equals_and_hash = true;
|
||||||
package hadoop.hdfs;
|
package hadoop.hdfs.datanode;
|
||||||
|
|
||||||
import "hdfs.proto";
|
import "hdfs.proto";
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ option java_package = "org.apache.hadoop.hdfs.protocol.proto";
|
||||||
option java_outer_classname = "NamenodeProtocolProtos";
|
option java_outer_classname = "NamenodeProtocolProtos";
|
||||||
option java_generic_services = true;
|
option java_generic_services = true;
|
||||||
option java_generate_equals_and_hash = true;
|
option java_generate_equals_and_hash = true;
|
||||||
package hadoop.hdfs;
|
package hadoop.hdfs.namenode;
|
||||||
|
|
||||||
import "hdfs.proto";
|
import "hdfs.proto";
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ option java_package = "org.apache.hadoop.hdfs.qjournal.protocol";
|
||||||
option java_outer_classname = "QJournalProtocolProtos";
|
option java_outer_classname = "QJournalProtocolProtos";
|
||||||
option java_generic_services = true;
|
option java_generic_services = true;
|
||||||
option java_generate_equals_and_hash = true;
|
option java_generate_equals_and_hash = true;
|
||||||
package hadoop.hdfs;
|
package hadoop.hdfs.qjournal;
|
||||||
|
|
||||||
import "hdfs.proto";
|
import "hdfs.proto";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue