Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 54368 invoked from network); 11 Jun 2008 17:38:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2008 17:38:00 -0000 Received: (qmail 50716 invoked by uid 500); 11 Jun 2008 17:38:03 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 50692 invoked by uid 500); 11 Jun 2008 17:38:03 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 50680 invoked by uid 99); 11 Jun 2008 17:38:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 10:38:03 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hirohanin@gmail.com designates 74.125.44.154 as permitted sender) Received: from [74.125.44.154] (HELO yx-out-1718.google.com) (74.125.44.154) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 17:37:14 +0000 Received: by yx-out-1718.google.com with SMTP id 36so415374yxh.0 for ; Wed, 11 Jun 2008 10:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=5OLjF+8hfJTFHc5lr9WNK3T05hd5YIi1y9SIxjkS4v4=; b=eMAbLZX5CYA+U/xghkLCFrdQvhd1x6DRy7nPEBLmt8+THBDpFdAhv/9i0C+IzgnlqB KBid4Wn8lj2VuqhuHv82zPpKz/K5WpN5t2bTpfYqJCzmcUXgALUTzzv9qPVn79jNGjn2 SrdGNUbOnS87OVrbt4xR+oZvTVZ6qy3/b0dkU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=D19a3hkEGZ9T3AJcdpy7IWUuD6FJtH8GomUvRfVKbd/2uJ6Whs2d53BYS5iVbSmh7+ /fAPlrTX8BOTGzEpifffQoKcCrj0xiWXQANQuC/bxM0Xd8cohaPaIBbtPC/VeLxseK1m kIqk9k/4TSpEmy1T9SWriwQ5v+bPIVT4Hq1d0= Received: by 10.150.84.41 with SMTP id h41mr583343ybb.217.1213205851623; Wed, 11 Jun 2008 10:37:31 -0700 (PDT) Received: by 10.150.220.15 with HTTP; Wed, 11 Jun 2008 10:37:31 -0700 (PDT) Message-ID: <54c3312d0806111037o6d0bb103j6fe621fb239c148c@mail.gmail.com> Date: Wed, 11 Jun 2008 23:07:31 +0530 From: "rohan rai" To: uima-user@incubator.apache.org Subject: Re: import location over Hadoop In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14469_13503909.1213205851599" References: <54c3312d0806111002s671f5034qb3e5ee219895c6bb@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_14469_13503909.1213205851599 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Correctly said that by name is imported without .xml and import by location with .xml extension location but the p[roblem still remains. How to make it work over hadoop On Wed, Jun 11, 2008 atnd import 11:03 PM, Jaroslaw Cwiklik < cwiklik@us.ibm.com> wrote: > If I remember correctly, when using import by name you dont specify .xml > extension. Also, > if the resource has a path, you need to specify it like this: > > data.resources.file > > not > > data/resources/file.xml > > Hopefully, this helps. > > JC > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > Jerry Cwiklik > UIMA Extensions > IBM T.J. Watson Research Center > Hawtorne, NY, 10532 > Tel: 914-784-7665, T/L: 863-7665 > Email: cwiklik@us.ibm.com > > > [image: Inactive hide details for "rohan rai" ]"rohan > rai" > > > > *"rohan rai" * > > 06/11/2008 01:02 PM > Please respond to > uima-user@incubator.apache.org > > > To > > uima-user@incubator.apache.org > cc > > > Subject > > Re: import location over Hadoop > > Anyways just to specify neither import by name nor import by location > works....import by name results in following exception . If their is some > other way to specify the classpath then I dont know > > org.apache.uima.resource.ResourceInitializationException: An import > could not be resolved. No .xml file with name > "types.recordCandidateType" was found in the class path or data path. > (Descriptor: ) > at > org.apache.uima.resource.Resource_ImplBase.initialize(Resource_ImplBase.java:121) > at > org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.initialize(AnalysisEngineImplBase.java:109) > at > org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize(PrimitiveAnalysisEngine_impl.java:124) > at > org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94) > at > org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62) > at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258) > at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:303) > at > org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:383) > at org.ziva.dq.hadoop.DQHadoopMain$Map.dQFile(DQHadoopMain.java:64) > at org.ziva.dq.hadoop.DQHadoopMain$Map.map(DQHadoopMain.java:44) > at org.ziva.dq.hadoop.DQHadoopMain$Map.map(DQHadoopMain.java:1) > at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:208) > at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2084) > > > On Wed, Jun 11, 2008 at 7:17 PM, rohan rai wrote: > > > I am sorry which jar are you talking about....To run UIMA App as a > > standalone I do not have to create the jar > > Are you saying Create a jar of the APP and then run it as a standalone?? > > > > Regards > > Rohan > > > > > > > > On Wed, Jun 11, 2008 at 7:10 PM, Thilo Goetz wrote: > > > >> So when you run it in Eclipse, it should run with > >> just the jar in the classpath, and no special setup > >> for the descriptors. I assume you tried that? > >> > >> --Thilo > >> > >> > >> rohan rai wrote: > >> > >>> All the descriptors are in the jar....The whole app is in the > >>> jar.....then > >>> only I am running the jar on hadoop > >>> > >>> Regards > >>> Rohan > >>> > >>> On Wed, Jun 11, 2008 at 6:54 PM, Thilo Goetz wrote: > >>> > >>> Best to put the descriptor in the jar, as I > >>>> said earlier... > >>>> > >>>> > >>>> rohan rai wrote: > >>>> > >>>> Damn it can be run...somebody really gotcha put it in web ASAP...I > >>>>> promise > >>>>> if I somehow make it run in my m/c I will definitely put it up in my > >>>>> blog.... > >>>>> > >>>>> Hey by the way to run UIMA annotator via eclipse with import name I > >>>>> have > >>>>> to > >>>>> add classpath in the build path(using eclipse)... Do I have to do > >>>>> something > >>>>> special to take care of that when running the same app in hadoop... > >>>>> Running > >>>>> hadoop via command line.... > >>>>> > >>>>> Regards > >>>>> Rohan > >>>>> > >>>>> On Wed, Jun 11, 2008 at 6:47 PM, Thilo Goetz wrote: > >>>>> > >>>>> I know for a fact that UIMA applications can be run on hadoop, > >>>>> > >>>>>> so don't give up too quickly. In your local tests, you need > >>>>>> to make sure that the system is really using the descriptor > >>>>>> you think it's using (which is why I suggested you test on a > >>>>>> different machine), not something it picks up from the environment. > >>>>>> > >>>>>> --Thilo > >>>>>> > >>>>>> > >>>>>> rohan rai wrote: > >>>>>> > >>>>>> Yes with name import if I run it as a standalone it works perfectly > >>>>>> fine > >>>>>> > >>>>>>> but > >>>>>>> when I try to do it over hadoop then it goes haywire. > >>>>>>> > >>>>>>> I have to assume then a simple UIMA application with does a simple > >>>>>>> name > >>>>>>> annotation will also not run in that case > >>>>>>> > >>>>>>> Regards > >>>>>>> Rohan > >>>>>>> > >>>>>>> > >>>>>>> > >>> > > > > ------=_Part_14469_13503909.1213205851599--