Import uniontype data into test table with CSV file in hive_ After serializer, use select * from test_ An error occurred in the serializer
Error: Unrecognized column type: UNIONTYPE (state=,code=0)
Hive version: 2.3.9
After investigation, this is a bug that hive JDBC has solved in version 3.0.0 : HIVE-17259
I want to try to solve the bug without upgrading the version. Imagine using the bug repair code of version 3.0.0 in the source code of hive JDBC of version 2.3.9, that is, make the following modifications:
1. Find the corresponding version of hive JDBC source code on the Apache website and download it
Apache Downloads
2. Find jdbccolumn.java and modify it
Add two lines of code as follows:
} else if ("uniontype".equalsIgnoreCase(type)) {
return Type.UNION_TYPE;
3. Package and generate a new JDBC jar file and copy it to hive server
Navigate to the JDBC directory in CMD and use the MVN package command to package
After packaging, find hive-jdbc-2.3.9-standalone.jar and hive-jdbc-2.3.9.jar in the target directory under the JDBC directory, copy them to {$hive_home}/JDBC and {$hive_home}/lib directories respectively, and restart hiverver2:
Implementation after repair:
Read More:
- [Solved] Hive Error: FAILED: Execution Error, return code 3 from org.apache.hadoop.hive.ql.exec.mr.MapredLocalTask
- [Solved] bin/hive Startup Error: Operation category READ is not supported in state standby
- Hive Error: FAILED: RuntimeException Error loading hooks(hive.exec.post.hooks): java.lang.ClassNotFoundException: org.apache.atlas.hive.hook.HiveHook
- OpenCV(-206:Bad flag (parameter or structure field)) Unrecognized or unsupported array type [How to Solve]
- Hive: Hive partition sorting error [How to Solve]
- Initial installation of hive-2.1.0 startup error problem solution
- [Solved] Schema initialization FAILED Metastore state would be inconsistent
- Hive Statement Error During Execution: Error while processing statement: FAILED: Execution Error, return code 2 from o
- [Solved] Hive Warehouse error: com.google.common.base.Preconditions.checkArgument
- Hive 3.1.2 startup error reporting and resolution of guava version conflict
- Sqoop exports hive data to MySQL Error [How to Solve]
- HIVE Error: Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apac
- Centos7 hive started to report an error. There is no route to the host. The firewall has been closed
- [Solved] RuntimeError: Error(s) in loading state_dict for FasterRCNN: Missing key(s) in state_dict:……
- [Solved] RuntimeError: Error(s) in loading state_dict for Model: Missing key(s) in state_dict
- CDH restart hive error [How to Solve]
- [Solved] Hive execute insert overwrite error: could not be cleared up
- [Solved] NRM Error: error code: ‘err’_INVALID_ARG_Type ‘
- Hive ERROR Failed with exception java.io.IOException:java.lang.IllegalArgumentException
- [Solved] Hive tez due to: ROOT_INPUT_INIT_FAILURE java.lang.IllegalArgumentException: Illegal Capacity: -38297