Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hello All, I know that Apache Pig can run in either local mode or mapreduce mode. I would like to know that should i start running Hadoop to run Apache Pig in any one of the modes (local/mapreduce)?

Highlighted

Hello All, I know that Apache Pig can run in either local mode or mapreduce mode. I would like to know that should i start running Hadoop to run Apache Pig in any one of the modes (local/mapreduce)?

Explorer
 
3 REPLIES 3

Re: Hello All, I know that Apache Pig can run in either local mode or mapreduce mode. I would like to know that should i start running Hadoop to run Apache Pig in any one of the modes (local/mapreduce)?

Contributor

Hi Saravanan, yes you can run Pig in local mode without hadoop, it will use the local file system and a single VM.

Highlighted

Re: Hello All, I know that Apache Pig can run in either local mode or mapreduce mode. I would like to know that should i start running Hadoop to run Apache Pig in any one of the modes (local/mapreduce)?

Explorer

My questions is that if i need to run Pig in mapreduce mode, should i start namenode, datanode, secondary namenode, jobtracker and tasktracker?

Highlighted

Re: Hello All, I know that Apache Pig can run in either local mode or mapreduce mode. I would like to know that should i start running Hadoop to run Apache Pig in any one of the modes (local/mapreduce)?

@saravanan Selvam If your cluster is running in pesudomode (Single node cluster) then there is no need to start hadoop. But if the cluster has multi nodes then you do need to start hadoop only then you will be able to access data through pig.So its also based on the cluster this can be decided. In general Local mode doesn'e need hadoop where as mapreduce mode you should start Hadoop service to run pig scripts in mr mode.

Don't have an account?
Coming from Hortonworks? Activate your account here