ishnagy commented on PR #6146:
URL: https://github.com/apache/hive/pull/6146#issuecomment-3508264703
```
diff --git a/ql/pom.xml b/ql/pom.xml
index 5927cc5fea..d6b402df56 100644
--- a/ql/pom.xml
+++ b/ql/pom.xml
@@ -304,6 +304,7 @@
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-yarn-registry</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
```
adding `hadoop-yarn-registry` as `hadoop-yarn-registry` provided fails for
me right away, at compiling `ql`.
```
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile (default-compile)
on project hive-exec: Compilation failure
[ERROR]
/Users/ishnagy/tmp/apache_hive.master/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionState.java:[21,45]
package org.apache.hadoop.registry.client.api does not exist
```
---
... adding it as an `optional` dep seems to be working along the
expectations though:
```
diff --git a/ql/pom.xml b/ql/pom.xml
index 5927cc5fea..6e96d425ec 100644
--- a/ql/pom.xml
+++ b/ql/pom.xml
@@ -304,6 +304,7 @@
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-yarn-registry</artifactId>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]