0% found this document useful (0 votes)
33 views4 pages

Loading Data Into Hbase Using Pig Scripts. Supported Versions Are

This document provides instructions for loading data from a text file into HBase using Pig scripts. It outlines downloading required versions of Hadoop, HBase, and Pig, loading user data from a text file into HDFS, exporting necessary jars, starting required processes, creating an HBase table, using Pig commands to load and store the data into HBase, and verifying the data was loaded correctly.

Uploaded by

sivaabhilash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views4 pages

Loading Data Into Hbase Using Pig Scripts. Supported Versions Are

This document provides instructions for loading data from a text file into HBase using Pig scripts. It outlines downloading required versions of Hadoop, HBase, and Pig, loading user data from a text file into HDFS, exporting necessary jars, starting required processes, creating an HBase table, using Pig commands to load and store the data into HBase, and verifying the data was loaded correctly.

Uploaded by

sivaabhilash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Loading Data Into HBase Using PIG Scripts.

Supported Versions are :

Hadoop version: hadoop-2.6.0

Hbase version: hbase-0.98.4-hadoop2-bin

Pig version: pig-0.14.0

1. Users.txt file contain detail of user_name,age,city

2. Load data into HDFS using put command.

3. Export jar files of HBASE to pig classpath

4. Start mysql, hbase and hbase shell.

Start hbase master and regionserver.


start zookeeper client

start hbase shell

5. Create table user with filed user_detail

6. Start pig grunt using pig command


7. Load the data into Pig using LOAD command
8. Using Store command transfer data to hbase
STORE User_data INTO hbase://user USING
org.apache.pig.backend.hadoop.hbase.HBaseStorage(user_detail:name,user_detail:age,u
ser_detail:city);

9. If command success than it show success message.

10. Now we can check the output in hbase using scan command.

You might also like