Skip to content

Instantly share code, notes, and snippets.

View Sundar1906's full-sized avatar

Lead Data Engineer | Sundarraj Kumaresan Sundar1906

View GitHub Profile
@Sundar1906
Sundar1906 / WordCount.hive
Created May 19, 2018 17:07
WordCount in Hive Query
CREATE TABLE Wcount(words STRING);
LOAD DATA LOCAL INPATH '/home/skumares/InputData.txt' OVERWRITE INTO TABLE Wcount;
Select wc,count(*) from(Select explode(split(words,' ')) from Wcount) p group by wc;