Hi Thanuja,
You can set the cron expression with CronExpression element in the spark
script artifact xml as shown below.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Analytics>
<Name>AddNewScriptTestWithouTask</Name>
<Script>define table TEST_CAPP (server_name string, ip STRING, tenant
INTEGER, sequence LONG, summary STRING);SELECT ip FROM TEST_CAPP;SELECT
server_name, count(*) FROM TEST_CAPP GROUP BY server_name;</Script>
<CronExpression>0 * * * * ?</CronExpression>
</Analytics>
Thanks,
Sinthuja.
On Mon, Aug 17, 2015 at 4:15 PM, Thanuja Uruththirakodeeswaran <
[email protected]> wrote:
> Hi,
>
> I've followed the link [1] and referred sample "Httpd_Log_Analytics" [2]
> for creating a car file and deploy that in DAS. Here if we want to use the
> spark script, we can use a file as in [3].
>
> But if the spark script need to be executed for every minute, how we can
> add the Cron expression in the script configuration xml?
>
> [1].
> https://docs.wso2.com/display/DAS300/Carbon+Application+Deployment+for+DAS
> [2].
> https://github.com/wso2/product-bam/tree/master/modules/samples/capps/Httpd_Log_Analytics
> [3].
> https://github.com/wso2/product-bam/blob/master/modules/samples/capps/Httpd_Log_Analytics/Sparkscripts_1.0.0/httpd_log_analytics.xml
>
> Thanks.
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
--
*Sinthuja Rajendran*
Associate Technical Lead
WSO2, Inc.:http://wso2.com
Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev