title: How to pass the Hadoop job queue name in jpmml cascading?
body: <p>I am trying to execute pmml model using cascading framework in jpmml cascading library provided in this project <strong><em><a href="https://github.com/jpmml/jpmml-cascading" rel="nofollow">https://github.com/jpmml/jpmml-cascading</a></em></strong></p>
  
  <p>I have followed all the steps and was able to generate the <strong>example-1.2-SNAPSHOT-job.jar</strong> using mvn clean install command.</p>
  
  <p>However when I am executing the same jar using the below command :</p>
  
  <pre><code>hadoop jar example-1.2-SNAPSHOT-job.jar /tmp/cascading/model.pmml file:///tmp/cascading/input.csv file:///tmp/cascading/output
  </code></pre>
  
  <p>I am getting below <strong><em>exceptions</em></strong> for not having the rights to submit the job on <strong><em>DEFAULT</em></strong> queue as default queue in our hadoop cluster is blocked for admin purpose only, normal user can not run the hadoop job without providing the queue name.</p>
  
  <pre><code>Exception:
  16/01/06 04:41:37 ERROR ipc.FailoverRPC: FailoverProxy: Failing this Call: submitJob for error(RemoteException): org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): **User test cannot perform operation SUBMIT_JOB on queue default.**
   Please run "hadoop queue -showacls" command to find the queues you have access to .
      at org.apache.hadoop.mapred.ACLsManager.checkAccess(ACLsManager.java:179)
      at org.apache.hadoop.mapred.ACLsManager.checkAccess(ACLsManager.java:136)
      at org.apache.hadoop.mapred.ACLsManager.checkAccess(ACLsManager.java:113)
      at org.apache.hadoop.mapred.JobTracker.submitJob(JobTracker.java:4524)
      at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.hadoop.ipc.WritableRpcEngine$Server$WritableRpcInvoker.call(WritableRpcEngine.java:481)
      at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:928)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2000)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1996)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:415)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1566)
      at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1994)
  </code></pre>
  
  <p>I am not able to see where to provide the hadoop job queue in the repository.</p>
  
  <p>Can anyone suggest how can I pass the hadoop job queue name?</p>
  
  <p>Note:</p>
  
  <blockquote>
    <ol>
    <li><p>I have tried to pass the property mapred.job.queue.name passing the queue name but still job is showing same error through command line
    and in the code itself.</p></li>
    <li><p>I have also tried to run the job using oozie shell action node and passing the queue name there in application workflow but I believe
    that would be applicable for the oozie job only not the hadoop jobs
    which gets executed through shell action node.</p></li>
    </ol>
  </blockquote>