Creating an Ozone-based external table
You use the LOCATION clause in the CREATE EXTERNAL TABLE statement to create an external table having source data in Ozone.
- If you are running an insecure cluster, ensure that you set up the necessary policies and permissions in Ranger to give user access to Hive external files in Ozone.
- You must have created a volume and bucket in Ozone. For
example:
ozone sh volume create vol1 ozone sh bucket create vol1/bucket1
- It is recommended that you set certain Hive configurations before querying Hive tables in Ozone.