You are on page 1of 6

Experiment Title-9

Student Name: Ujjwal Kumar Singh UID: 20MCA1166


Branch: MCA Section/Group:2/A
Semester: 2nd Date of Performance: 26-04-2021
Subject Name:Dabi Subject Code: 20CAP-658

1. Task to be done: Write a program to count number of words in a


file using Hive

2. Program:

To create the internal table


create file4.txt and show the file from cat.
He is used to handle database or queries .

Load the data into internal table


Display the content of the table
Hive>select * from experi9;
we are not specifying the location at the time of table creation, we can
load the data manually
Learning outcomes (What I have learnt):

1. I have learned how to count word in file by databases.

2. I have learned how to work other terminal and create


database on ther terminal.

3. I have learned how to Create a temp table with a single


column named sentence of data type array

4. How to input is text files and the output is text files

Evaluation Grid (To be created as per the SOP and Assessment guidelines
by the faculty):
Sr. Parameters Marks Obtained Maximum Marks
No.
1. Worksheet 10
2. Pre Lab 5
3. Post Lab 5

You might also like