Execute the following SQL on hive:
Select a.product_id, a.merchant_id, b.category_id from Pm_info a join product B on (a.product_id=b.id) where a.is_deleted= 0 and A.product_is_gift=0 and a.can_sale=1 and A.can_show=1 and B.is_deleted=0 and b.product_is_gift=0;
An error occurred with the following error:
Java.io.IOException:Failed to run Job:org.apache.hadoop.security.AccessControlException:User PMS cannot submit applic ations to queue Root.defaultat Org.apache.hadoop.mapred.YARNRunner.submitJob (yarnrunner.java:300) at Org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal (jobsubmitter.java:432) at Org.apache.hadoop.mapreduce.job$10.run (job.java:1295) at Org.apache.hadoop.mapreduce.job$10.run (Job.java:1292) at Java.security.AccessController.doPrivileged (Native Method) at Javax.security.auth.Subject.doAs (subject.java:396) At Org.apache.hadoop.security.UserGroupInformation.doAs (usergroupinformation.java:1548) at Org.apache.hadoop.mapreduce.Job.submit (job.java:1292) at Org.apache.hadoop.mapred.jobclient$1.run (Jobclient.java : 562) at Org.apache.hadoop.mapred.jobclient$1.run (jobclient.java:557) at Java.security.AccessController.doPrivileged (Native Method) at Javax.security.auth.Subject.doAs (subject.java:396) At Org.apache.hadoop.security.UserGroupInformation.doAs (usergroupinformation.java:1548) at Org.apache.hadoop.mapred.JobClient.submitJobInternal (jobclient.java:557) at Org.apache.hadoop.mapred.JobClient.submitJob (jobclient.java:548) at Org.apache.hadoop.hive.ql.exec.ExecDriver.execute (execdriver.java:448) at Org.apache.hadoop.hive.ql.exec.MapRedTask.execute (mapredtask.java:138) at Org.apache.hadoop.hive.ql.exec.Task.executeTask (task.java:138) at Org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential (taskrunner.java:57) at Org.apache.hadoop.hive.ql.Driver.launchTask (driver.java:1352) at Org.apache.hadoop.hive.ql.Driver.execute ( driver.java:1138) at Org.apache.hadoop.hive.ql.Driver.run (driver.java:951) at ORG.APACHE.HADOOP.HIVE.CLI.CLIDRIVER.PROCESSLOCALCMD (clidriver.java:259) at ORG.APACHE.HADOOP.HIVE.CLI.CLIDRIVER.PROCESSCMD (clidriver.java:216) at Org.apache.hadoop.hive.cli.CliDriver.processLine (clidriver.java:412) at Org.apache.hadoop.hive.cli.CliDriver.run (clidriver.java:755) at Org.apache.hadoop.hive.cli.CliDriver.main (clidriver.java:613) at Sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:39) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (DELEGATINGMETHODACCESSORIMPL.JAVA:25) at Java.lang.reflect.Method.invoke (method.java:597) at Org.apache.hadoop.util.RunJar.main (runjar.java:212) Job Submission failed with exception ' Java.io.IOException (failed to run job: Org.apache.hadoop.security.AccessControlException:User PMS cannot submit applications to queue Root.default) ' FAILED: Execution Error, return code 1 from Org.apache.hadoop.hive.ql.exec.MapRedTask
Cause analysis: Executed SQL statement contains where condition, join connection, will execute MapReduce task to execute, shop 1th new cluster's mapreduce contains two queues, One is the Root.default queue, one is the PMS queue, and if you do not specify which queue to commit to, Hadoop submits the job to the default Root.default queue, but the cluster sets the job to be accepted by the MapReduce PMS queue, so it is submitted to Root.default Queue tasks are all called back
Solution (Specify which MapReduce queue the job submits to, execute in the shell):
Hive-e "Set Mapred.job.queue.name=pms;select a.product_id, a.merchant_id, b.category_id from Pm_info a join product B on (a.product_id=b.id) where a.is_deleted=0 and a.product_is_gift=0 and a.can_sale=1 and A.can_show=1 and B.is_deleted=0 and b.product_is_gift=0; "
Job submission failed with exception ' Java.io.IOException