diff --git a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/utils/HddsVersionInfo.java b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/utils/HddsVersionInfo.java index 6356658ef69b..98c6ec1a0375 100644 --- a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/utils/HddsVersionInfo.java +++ b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/utils/HddsVersionInfo.java @@ -47,7 +47,8 @@ public static void main(String[] args) { System.out.println("Compiled by " + HDDS_VERSION_INFO.getUser() + " on " + HDDS_VERSION_INFO.getDate()); System.out.println( - "Compiled with protoc " + HDDS_VERSION_INFO.getProtocVersion()); + "Compiled with protoc " + HDDS_VERSION_INFO.getHadoopProtocVersion() + + " and " + HDDS_VERSION_INFO.getGrpcProtocVersion()); System.out.println( "From source with checksum " + HDDS_VERSION_INFO.getSrcChecksum()); if (LOG.isDebugEnabled()) { diff --git a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/utils/VersionInfo.java b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/utils/VersionInfo.java index d836c3130e9e..fe29108dcbf7 100644 --- a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/utils/VersionInfo.java +++ b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/utils/VersionInfo.java @@ -85,8 +85,12 @@ public String getSrcChecksum() { return info.getProperty("srcChecksum", "Unknown"); } - public String getProtocVersion() { - return info.getProperty("protocVersion", "Unknown"); + public String getHadoopProtocVersion() { + return info.getProperty("hadoopProtocVersion", "Unknown"); + } + + public String getGrpcProtocVersion() { + return info.getProperty("grpcProtocVersion", "Unknown"); } public String getBuildVersion() { diff --git a/hadoop-hdds/common/src/main/resources/hdds-version-info.properties b/hadoop-hdds/common/src/main/resources/hdds-version-info.properties index 2cbd817ebbf9..142431081ea4 100644 --- a/hadoop-hdds/common/src/main/resources/hdds-version-info.properties +++ b/hadoop-hdds/common/src/main/resources/hdds-version-info.properties @@ -23,4 +23,5 @@ user=${user.name} date=${version-info.build.time} url=${version-info.scm.uri} srcChecksum=${version-info.source.md5} -protocVersion=${protobuf.version} +hadoopProtocVersion=${hadooprpc.protobuf.version} +grpcProtocVersion=${grpc.protobuf-compile.version} \ No newline at end of file diff --git a/hadoop-hdds/interface-admin/pom.xml b/hadoop-hdds/interface-admin/pom.xml index 91c14163c7eb..8e75a9691da1 100644 --- a/hadoop-hdds/interface-admin/pom.xml +++ b/hadoop-hdds/interface-admin/pom.xml @@ -60,7 +60,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> - com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier} + com.google.protobuf:protoc:${hadooprpc.protobuf.version}:exe:${os.detected.classifier} ${basedir}/src/main/proto/ target/generated-sources/java diff --git a/hadoop-hdds/interface-client/pom.xml b/hadoop-hdds/interface-client/pom.xml index a3ccaeb07fce..1f950c3044d6 100644 --- a/hadoop-hdds/interface-client/pom.xml +++ b/hadoop-hdds/interface-client/pom.xml @@ -66,7 +66,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> - com.google.protobuf:protoc:${protobuf-compile.version}:exe:${os.detected.classifier} + com.google.protobuf:protoc:${grpc.protobuf-compile.version}:exe:${os.detected.classifier} ${basedir}/src/main/proto/ @@ -89,7 +89,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> - com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier} + com.google.protobuf:protoc:${hadooprpc.protobuf.version}:exe:${os.detected.classifier} ${basedir}/src/main/proto/ diff --git a/hadoop-hdds/interface-server/pom.xml b/hadoop-hdds/interface-server/pom.xml index e1c274445c46..7dfeca86c0eb 100644 --- a/hadoop-hdds/interface-server/pom.xml +++ b/hadoop-hdds/interface-server/pom.xml @@ -63,7 +63,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> - com.google.protobuf:protoc:${protobuf-compile.version}:exe:${os.detected.classifier} + com.google.protobuf:protoc:${grpc.protobuf-compile.version}:exe:${os.detected.classifier} ${basedir}/src/main/proto/ @@ -86,7 +86,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> - com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier} + com.google.protobuf:protoc:${hadooprpc.protobuf.version}:exe:${os.detected.classifier} ${basedir}/src/main/proto/ diff --git a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/util/OzoneVersionInfo.java b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/util/OzoneVersionInfo.java index c95861975fbe..981a0c6d891c 100644 --- a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/util/OzoneVersionInfo.java +++ b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/util/OzoneVersionInfo.java @@ -72,7 +72,8 @@ public static void main(String[] args) { System.out.println("Compiled by " + OZONE_VERSION_INFO.getUser() + " on " + OZONE_VERSION_INFO.getDate()); System.out.println( - "Compiled with protoc " + OZONE_VERSION_INFO.getProtocVersion()); + "Compiled with protoc " + OZONE_VERSION_INFO.getHadoopProtocVersion() + + " and " + OZONE_VERSION_INFO.getGrpcProtocVersion()); System.out.println( "From source with checksum " + OZONE_VERSION_INFO.getSrcChecksum()); System.out.println( diff --git a/hadoop-ozone/common/src/main/resources/ozone-version-info.properties b/hadoop-ozone/common/src/main/resources/ozone-version-info.properties index 599f14d5eca4..34c586d7b7e1 100644 --- a/hadoop-ozone/common/src/main/resources/ozone-version-info.properties +++ b/hadoop-ozone/common/src/main/resources/ozone-version-info.properties @@ -24,4 +24,5 @@ user=${user.name} date=${version-info.build.time} url=${version-info.scm.uri} srcChecksum=${version-info.source.md5} -protocVersion=${protobuf.version} +hadoopProtocVersion=${hadooprpc.protobuf.version} +grpcProtocVersion=${grpc.protobuf-compile.version} diff --git a/hadoop-ozone/csi/pom.xml b/hadoop-ozone/csi/pom.xml index 95044652719f..fa8cb07e0b6e 100644 --- a/hadoop-ozone/csi/pom.xml +++ b/hadoop-ozone/csi/pom.xml @@ -32,7 +32,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.protobuf protobuf-java-util - ${protobuf-compile.version} + ${grpc.protobuf-compile.version} com.google.protobuf @@ -62,7 +62,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.protobuf protobuf-java - ${protobuf-compile.version} + ${grpc.protobuf-compile.version} io.grpc @@ -146,7 +146,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> true - com.google.protobuf:protoc:${protobuf-compile.version}:exe:${os.detected.classifier} + com.google.protobuf:protoc:${grpc.protobuf-compile.version}:exe:${os.detected.classifier} ${basedir}/src/main/proto/ diff --git a/hadoop-ozone/dist/pom.xml b/hadoop-ozone/dist/pom.xml index a2a18ff22063..980ab8ed397f 100644 --- a/hadoop-ozone/dist/pom.xml +++ b/hadoop-ozone/dist/pom.xml @@ -103,7 +103,7 @@ com.google.protobuf protobuf-java - ${protobuf-compile.version} + ${grpc.protobuf-compile.version} diff --git a/hadoop-ozone/interface-client/pom.xml b/hadoop-ozone/interface-client/pom.xml index d4b16fdc937d..08b3575e1f3c 100644 --- a/hadoop-ozone/interface-client/pom.xml +++ b/hadoop-ozone/interface-client/pom.xml @@ -59,7 +59,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> ${basedir}/src/main/proto/ - com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier} + com.google.protobuf:protoc:${hadooprpc.protobuf.version}:exe:${os.detected.classifier} diff --git a/hadoop-ozone/interface-storage/pom.xml b/hadoop-ozone/interface-storage/pom.xml index c7ce7d2713d6..0c017fed3548 100644 --- a/hadoop-ozone/interface-storage/pom.xml +++ b/hadoop-ozone/interface-storage/pom.xml @@ -91,7 +91,7 @@ ${basedir}/src/main/proto/ - com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier} + com.google.protobuf:protoc:${hadooprpc.protobuf.version}:exe:${os.detected.classifier} diff --git a/pom.xml b/pom.xml index 2773c69951bd..2cdca425e5dc 100644 --- a/pom.xml +++ b/pom.xml @@ -143,7 +143,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs - 2.5.0 + 2.5.0 3.0.0 3.1.12 @@ -172,7 +172,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs 0.5.1 - 3.12.0 + 3.12.0 1.33.0 1.5.0.Final @@ -1302,7 +1302,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs com.google.protobuf protobuf-java - ${protobuf.version} + ${hadooprpc.protobuf.version} commons-daemon