Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unable to execute hive query #4656

Open
Soumiks320 opened this issue Dec 4, 2024 · 2 comments
Open

[Bug]: Unable to execute hive query #4656

Soumiks320 opened this issue Dec 4, 2024 · 2 comments

Comments

@Soumiks320
Copy link

Apache Hop version?

2.8.0

Java version?

java11

Operating system

Windows

What happened?

We are encountering an issue while performing ElasticSearch (ES) synchronization with Hive using the Hop service. The Hive query executes successfully when run directly through Hive, but the same query fails when executed via the Hop service.

This behavior is blocking our workflow, and we need assistance to resolve it.

Exception in application logs
2024-11-29 04:42:21,034 WARN [main] org.apache.hadoop.mapred.YarnChild:187 Exception running child : java.io.IOException: Cannot create an instance of InputSplit class = org.elasticsearch.hadoop.hive.EsHiveInputFormat$EsHiveSplit:Class org.elasticsearch.hadoop.hive.EsHiveInputFormat$EsHiveSplit not found
at org.apache.hadoop.hive.ql.io.HiveInputFormat$HiveInputSplit.readFields(HiveInputFormat.java:179)
at org.apache.hadoop.io.serializer.WritableSerialization$WritableDeserializer.deserialize(WritableSerialization.java:71)
at org.apache.hadoop.io.serializer.WritableSerialization$WritableDeserializer.deserialize(WritableSerialization.java:42)
at org.apache.hadoop.mapred.MapTask.getSplitDetails(MapTask.java:373)
at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:433)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:344)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:177)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1926)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:171)
Caused by: java.lang.ClassNotFoundException: Class org.elasticsearch.hadoop.hive.EsHiveInputFormat$EsHiveSplit not found
at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2332)
at org.apache.hadoop.hive.ql.io.HiveInputFormat$HiveInputSplit.readFields(HiveInputFormat.java:175)
... 10 more

Issue Priority

Priority: 0

Issue Component

Component: Hop Server

@github-actions github-actions bot added P0 General Outage Hop Server labels Dec 4, 2024
@hansva hansva added P2 Default Priority and removed P0 General Outage labels Dec 4, 2024
@Soumiks320
Copy link
Author

synchronization of data was done successfully
while fetch the data from that particular table with simple select query is working
apart from simple select query rest are not working like count(id), UNION, ...
for that we are getting the same exception

@bamaer
Copy link
Contributor

bamaer commented Dec 4, 2024

Caused by: java.lang.ClassNotFoundException: Class org.elasticsearch.hadoop.hive.EsHiveInputFormat$EsHiveSplit not found

try adding the correct jar from maven to the classpath (e.g. lib/core)

btw, Apache Hop 2.8.0 is almost a year old. you might want to consider upgrading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants