An error occurred while executing the SQL client in hive. The hivesql Client

Source: Internet
Author: User
Tags sql client

An error occurred while executing the SQL client in hive. The hivesql Client

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exe c. DDLTask. java. lang. RuntimeException: Unable to instantiate org. apache. hadoop. hive. metastore. HiveMetaStoreClient


Hive metadata repository not started: hive -- service metastore


An exception occurred while executing the SQL statement in java. After capturing and processing the SQL statement, how can the program continue to execute it below?

Result. next () will only cause exceptions in two situations: first, the database itself is faulty, and second, it has been disabled.
In your program, the preceding access is correct to prevent exceptions from affecting others. Therefore, the first cause of the exception is impossible. But you won't take the initiative to shut down the database in another thread, right? Therefore, the second cause of the exception cannot occur.
Therefore, this exception is captured, so you don't have to perform any processing. You just need to proceed to the next step.
While (rs. next ()){
Try {
//..........
}
Catch (SQLException ex ){}
}

Hive SQL connects two tables to the third table

SELECT a. * FROM a JOIN B ON (a. id = B. id );
We recommend that you check the official wiki:
Cwiki.apache.org/..w.joins

Related Article

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.