Return-Path: Delivered-To: apmail-mahout-user-archive@www.apache.org Received: (qmail 57232 invoked from network); 29 Nov 2010 06:34:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 06:34:28 -0000 Received: (qmail 21005 invoked by uid 500); 29 Nov 2010 06:34:27 -0000 Delivered-To: apmail-mahout-user-archive@mahout.apache.org Received: (qmail 20892 invoked by uid 500); 29 Nov 2010 06:34:27 -0000 Mailing-List: contact user-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mahout.apache.org Delivered-To: mailing list user@mahout.apache.org Received: (qmail 20884 invoked by uid 99); 29 Nov 2010 06:34:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 06:34:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of arnkrishn@gmail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-iw0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 06:34:19 +0000 Received: by iwn34 with SMTP id 34so14708iwn.1 for ; Sun, 28 Nov 2010 22:33:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=bqm92c+Gj4xQYbB+dbkpUJ48Gf2ShpPQ+XRBB6eqVkE=; b=RlNPeJmfoo4BNH+BhXWuHZjB3ZPXkKTMTNXoNiGbWYVOlKsI003JwoDtA20ytQVAF8 s/8kFpzBxz8LXsKr4LWDZsoeILwmLv8QjQwahIr0JsjtGZEDXVbCqdWPmUA1tBsXzmFh OIB/9bfoJCP8J2E9GUA+Qf2gOYEtwCHO03GR0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=qECMoQNUmFLt4xzR3/2lId6ZWIRx+g1SyzS3ugaFOBJxp58a2mll7Oh5p2R2BA+0ER l+OwedP5bZBWzAqtenAhb7yjcEIYDmwAObApaZP4uWKlpRN2BBoJYD+JxTOxkuhPCBVQ wGaSMx2ZXH86AMSELfYLNAxxJkFjzx3ltuh9c= Received: by 10.231.14.10 with SMTP id e10mr5125132iba.132.1291012436143; Sun, 28 Nov 2010 22:33:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.197.163 with HTTP; Sun, 28 Nov 2010 22:33:36 -0800 (PST) From: Arun A K Date: Sun, 28 Nov 2010 22:33:36 -0800 Message-ID: Subject: Mahout-Twenty Newsgroups Classification Example: Unable to set Hadoop Job Queue To: user@mahout.apache.org Content-Type: multipart/alternative; boundary=002215046a43a832b504962b4134 X-Virus-Checked: Checked by ClamAV on apache.org --002215046a43a832b504962b4134 Content-Type: text/plain; charset=ISO-8859-1 Greetings I am a newbie to Mahout and installed it using the source from the trunk as recommended in https://cwiki.apache.org/confluence/display/MAHOUT/BuildingMahout The installation worked good and I jumped onto the Twenty Newsgroups example listed at https://cwiki.apache.org/confluence/display/MAHOUT/Twenty+Newsgroups I was able to train the data set, load it to HDFS and went on to execute the following command to train the classifier: $MAHOUT_HOME/bin/mahout trainclassifier -i 20news-input -o newsmodel -type bayes -ng 3 -source hdfs It failed with the error message: *Exception in thread "main" org.apache.hadoop.ipc.RemoteException: java.io.IOException: Queue "default" does not exist* * at org.apache.hadoop.mapred.JobTracker.submitJob(JobTracker.java:3680)* * at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)* * at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) * * at java.lang.reflect.Method.invoke(Method.java:597)* * at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:523)* * at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1301)* * at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1297)* * 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:1062) * * at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1295)* * * * at org.apache.hadoop.ipc.Client.call(Client.java:951)* * at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:223)* * at org.apache.hadoop.mapred.$Proxy6.submitJob(Unknown Source)* * at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:818)* * at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:752)* * 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:1062) * * at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:752)* * at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:726) * * at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1156)* * at org.apache.mahout.classifier.bayes.mapreduce.common.BayesFeatureDriver.runJob(BayesFeatureDriver.java:63) * * at org.apache.mahout.classifier.bayes.mapreduce.bayes.BayesDriver.runJob(BayesDriver.java:44) * * at org.apache.mahout.classifier.bayes.TrainClassifier.trainNaiveBayes(TrainClassifier.java:54) * * at org.apache.mahout.classifier.bayes.TrainClassifier.main(TrainClassifier.java:162) * * 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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68) * * at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)* * at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:182)* * 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:156)* On our Hadoop clusters we submit jobs to queues. Is there a way to set mapred.job.queue.name to a job queue of my choice? I tried to do that in core/src/main/java/org/apache/mahout/common/HadoopUtil.java using conf.set(" mapred.job.queue.name","myQueue");, did a re-compile but it still fails. It would really help if some one can point me to the file where I can make the change to supply the queue name. Thanks much. Regards Arun A K --002215046a43a832b504962b4134--