question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[SUPPORT] Compile hudi master with hive version 2.1.1 error

See original GitHub issue

Tips before filing an issue

  • Have you gone through our FAQs?

  • Join the mailing list to engage in conversations and get faster support at dev-subscribe@hudi.apache.org.

  • If you have triaged this as a bug, then file an issue directly.

Describe the problem you faced

Compile hudi master with hive version 2.2.1 error

To Reproduce

Steps to reproduce the behavior:

  1. pull hudi master branch
  2. compile it command:
mvn clean package -DskipTests -Drat.skip=true -Pflink-bundle-shade-hive2,include-flink-sql-connector-hive -Dhadoop.version=3.0.0 -Dhive.version=2.1.1

Expected behavior

Compile hudi master with hive version 2.2.1 error

Environment Description

  • Hudi version : master

  • Spark version :

  • Hive version : 2.1.1

  • Hadoop version :3.0.0

  • Storage (HDFS/S3/GCS…) : hdfs

  • Running on Docker? (yes/no) : no

Additional context

use default hive version package, when sync hudi metadata to hive, will throw hive “Required field ‘client_protocol’ is unset!” exception, and sync fail

Stacktrace

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.462 s
[INFO] Finished at: 2021-08-03T19:15:30+08:00
[INFO] Final Memory: 119M/1420M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project hudi-hadoop-mr: Compilation failure
[ERROR] /home/wuxu/git/hudi/hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/hive/HoodieCombineHiveInputFormat.java:[32,37] cannot find symbol
[ERROR] symbol:   class StringInternUtils
[ERROR] location: package org.apache.hadoop.hive.common
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hudi-hadoop-mr

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
danny0405commented, Aug 25, 2021

You only need to package the flink bundle jar with hive 2.1.1, there is no need to package the mr-bundle first.

0reactions
xushiyancommented, Oct 25, 2021

Close due to inactive

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SUPPORT] Compile hudi master with hive version 2.2.1 error
[GitHub] [hudi] springMoon opened a new issue #3392: [SUPPORT] Compile ... Hudi version : master * Spark version : * Hive version :...
Read more >
[SUPPORT] Hive sync action failed when using spark-sql #5503
When I set hoodie.metadata.enable=false, hive sync action will be success. ... Add the stacktrace of the error. ... Caused by: java.lang.
Read more >
Troubleshooting - Apache Hudi
This occurs because HiveSyncTool currently supports only few compatible data type conversions. Doing any other incompatible change will throw this exception.
Read more >
Package List — Spack 0.20.0.dev0 documentation
Versions : master, 2.2.0, 2.1.2, 2.1.1, 2.1.0, 2.0.1, 2.0.0, 1.3.1, 1.3.0, 1.2.3, 1.2.2, 1.1.0; Build Dependencies: cmake, ninja, blas, lapack, mpi, python ...
Read more >
Unable to infer schema when loading Parquet file
This error usually occurs when you try to read an empty directory as parquet. Probably your outcome Dataframe is empty.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found