Home >> Big Data Hadoop >> Hive Internal Table in Big Data Hadoop

Hive Internal Table in Big Data Hadoop

hive> CREATE TABLE IF NOT EXISTS emp ( id int, name String,sal String, destination String)COMMENT ‘Employee details’ ROW FORMAT DELIMITED FIELDS TERMINATED BY ‘\t’ LINES TERMINATED BY ‘\n’ STORED AS TEXTFILE;

Load Data into Hive table:

hive> LOAD DATA LOCAL INPATH '/home/user/sample.txt' OVERWRITE INTO TABLE emp;

OK

Time taken: 15.905 seconds

hive>

Post Your Comment

Next Questions
Drawback of Hive Internal/Managed Table
HIve External Table
Hive DDL
Hive CLI Options
Hive shell commands
Hive Logging & Resources
Hive Types Of Joins
Hive Joins
Hive Joins cont
Hive Built-in Operators
Hive Data Types
Hive Built-in Functions
Hive Explode
Hive SORT BY vs ORDER By
HIve DISTRIBUTE BY vs CLUSTER BY
Hive HUE Editor
Hive vs Impala
Hive Data & Schema
Hive Partitioning
Hive Bucketing
Hive File Format
Hive Engine
Hive Vectorization
Hive User Defined Function
Hive How to Write a User Defined Function

Copyright ©2022 coderraj.com. All Rights Reserved.