Hortonworks Streaming Analytics Manager User Guide
Also available as:
PDF

Debugging an Application through Sampling

About This Task

For troubleshooting, a convenient tool is to turn on sampling for a component or for the entire topology based on a sample percentage. Sampling allows you to log the emitted values of a component in the SAM App.

Steps

  1. To enable Log Search in SAM, perform the following actions in Ambari.

    1. In Ambari, select the Log Search service and select ‘Log Search UI’ from Quick Links

    2. Select the filter icon on the top right menu

    3. For the storm_worker_event component, configure the filter like the following and click Save.

  2. In SAM view mode of the App, click on the component you want to turn on sampling for and enter a sampling percentage.

  3. Click the ‘SAMPLE’ Tab .

  4. Use the Sample Search UI to search for different events that were logged.