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

yarn question

yarn question

Hi All,


If one submits a job to a Hadoop cluster without explicitly using Yarn (but for example, using Spark shell, Hive shell, HBase shell, Pig, MapReduce with hadoop command, Impala, via Hue interface,  etc.) is the job still scheduled and controlled by Yarn or not? Can one rely that everything goes via Yarn?


In Yarn can I partition my users into several queues with different priorities or different amount of resources allocated to each queue?


Thank you,




Re: yarn question

So jobs launched in YARN will run, well, in YARN.

Launching shells don't by themselves consist of jobs. It isn't until the user tells it to do something that would require a job. That job is then ran in YARN.

Each service/shell can be a bit tricky as well. For instance a Select * query in Hive does not launch a MR job. It reads the data directly from HDFS. A Select Count(*) does launch a MR job as now it needs to crunch the data to get the value (an exception is if stats are turned on). Impala is a caveat, by default queries ran against it, either from Hue or the shell, run against the impala daemons. It effectively is a MPP cluster that sits besides YARN and on top of HDFS. There is a service, Llama, that allows you to integrate Impala into YARN.