Hi Sinthuja,

Thanks. It's working. I deployed the Httpd_Log_Analytics" sample after
uncomment the line in its artifacts.xml [1] file. It gives following
message in server console. What's the reason for this?

[2015-08-17 17:20:35,193]  INFO
{org.wso2.carbon.application.deployer.internal.ApplicationManager} -
 Deploying Carbon Application : Httpd_Log_Analytics.car...
[2015-08-17 17:20:35,215] ERROR
{org.wso2.carbon.application.deployer.internal.ApplicationManager} -  Some
dependencies in cApp : Httpd_Log_Analytics_1.0.0 were not satisfied. Check
whether all dependent artifacts are included in cApp file :
/home/thanujau/Documents/Project/wso2das-3.0.0-SNAPSHOT/repository/deployment/server/carbonapps/Httpd_Log_Analytics.car

And if we create a dashboard in DAS, where can we find dashboard json file?

[1].
https://github.com/wso2/product-bam/blob/master/modules/samples/capps/Httpd_Log_Analytics/artifacts.xml

Thanks.

On Mon, Aug 17, 2015 at 4:21 PM, Sinthuja Ragendran <[email protected]>
wrote:

> 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
>
>
>


-- 
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

Reply via email to