qris commented on code in PR #4973:
URL: https://github.com/apache/hive/pull/4973#discussion_r2263136648
##########
streaming/pom.xml:
##########
@@ -126,19 +126,43 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.hive</groupId>
+ <artifactId>hive-exec</artifactId>
+ <version>${project.version}</version>
+ <type>test-jar</type>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-standalone-metastore-server</artifactId>
<version>4.1.0-SNAPSHOT</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.hive</groupId>
+ <artifactId>hive-common</artifactId>
+ <version>${project.version}</version>
+ <classifier>tests</classifier>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapreduce-client-jobclient</artifactId>
<version>${hadoop.version}</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.tez</groupId>
+ <artifactId>tez-mapreduce</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tez</groupId>
+ <artifactId>tez-dag</artifactId>
+ <scope>test</scope>
+ </dependency>
Review Comment:
I just found this commit because I'm experimenting with Hive and I couldn't
insert any data into a new instance because tez is now the default execution
engine, but Hive doesn't ship with the required jars and the installation
instructions make no mention of the need to install them, or how, so I get this
same error message:
```
Caused by: java.lang.NoClassDefFoundError:
org/apache/tez/mapreduce/hadoop/InputSplitInfo
```
In the end I followed the instructions
[here](https://hive.apache.org/docs/latest/manual-installation_283118363/#tez)
but using a tez binary distribution tarball instead of compiling it, which
seems to partly work but Hive seems to be stuck on this instead:
```
INFO : Tez session hasn't been created yet. Opening session
... <very long wait>
Error: Error while compiling statement: FAILED: Execution Error, return code
1 from org.apache.hadoop.hive.ql.exec.tez.TezTask. Cannot invoke
"org.apache.hadoop.yarn.api.records.ApplicationId.toString()" because
"this.sessionAppId" is null; Query ID:
chris_20250808150149_4ba0ae15-fb90-4253-bc14-cbbf5c6eb05d (state=08S01,code=1)
0: jdbc:hive2://localhost:10000> INSERT INTO TABLE students (name) VALUES
('fred flintstone');
```
So I'm reverting to mr. Please could someone update the installation
instructions?
--
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]