Configuring tPigLoad - 7.2

Pig

author
EnrichVersion
7.2
task

Procedure

  1. Double-click tPigLoad to open its Component view.
  2. Click the button next to Edit schema to open the schema editor.
  3. Click the button twice to add two rows and name them Name and State, respectively.
  4. Click OK to validate these changes and accept the propagation prompted by the pop-up dialog box.
  5. In the Mode area, select Map/Reduce because the Hadoop to be used in this scenario is installed in a remote machine. Once selecting it, the parameters to be set appear.
  6. In the Distribution and the Version lists, select the Hadoop distribution to be used.
  7. In the Load function list, select PigStorage
  8. In the NameNode URI field and the Resource Manager field, enter the locations of the NameNode and the ResourceManager to be used for Map/Reduce, respectively. If you are using WebHDFS, the location should be webhdfs://masternode:portnumber; WebHDFS with SSL is not supported yet.
  9. In the Input file URI field, enter the location of the data to be read from HDFS. In this example, the location is /user/ychen/raw/NameState.csv.
  10. In the Field separator field, enter the semicolon ;.