| layout | title | permalink |
|---|---|---|
doc |
User Profile Tutorial |
/docs/tutorial/userprofile.html |
This document will introduce how to start the online processing on user profiles. Assume Eagle has been installed and Eagle service is started.
-
Step 2: start offline scheduler
-
Step 3: generate a model
Two options to start the topology are provided.
-
Option 1: command line
submit userProfiles topology if it's not on topology UI
$ bin/eagle-topology.sh --main eagle.security.userprofile.UserProfileDetectionMain --config conf/sandbox-userprofile-topology.conf start -
Option 2: Ambari
- Prepare sample data for ML training and validation sample data
- a. Download following sample data to be used for training
- b. Downlaod
userprofile-validate.txtfile which contains data points that you can try to test the models
-
Copy the files (downloaded in the previous step) into a location in sandbox For example:
/usr/hdp/current/eagle/lib/userprofile/data/ -
Modify
<Eagle-home>/conf/sandbox-userprofile-scheduler.confupdatetraining-audit-pathto set to the path for training data sample (the path you used for Step 1.a) update detection-audit-path to set to the path for validation (the path you used for Step 1.b) -
Run ML training program from eagle UI
-
Produce kafka data using the contents from validate file (Step 1.b) Run the command (assuming the eagle configuration uses kafka topic
sandbox_hdfs_audit_log)./kafka-console-producer.sh --broker-list sandbox.hortonworks.com:6667 --topic sandbox_hdfs_audit_log -
Paste few lines of data from file validate onto kafka-console-producer Check http://localhost:9099/eagle-service/#/dam/alertList for generated alerts






