Using Hue to create a table from an Amazon S3 file streamlines the process.
-
Go to the Metastore Manager by clicking
.
-
Create a new table from a file by clicking .
-
Enter a Table Name such as
"earthquakes".
-
Browse for the Input Directory,
s3a://quakes/input/
, and click Select
this folder.
-
Select Create External Table from the Load
Data menu and click Next.
-
Delimit by Comma(,) and click Next.
-
Click Create Table.
-
Click the Browse Data icon to automatically generate a
SELECT
query in the Hive
editor:
SELECT * FROM `default`.`earthquakes` LIMIT 10000;