WebHosting

Tuesday, March 27, 2012

Starting apache pig

We can start pig in two ways:

1. Local mode : 
pig will operate in stand alone local mode and all files will be loaded and
created on local drive folder.
To start: move to your pig folder and type :

bin/pig -x local       //for local mode


2. Distributed mode : 
pig will operate in distributed mode and all files will be loaded and created on hdfs drive folder.

bin/pig -x mapreduce      //for distributed mode

So if you start pig in this mode all the files you are dealing with or giving refrence of should be there on the hdfs file system, which you can create or copy using hadoop shell commands.
if files are not present the pig will yield file not found error.

No comments:

Post a Comment

Thank you for Commenting Will reply soon ......

Featured Posts

Error Message in DBeaver connecting using jdbc: Public Key Retrieval is not allowed

Fixing “Public Key Retrieval is not allowed” Error in MySQL with DBeaver   If you are trying to connect MySQL 8+ with DBeaver and suddenly...