The Apache Pig LOAD operator is utilized to load the data from the file system.
Given below is the syntax of the LOAD operator.
Syntax
LOAD 'info' [USING FUNCTION] [AS SCHEMA];
Here,
Example
grunt> customers = LOAD 'hdfs://localhost:9000/pig_data/customers.txt' USING PigStorage(','>
as (id:int, name:chararray, age:int, address:chararray, salary:int>
;