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.