java.lang.IllegalArgumentException: 没有名为 default 的队列

java.lang.IllegalArgumentException: There is no queue named default

我正在尝试将数据加载到 pig 中并将相同的数据转储到控制台。我使用以下命令在 Cloudera 沙箱中没有任何错误。

raw_data = LOAD 'hdfs:/user/cloudera/sampledata' USING PigStorage(',') AS (
           custno:chararray,
           firstname:chararray,
           lastname:chararray,
           age:int,
           profession:chararray
);

dump raw_data;

它转储样本数据文件中的所有数据。

尝试使用以下命令在 MapR 集群中执行相同的操作。

raw_data = LOAD '/hdfspath/input' USING PigStorage(',') AS (
           custno:chararray,
           firstname:chararray,
           lastname:chararray,
           age:int,
           profession:chararray
);
dump raw_data;

出现以下错误。

(RemoteException): org.apache.hadoop.ipc.RemoteException: java.io.IOException: java.lang.IllegalArgumentException: There is no queue named default

ERROR org.apache.hadoop.ipc.RPC - FailoverProxy: Failing this Call: getQueueAdmins for error(RemoteException): org.apache.hadoop.ipc.RemoteException: java.io.IOException: java.lang.IllegalArgumentException: There is no queue named default
        at org.apache.hadoop.mapred.QueueManager.getQueueACL(QueueManager.java:413)
        at org.apache.hadoop.mapred.JobTracker.getQueueAdmins(JobTracker.java:5346)
        at sun.reflect.GeneratedMethodAccessor19.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.RPC$Server.call(RPC.java:993)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1326)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1322)
        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:1127)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1320)

ERROR 2997: Unable to recreate exception from backend error: org.apache.hadoop.ipc.RemoteException: java.io.IOException: java.lang.IllegalArgumentException: There is no queue named default
        at org.apache.hadoop.mapred.QueueManager.getQueueACL(QueueManager.java:413)
        at org.apache.hadoop.mapred.JobTracker.getQueueAdmins(JobTracker.java:5346)
        at sun.reflect.GeneratedMethodAccessor19.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.RPC$Server.call(RPC.java:993)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1326)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1322)
        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:1127)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1320)

        at org.apache.hadoop.ipc.Client.call(Client.java:1095)
        at org.apache.hadoop.ipc.Client.call(Client.java:1041)
        at org.apache.hadoop.ipc.RPC$FailoverInvoker.invoke(RPC.java:540)
        at org.apache.hadoop.mapred.$Proxy0.getQueueAdmins(Unknown Source)
        at org.apache.hadoop.mapred.JobClient.run(JobClient.java:939)
        at org.apache.hadoop.mapred.JobClient.run(JobClient.java:885)
        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:1127)
        at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:885)
        at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:859)
        at org.apache.hadoop.mapred.jobcontrol.Job.submit(Job.java:378)
        at org.apache.hadoop.mapred.jobcontrol.JobControl.startReadyJobs(JobControl.java:247)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.pig.backend.hadoop20.PigJobControl.mainLoopAction(PigJobControl.java:157)
        at org.apache.pig.backend.hadoop20.PigJobControl.run(PigJobControl.java:134)
        at java.lang.Thread.run(Thread.java:724)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.run(MapReduceLauncher.java:257)

请帮忙。

提前致谢。

如果您的调度程序创建了特定队列但未分配用户,并且提交作业的用户未指定任何队列名称,通常会发生这种情况。 如果它采用默认队列,并且没有使用它的权限,您可能会遇到此错误。你可以避免这个问题 导出 PIG_OPTS=”$PIG_OPTS -Dmapred.job.queue.name=我的队列” 要么 猪-Dmapreduce.job.queuename=$queue_name -f path/to/script.猪