diff options
author | Bharat Viswanadham <bharat@apache.org> | 2018-06-04 15:42:47 -0700 |
---|---|---|
committer | Bharat Viswanadham <bharat@apache.org> | 2018-06-04 16:38:25 -0700 |
commit | ab514fbbab8789b0e9185ef9815dc2394c577521 (patch) | |
tree | 0eea7edf409b483a8105f82a5d479cb4ba1c095a | |
parent | 9dd79d1dcd46a96ada8ea560d20334b2f7a6b247 (diff) |
HADOOP-15137. ClassNotFoundException: org.apache.hadoop.yarn.server.api.DistributedSchedulingAMProtocol when using hadoop-client-minicluster. Contributed by Bharat Viswanadham
(cherry picked from commit f30f2dc4085c51b6b6850430213f47b97a763b7f)
-rw-r--r-- | hadoop-client-modules/hadoop-client-minicluster/pom.xml | 141 |
1 files changed, 137 insertions, 4 deletions
diff --git a/hadoop-client-modules/hadoop-client-minicluster/pom.xml b/hadoop-client-modules/hadoop-client-minicluster/pom.xml index af43cf5d61..f96af4013e 100644 --- a/hadoop-client-modules/hadoop-client-minicluster/pom.xml +++ b/hadoop-client-modules/hadoop-client-minicluster/pom.xml @@ -150,10 +150,6 @@ <artifactId>hadoop-yarn-common</artifactId> </exclusion> <exclusion> - <groupId>org.apache.hadoop</groupId> - <artifactId>hadoop-yarn-server-common</artifactId> - </exclusion> - <exclusion> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> </exclusion> @@ -225,6 +221,110 @@ <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> </exclusion> + + <!-- removing dependency jars from yarn-server-common, which are + already included in hadoop-client-runtime and hadoop-client-api + --> + <exclusion> + <groupId>org.apache.hadoop</groupId> + <artifactId>hadoop-auth</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpclient</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpcore</artifactId> + </exclusion> + <exclusion> + <groupId>com.nimbusds</groupId> + <artifactId>nimbus-jose-jwt</artifactId> + </exclusion> + <exclusion> + <groupId>net.minidev</groupId> + <artifactId>json-smart</artifactId> + </exclusion> + <exclusion> + <groupId>net.minidev</groupId> + <artifactId>accessors-smart</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerb-simplekdc</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerb-util</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>token-provider</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerb-common</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerb-crypto</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerby-util</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerb-common</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerby-pkix</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerby-asn1</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerb-core</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerby-config</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerby-xdr</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerb-identity</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerb-server</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerb-identity</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.kerby</groupId> + <artifactId>kerb-admin</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.curator</groupId> + <artifactId>curator-framework</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.curator</groupId> + <artifactId>curator-recipes</artifactId> + </exclusion> + <exclusion> + <groupId>commons-net</groupId> + <artifactId>commons-net</artifactId> + </exclusion> </exclusions> </dependency> <!-- Add optional runtime dependency on the in-development timeline server module @@ -663,11 +763,44 @@ <!-- keep optional runtime configuration out of the jar; downstream can provide --> <exclude>capacity-scheduler.xml</exclude> <exclude>krb5.conf</exclude> + <exclude>.keep</exclude> + </excludes> + </filter> + + <!-- remove .xsd from ehcache --> + <filter> + <artifact>org.ehcache</artifact> + <excludes> + <exclude>ehcache-107ext.xsd</exclude> + <exclude>ehcache-core.xsd</exclude> </excludes> </filter> + + <!-- remove utility classes which are not required from + dnsjava --> + <filter> + <artifact>dnsjava:dnsjava</artifact> + <excludes> + <excldue>dig*</excldue> + <exclude>jnamed*</exclude> + <exlcude>lookup*</exlcude> + <exclude>update*</exclude> + </excludes> + </filter> + </filters> + + <!-- relocate classes from mssql-jdbc --> <relocations> <relocation> + <pattern>microsoft/</pattern> + <shadedPattern>${shaded.dependency.prefix}.microsoft.</shadedPattern> + <excludes> + <exclude>**/pom.xml</exclude> + </excludes> + </relocation> + + <relocation> <pattern>org/</pattern> <shadedPattern>${shaded.dependency.prefix}.org.</shadedPattern> <excludes> |