Introduction
This sample demonstrates an analysis of data that are collected on the usage of the Wikipedia.
Prerequisites
Set up the general prerequisites required for WSO2 DAS, before you start.
Building the sample
Follow the steps below to build the sample.
Uploading the Carbon Application
Follow the steps below to upload the Carbon Application (c-App) file of this sample. For more information, see Carbon Application Deployment for DAS.
- Log in to the DAS management console using the following URL: https://<DAS_HOST>:<DAS_PORT>/carbon/
- Click Main, and then click Add in the Carbon Applications menu.
- Click Choose File, and upload the
<DAS_HOME>/samples/capps/Wiki[pedia.car
file as shown below. - Click Main, then click Carbon Applications, and then click List view, to see the uploaded Carbon application as shown below.
Executing the sample
Follow the steps below to execute the sample.
Edit the values of the following properties in the
<DAS_HOME>/repository/conf/data-bridge/data-bridge-config.xml
file as shown below.<dataBridgeConfiguration> <maxEventBufferCapacity>5000</maxEventBufferCapacity> <eventBufferSize>2000</eventBufferSize> </dataBridgeConfiguration>
Edit the values of the following properties in the
<DAS_HOME>/repository/conf/data-bridge/data-agent-config.xml
file as shown below.
<DataAgentsConfiguration> <Agent> <Name>Thrift</Name> <QueueSize>65536</QueueSize> <BatchSize>500</BatchSize> </Agent> </DataAgentsConfiguration>
Edit the values of the following properties in the
<DAS_HOME>/repository/conf/analytics/analytics-eventsink-config.xml
file as shown below.
<AnalyticsEventSinkConfiguration> <QueueSize>65536</QueueSize> <maxQueueCapacity>1000</maxQueueCapacity> <maxBatchSize>1000</maxBatchSize> </AnalyticsEventSinkConfiguration>