For HBase Pig integration, you can refer to the below screenshots.
First, we have created an Hbase table and uploaded data into it.
![image](https://attachment.freshdesk.com/inline/attachment?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6NDA2MTI4Mzc4OSwiZG9tYWluIjoiZWR1cmVrYS5mcmVzaGRlc2suY29tIiwiYWNjb3VudF9pZCI6NDE0NTN9.A2spjrDkEuVy9TRftf9RXolflyTpBtXlxRrICZ4yycc)
Now, use the below command to transfer data from Hbase to Pig. Please refer to the below screenshot:
![image](https://attachment.freshdesk.com/inline/attachment?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6NDA2MTI4MzgwMywiZG9tYWluIjoiZWR1cmVrYS5mcmVzaGRlc2suY29tIiwiYWNjb3VudF9pZCI6NDE0NTN9.viGpaAnAaxWZMNMzk6iUyxaeS30BLRmCEHFvIXcmoxg)
Below is the output which you can view using the dump command.
![image](https://attachment.freshdesk.com/inline/attachment?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6NDA2MTI4MzgxMywiZG9tYWluIjoiZWR1cmVrYS5mcmVzaGRlc2suY29tIiwiYWNjb3VudF9pZCI6NDE0NTN9.4eNCEl1UgeV8PPMHCMuY8lsGlFBrRJ3z4e5QgT_Ohfw)
And for HBase Spark integration part, you can refer to the below link
https://hortonworks.com/blog/spark-hbase-dataframe-based-hbase-connector/