Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the minor problems encountered in the use of Hive

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you what are several minor problems encountered in the use of Hive, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article. Without saying much, let's take a look at it.

1. Use commands such as show tables; in Hive to report an error: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes

Solution: execute alter database hive character set latin1 in the hive database in mysql

Change the character set of the hive Metabase and the problem can be solved! But at this time, if you build a table with Chinese in it, you will make a mistake.

2. Sqoop cannot import data into Hive. Error: Warning: / usr/lib/hbase does not exist! HBase imports will fail. Please set $HBASE_HOME to the root of your HBase installation.

Solution: just remove the configuration of HBase and ZooKeeper from the configuration file.

Remove HBASE and ZOOKEEPER from SQOOP_HOME/bin/configure-sqoop.

3. If the data Times is wrong in Sqoop and the prompt file already exists, it must exist at this time. You can look in HDFS. There is usually one in the / user/$ {user_name} directory.

If the-- create-hive-table option is used, both the file and the table must be cleared.

4. When LOAD, be sure to specify the data type, otherwise the default ByteArray cannot be converted to String5. The jdbc driver forgot to copy to the lib directory

6. Log at show tables: MetaException (message:Version information not found in metastore. )

Set hive.metastore.schema.verification to false

Hive.metastore.schema.verification false above are some of the minor problems encountered in the use of Hive. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report