forked from apache/ozone-site
-
Notifications
You must be signed in to change notification settings - Fork 0
HDDS-11931: Populate impala.md file under Integration section #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rnblough
wants to merge
1
commit into
HDDS-9225-website-v2
Choose a base branch
from
rnblough-patch-2
base: HDDS-9225-website-v2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,3 +1,88 @@ | ||||||
| --- | ||||||
| sidebar_label: Impala | ||||||
| --- | ||||||
|
|
||||||
| # Impala | ||||||
|
|
||||||
| **TODO:** File a subtask under [HDDS-9858](https://issues.apache.org/jira/browse/HDDS-9858) and complete this page or section. | ||||||
| Starting with version **4.2.0**, Apache Impala provides full support for querying data stored in Apache Ozone. To utilize this functionality, ensure that your Ozone version is **1.4.0** or later. | ||||||
|
|
||||||
| ## Supported Access Protocols | ||||||
|
|
||||||
| Impala supports the following protocols for accessing Ozone data: | ||||||
|
|
||||||
| * `ofs` | ||||||
| * `s3a` | ||||||
|
|
||||||
| > **Note:** | ||||||
| > The `o3fs` protocol is **NOT** supported by Impala. | ||||||
|
|
||||||
| ## Supported Replication Types | ||||||
|
|
||||||
| Impala is compatible with Ozone buckets configured with either: | ||||||
|
|
||||||
| * **RATIS** (Replication) | ||||||
| * **Erasure Coding** | ||||||
|
|
||||||
| ## Querying Ozone Data with Impala | ||||||
|
|
||||||
| Impala provides two approaches to interact with Ozone: | ||||||
|
|
||||||
| 1. Managed Tables | ||||||
| 2. External Tables | ||||||
|
|
||||||
| ### Managed Tables | ||||||
|
|
||||||
| If the Hive Warehouse Directory is located in Ozone, you can execute Impala queries without any changes, treating the Ozone file system like HDFS. | ||||||
|
|
||||||
| **Example:** | ||||||
|
|
||||||
| ```sql | ||||||
| CREATE DATABASE d1; | ||||||
|
|
||||||
| CREATE TABLE t1 (x INT, s STRING); | ||||||
| ``` | ||||||
|
|
||||||
| The data will be stored under the Hive Warehouse Directory path in Ozone. | ||||||
|
|
||||||
| #### Specifying a Custom Ozone Path | ||||||
|
|
||||||
| You can create managed databases, tables, or partitions at a specific Ozone path using the `LOCATION` clause. | ||||||
|
|
||||||
| **Example:** | ||||||
|
|
||||||
| ```sql | ||||||
| CREATE DATABASE d1 LOCATION 'ofs://ozone1/vol1/bucket1/d1.db'; | ||||||
|
|
||||||
| CREATE TABLE t1 LOCATION 'ofs://ozone1/vol1/bucket1/table1'; | ||||||
| ``` | ||||||
|
|
||||||
| ### External Tables | ||||||
|
|
||||||
| You can create an external table in Impala to query Ozone data. | ||||||
|
|
||||||
| **Example:** | ||||||
|
|
||||||
| ```sql | ||||||
| CREATE EXTERNAL TABLE external_table ( | ||||||
| id INT, | ||||||
| name STRING | ||||||
| ) LOCATION 'ofs://ozone1/vol1/bucket1/table1'; | ||||||
| ``` | ||||||
|
|
||||||
| With external tables: | ||||||
|
|
||||||
| * The data is expected to be created and managed by another tool. | ||||||
| * Impala queries the data as-is. | ||||||
| * The metadata is stored under the external warehouse directory. | ||||||
|
|
||||||
| > **Note:** | ||||||
| > Dropping an external table in Impala does not delete the associated data. | ||||||
|
|
||||||
| ### Using the S3A Protocol | ||||||
|
|
||||||
| In addition to `ofs`, Impala can access Ozone via the S3 Gateway using the S3A file system. For more details, refer to: | ||||||
|
|
||||||
| * [The S3 Protocol](https://www.google.com/search?q=../01-client-interfaces/03-s3.md) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The link for 'The S3 Protocol' is currently broken as it points to a Google search URL instead of the internal documentation page. It should be updated to a relative path pointing to the S3 API documentation.
Suggested change
|
||||||
| * The [Hadoop S3A documentation](https://hadoop.apache.org/docs/stable/hadoop-aws/tools/hadoop-aws/index.html) | ||||||
|
|
||||||
| For additional information, consult the Apache Impala User Documentation on [Using Impala with Apache Ozone Storage](https://impala.apache.org/docs/build/html/topics/impala_ozone.html). | ||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To improve discoverability and provide more context for readers, consider linking "RATIS" and "Erasure Coding" to their respective documentation pages. This will help users who are unfamiliar with these terms find information more easily.