Loading data into a Pig script is accomplished through the use of a load statement, which tells Pig where to ingest data from and how to treat that data. Mortar's Load Statement Generator is a tool that makes it easy to generate Pig load statements for common data formats (JSON, XML, CSV, and MongoDB). Details on loading other data types are available here. Just set the parameters below to match your data, and the tool auto-generates a load statement for you.
Begin by setting the Input Path, which is where you will load your data from.