uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burn Lewis <burnle...@gmail.com>
Subject Re: problem in calling DUCC Service with ducc_submit
Date Mon, 07 Apr 2014 21:36:44 GMT
The service_dependency argument merely tells DUCC that your job uses that
service so that DUCC can ensure that the service is up and running before
starting your job.  It does NOT make your job use that service.

You can try this using the 1.job example as follows.

First define the location of your DUCC and your application broker, e.g.

  export DUCC_HOME=/home/ducc/ducc_runtime
  export BrokerURL=tcp://broker1:61616

Then register a service similar to 1.job:

  ${DUCC_HOME/bin/ducc_services --register \
${DUCC_HOME}/examples/simple/resources/service/Deploy_RandomSleepAE.xml \
    --classpath ${DUCC_HOME}/lib/uima-ducc/examples/* \
    --process_jvm_args -DdefaultBrokerURL=${BrokerURL} \
    --environment "AE_INIT_TIME=5 AE_INIT_RANGE=5 INIT_ERROR=0"

Then submit a job that connects to this service using a JMS service
descriptor, with the service as a
dependency so that DUCC will start it:

  ${DUCC_HOME}/bin/ducc_submit --specification
${DUCC_HOME}/examples/simple/1.job \
${DUCC_HOME}/examples/simple/resources/service/UimaAsRemote.xml \
    --service_dependency UIMA-AS:FixedSleepAE:${BrokerURL} \
    --process_jvm_args "-Xmx100M -DdefaultBrokerURL=${BrokerURL}"

Note that these descriptors use a system properties placeholder for the
broker URL which is copied from the environment.


On Mon, Apr 7, 2014 at 8:25 AM, reshu.agarwal <reshu.agarwal@orkash.com>wrote:

> On 04/04/2014 05:39 PM, Eddie Epstein wrote:
>> Given an aggregate AE, a UIMA-AS service is accessed by defining a
>> delegate
>> as a JMS service descriptor.
>> See
>> http://uima.apache.org/d/uima-as-2.4.2/uima_async_scaleout.
>> html#ugr.async.ov.concepts.jms_descriptor
>> and the example from the uima-as SDK in
>> apache-uima-as-2.4.2/examples/descriptors/as
>> So the AE in a DUCC job would have such a delegate.
>> Eddie
>> On Thu, Apr 3, 2014 at 1:00 AM, reshu.agarwal <reshu.agarwal@orkash.com>
>> wrote:
>>  On 04/01/2014 05:21 PM, Eddie Epstein wrote:
>>>     The
>>>> job still needs to connect to the service in the normal way.
>>>> DUCC uses services dependency for several reasons: to automatically
>>>> start
>>>> services when needed by a job; to not give resources to a job or service
>>>> for which a dependent service is not running; and to post a warning on
>>>> running jobs when a dependent service goes "bad".
>>>>  Hi Eddie,
>>> I have tried many times but my job could not be connected to DUCC
>>> Service.
>>> So, Can you please define a sample job with all parameters which you use
>>> to
>>> connect to service.
>>> --
>>> Thanks,
>>> Reshu Agarwal
>>>  Dear Eddie,
> It is not helping me. As I deployed and use UIMA AS service without any
> problem. But I am facing problem in DUCC. So, I want a sample of DUCC Job
> which is using the DUCC Service. If you can provide me that it will be very
> helpful.
> --
> Thanks,
> Reshu Agarwal

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message