Find the view created by hive

Source: Internet
Author: User

The current version of Hive generally supports view operations, but only supports logical views and does not support physical views, so views created under the Hive Shell are not available in hive's Data Warehouse directory, but can be seen in the MySQL metabase.

For example, the following hive creates a view: Name_classnum

How to find:

1 First determine that hive uses MySQL storage metadata (refer to Hive,mysql installed blog)

2 link MySQL


3. Hive using Hive;


4 Show details of TBLs


5. Find the View:


The view is now found.

According to this, you can see that the TBLs table stores a lot of information.

TBLs: Stores information about a table; DBS: Stores information about a database.

The Tbls:tbl_type field indicates whether the table created on the hive side is a managed table or an external table. You can view the following:


You can see that the managed table on the hive side is six and a view. Also on the hive side you can view:

Matches exactly.


Find the view created by hive

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.