HIVE Common Errors

Source: Internet
Author: User

Refer to the previous Hive test step one by one execution.

hive> drop table Sansom;
Failed:error in Metadata:org.apache.thrift.transport.TTransportException
failed:execution Error, return code 1 from Org.apache.hadoop.hive.ql.exec.DDLTask

 

If
Failed:error in Metadata:javax.jdo.JDODataStoreException:Error (s) appears were Found while auto-creating/validating the datastore for classes. The errors is printed in the log, and is attached to this exception.
Nestedthrowables:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:Specified Key was too long; Max Key Length is bytes
failed:execution Error, return code 1 from Org.apache.hadoop.hive.ql.exec.DDLTask

or
Failed:error in Metadata:metaexception (Message:got exception: org.apache.thrift.transport.TTransportException null)
Failed:execution Error, return code 1 from Org.apache.hadoop.hive.ql.exec.DDLTask

The above error, mainly in the select operation, the drop operation, will be an error.

For such errors, you can modify the Hive database encoding:

mysql> ALTER DATABASE hivedb character set latin1;

Then restart hive Metastore and Hive server.

MySQL database encoding is now best set to latin1, otherwise the use of hive will appear inexplicable problems

How or not, you can use

debug command:

hive-hiveconf hive.root.logger=debug,console

Get the wrong line!

HIVE Common Errors

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.