Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 67320 invoked from network); 26 Aug 2010 05:14:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Aug 2010 05:14:29 -0000 Received: (qmail 60885 invoked by uid 500); 26 Aug 2010 05:14:28 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 60597 invoked by uid 500); 26 Aug 2010 05:14:26 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 60589 invoked by uid 99); 26 Aug 2010 05:14:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Aug 2010 05:14:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [207.97.245.191] (HELO smtp191.iad.emailsrvr.com) (207.97.245.191) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Aug 2010 05:14:20 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp39.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id EBD37982AA for ; Thu, 26 Aug 2010 01:13:58 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp39.relay.iad1a.emailsrvr.com (Authenticated sender: lokesh.chanana-AT-orkash.com) with ESMTPSA id 216B598137 for ; Thu, 26 Aug 2010 01:13:57 -0400 (EDT) Message-ID: <4C75F813.9010308@orkash.com> Date: Thu, 26 Aug 2010 10:43:55 +0530 From: lokesh chanana User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100528 Thunderbird/3.0.5 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: Data read problem in UIMA-AS References: <4C6D039D.4070001@orkash.com> <4C6E8156.4010600@orkash.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello Eddie, Once again thanks for replying. I tried removing the collection reader.. this thing now works the same way it worked in my CASE 2* . The main thing I am concern with that in this case I need to send a loads of data over the net.. can't there be a way by which I could have rested my data on machine hosting the remote service.. and would have called my client without a collection reader.. or either providing only reference or some thing so that my network traffic could be lesser n processing be bit faster?? as i would practically never want to download the data first to client from my database and then sending it to remote machine.. Secondly, when I define the the collection reader with the remote service and it even have data in the local system... what makes the processing go extremely slow?? indeed I was expecting it to be more faster... am I wrong somewhere?? Regards, Lokesh On Saturday 21 August 2010 03:50 AM, Eddie Epstein wrote: > Lokesh, > > The scenario in figure 3 uses a collection reader at the driver, and > no collection reader in the remote service. Please try that. > > regards, > Eddie > > > On Fri, Aug 20, 2010 at 9:21 AM, lokesh chanana > wrote: > >> Hello Eddie, >> >> My situation is quite similar to fig 3 but i m using only one queue, one >> service and one runRemotAE instance. >> >> My deployment descriptor is as follows: >> >> / >> > xmlns="http://uima.apache.org/resourceSpecifier"> >> deploymentDescriptor >> >> 1.0 >> >> >> >> >> > prefetch="0"/> >> >> >> >> >> >> >> > thresholdAction="terminate"/> >> > additionalErrorAction="terminate"/> >> >> >> >> >> / >> >> And my flocontroller descriptor is.. >> >> / >> >> org.apache.uima.java >> false >> >> >> > location="../../examples/descriptors/collection_reader/FileSystemCollectionReader.xml"/> >> >> >> >> >> >> > location="../../examples/descriptors/cas_consumer/XmiWriterCasConsumer.xml"/> >> >> >> >> sentence >> Implements a collection processing engine including collection >> reader, >> analysis engines and cas consumer. >> >> >> >> >> CollectionReader >> Sentence >> CasConsumer >> >> >> >> >> >> >> > allAnnotatorFeatures="true">org.apache.uima.examples.tokenizer.Sentence >> >> >> en >> >> >> >> >> true >> false >> false >> >> >> / >> >> As i am quite new so kindly guide me where i m wrong... >> >> Regards >> Lokesh >> >> >> >> On Friday 20 August 2010 06:33 PM, Eddie Epstein wrote: >> >>> Sorry, it is a bit hard to understand your scenario. Please clarify >>> using the examples >>> inhttp://uima.apache.org/doc-uimaas-what.html and identify which best >>> fits your situation, >>> Figure 3, 4 or 5. >>> >>> Thanks, >>> Eddie >>> >>> On Thu, Aug 19, 2010 at 6:12 AM, lokesh chanana >>> wrote: >>> >>> >>>> Hello, >>>> >>>> I am deploying UIMA-AS for testing perpose by now. >>>> >>>> My configurations includes >>>> >>>> !. Broker on one system >>>> 2. Service on one system >>>> 3. Client on one system >>>> >>>> My configuration >>>> => my deployment descriptor calls the flowControlAggregate. >>>> => Flow control defines 3 delegates >>>> 1. collection Reader that reads data from >>>> /opt/apache-uima/examples/data >>>> 2. my core analysis Engine that process the data >>>> 3. XmiWriterCasConsumer.xml class to generete output. >>>> >>>> i deployed them as >>>> startBroker.sh >>>> >>>> deployAsyncService.sh /Path/to/deployment/descriptor.xml >>>> -brokerURL tcp://:61616 >>>> >>>> runRemoteAsyncAE.sh tcp://:61616 MeetingFinderQueue >>>> -c >>>> /Path/to/collectin/reader.xml -o result.xmi >>>> >>>> >>>> NOW the problems i m concerned about are... >>>> >>>> If I don't define collection_Reader then i get no error but it says only >>>> one >>>> file is processed. (I knw that it is due to fact that client send an >>>> empty >>>> CAS). this means that client is sending the data in form of CAS. if so >>>> then >>>> y a cas collector if compulsaryin my flowControlAggregator???i tried >>>> emoving >>>> it but the service didn't started. >>>> >>>> I found one answer to this that CAS at client is just sending the >>>> reference for CAS at SERVICE. >>>> To test this i deleted the whole data at >>>> SERVICE(/opt/apache-uima/examples/data). >>>> Unexpectedly my processing time got reduced to some 20 sec. (which was >>>> earlier 3200 sec. for 500 documents). >>>> >>>> now i have two cases >>>> case 1: when the data at client and service is same. >>>> >>>> >>>>> processing is too slow. >>>>> xmi file ganerated are of shoter length >>>>> the XMI files are different then those created by the basic UIMA >>>>> application >>>>> processing at SERVICE is too high >>>>> neglegible processing at client. >>>>> >>>>> >>>> case 2: when the data there is no data at SERVICE end >>>> >>>> >>>>> Processing is fast >>>>> XMI are same as those creaed by local uima. >>>>> no much proocessiong either on client or SERVICE end. >>>>> >>>>> >>>> Now as things are not as i expected I am sure i m somewhere wrong >>>> conceptually. As i am quite new to UIMA-As any help is apprecable. >>>> >>>> Regards >>>> Lokesh >>>> >>>> >>>> >>>> >>