hadoop/hadoop-yarn-project/hadoop-yarn
Steve Loughran 91acb8da23
HADOOP-18487. protobuf 2.5 marked as provided.
The option protobuf.scope defines whether the protobuf 2.5.0
dependency is marked as provided or not.

* all declarations except those in yarn-csi are updated
* those modules which don't compile without their own explicit
  import (hadoop-hdfs-client, hadoop-hdfs-rbf)

It's actually interesting to see where/how that compile fails

hadoop-hdfs-client: ClientNamenodeProtocolTranslatorPB
hadoop-hdfs-rbf:RouterAdminProtocolTranslatorPB

both with "class file for com.google.protobuf.ServiceException not found",
even though *neither class uses it*

what they do have is references to ProtobufHelper.getRemoteException(),
which is overloaded to both the shaded ServiceException and the original one

Hypothesis: the javac overload resolution needs to look at the entire
class hierarchy before it can decide which one to use.

Proposed: add a new method
 ioe extractException(org.apache.hadoop.thirdparty.protobuf.ServiceException)
and move our own code to it. Without the overloading the classes should not
be needed

Change-Id: I70354abfe3f1fdc03c418dac88e60f8cc4929a33
2023-03-06 10:20:45 +00:00
..
bin YARN-11349. [Federation] Router Support DelegationToken With SQL. (#5244) 2023-02-15 14:38:41 -08:00
conf [YARN-10998] Add YARN_ROUTER_HEAPSIZE to yarn-env for routers (#3603) 2021-11-11 09:49:29 -08:00
dev-support HADOOP-18305. Release Hadoop 3.3.4: upstream changelog and jdiff files 2022-08-05 14:06:22 +01:00
hadoop-yarn-api YARN-11375. [Federation] Support refreshAdminAcls、refreshServiceAcls API's for Federation. (#5312) 2023-02-28 14:44:00 -08:00
hadoop-yarn-applications HADOOP-18487. protobuf 2.5 marked as provided. 2023-03-06 10:20:45 +00:00
hadoop-yarn-client YARN-3657. Federation maintenance mechanisms (simple CLI and command propagation). (#5348) 2023-02-06 11:47:07 -08:00
hadoop-yarn-common HADOOP-18487. protobuf 2.5 marked as provided. 2023-03-06 10:20:45 +00:00
hadoop-yarn-csi HADOOP-18487. protobuf 2.5 marked as provided. 2023-03-06 10:20:45 +00:00
hadoop-yarn-registry Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
hadoop-yarn-server HADOOP-18487. protobuf 2.5 marked as provided. 2023-03-06 10:20:45 +00:00
hadoop-yarn-site Fix "the the" and friends typos (#5267) 2023-01-17 03:33:59 +08:00
hadoop-yarn-ui YARN-11439. Fix Typo of hadoop-yarn-ui README.md. (#5405) 2023-02-18 13:14:01 +08:00
shellprofile.d
pom.xml HADOOP-17967. Keep restrict-imports-enforcer-rule for Guava VisibleForTesting in hadoop-main pom (#3555) 2021-10-21 16:54:25 +09:00