- Big Data Analytics with Hadoop 3
- Sridhar Alla
- 118字
- 2021-06-25 21:26:11
Creating a table
Once we have created a database, we are ready to create a table in the database. The table creation is syntactically similar to most RDBMS (database systems such as Oracle, MySQL):
create external table OnlineRetail (
InvoiceNo string,
StockCode string,
Description string,
Quantity integer,
InvoiceDate string,
UnitPrice float,
CustomerID string,
Country string
) ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
LOCATION '/user/normal';
The following is the hive console and what it looks like:

We will not get into the syntax of query statements, rather, we will discuss how to improve the query performance significantly using the stinger initiative as follows:
select count(*) from OnlineRetail;
The following is the hive console showing the query execution:

推薦閱讀
- 21天學通PHP
- 控制與決策系統仿真
- 圖解PLC控制系統梯形圖和語句表
- JavaScript典型應用與最佳實踐
- Learn CloudFormation
- MATLAB/Simulink權威指南:開發環境、程序設計、系統仿真與案例實戰
- Excel 2007技巧大全
- LMMS:A Complete Guide to Dance Music Production Beginner's Guide
- 學練一本通:51單片機應用技術
- 步步驚“芯”
- EJB JPA數據庫持久層開發實踐詳解
- 系統安裝、維護與數據備份技巧
- Microsoft Power BI Complete Reference
- Data Science with Python
- 網頁配色萬用寶典