Created on 03-28-2016 07:40 PM - edited 08-17-2019 01:00 PM
If you are new to Metron or the Metron Tech Preview 1, the following links should provide some good information to review before walking through the installation:
The following steps provide instructions on how to install a full working Metron application on a single node VM with Vagrant. This deployment option is ideal for experimenting and playing with the Metron application. While these instructions should work on most development environments, these instructions were tested on Mac OS X El Capitan.
On your Macintosh:
export MAVEN_HOME=/Users/rmckissick/Documents/Files/apache-maven-3.3.9 export PATH=$MAVEN_HOME/bin:$PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home export PATH=$JAVA_HOME/bin:$PATH
source~/.bash_profile
mvn–version
You should see information about Maven, Java, and OS X.
sudo su - easy_install pip export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments pip install ansible exit
(exit logs off from root and returns to your user account)
tar -zxvf apache-metron-0.1BETA-RC7-incubating.tar.gz
cd incubator-metron-Metron_0.1BETA_rc7 mvn apache-rat:check && cd metron-streaming && mvn clean integration-test && cd ..
The mvn command downloads and builds Metron components. It should take about 15 minutes, depending on your hardware configuration. When it finishes, you should see a message similar to the following:
[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Metron-Streaming ................................... SUCCESS [ 31.437 s] [INFO] Metron-Common ...................................... SUCCESS [04:58 min] [INFO] Metron-EnrichmentAdapters .......................... SUCCESS [ 14.185 s] [INFO] Metron-MessageParsers .............................. SUCCESS [ 2.704 s] [INFO] Metron-Indexing .................................... SUCCESS [ 26.989 s] [INFO] Metron-Alerts ...................................... SUCCESS [ 4.651 s] [INFO] Metron-Testing ..................................... SUCCESS [ 9.167 s] [INFO] Metron-DataLoads ................................... SUCCESS [04:26 min] [INFO] Metron-Topologies .................................. SUCCESS [03:05 min] [INFO] Metron-Pcap_Service ................................ SUCCESS [ 43.666 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14:43 min [INFO] Finished at: 2016-04-26T13:11:09-07:00 [INFO] Final Memory: 122M/1649M
cd deployment/vagrant/singlenode-vagrant vagrant plugin install vagrant-hostmanager vagrant up
From Ambari, navigate to Storm -> Quick Links -> Storm UI. You should see the four storm topologies deployed. The Metron Storm UI should look something like the following:
vagrant ssh node1 sudo su hdfs hadoop fs -ls /apps/metron/enrichment/indexed
If you have any questions or install issues, post your question to the CyberSecurity HCC Track.