Metron学习4_Ansible Based Vagrant Single Node VM Install

本文介绍了一种Apache Metron的安装方式——基于单节点虚拟机安装,并提供了详细的步骤指导。该安装过程完全自动化,适用于运行在VirtualBox上的虚拟主机。由于Metron包含众多组件,在单一主机尤其是虚拟主机上安装会极大占用资源,因此至少需要8GB RAM。文章还列举了必要的前置条件,包括Ansible、Vagrant等工具的安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

备注:

Metron安装方式的一种,基于单节点虚拟机安装;


This install fully automates the provisioning of Apache Metron on single, virtualized host running on Virtualbox. Metron is composed of many components and installing all of these on a single host, especially a virtualized one, will greatly stress your computer. To work sufficiently this will require at least 8 GB of RAM and a fair amount of patience.

See the following for instructions: Full Dev Platform 

原文来自:https://cwiki.apache.org/confluence/display/METRON/Dev+VM+Install


Full Development Platform

This project fully automates the provisioning and deployment of Apache Metron and all necessary prerequisites on a single, virtualized host running on Virtualbox.

Metron is composed of many components and installing all of these on a single host, especially a virtualized one, will greatly stress the resources of the host. The host will require at least 8 GB of RAM and a fair amount of patience. It is highly recommended that you shut down all unnecessary services. To that end the vagrant file configuration defaults to disabling solr and yaf.

Getting Started

Prerequisites

The computer used to deploy Apache Metron will need to have the following components installed.

OS X

Any platform that supports these tools is suitable, but the following instructions cover installation on Mac OS X. The easiest means of installing these tools on a Mac is to use the excellent Homebrew project.

  1. Install Homebrew by following the instructions at Homebrew.

  2. Run the following command in a terminal to install all of the required tools.

    brew cask install vagrant virtualbox
    brew install maven git
    brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/ee1273bf919a5e4e50838513a9e55ea423e1d7ce/Formula/ansible.rb
    brew switch ansible 2.0.0.2
    

Deploy Metron

  1. Build Metron

    cd incubator-metron
    mvn clean package -DskipTests
    
  2. Install Vagrant Hostmanager.

    vagrant plugin install vagrant-hostmanager
    
  3. Deploy Metron

    cd metron-deployment/vagrant/full-dev-platform
    vagrant up
    

    Should the process fail before completing the deployment, the following command will continue the deployment process without re-instantiating the host.

    vagrant provision
    

Explore Metron

Navigate to the following resources to explore your newly minted Apache Metron environment.

Connecting to the host through SSH is as simple as running the following command.

vagrant ssh

Working with Metron

In addition to re-running the entire provisioning play book, you may now re-run an individual Ansible tag or a collection of tags in the following ways. The following commands will re-run the web role on the Vagrant image. This will install components (if necessary) and start the UI.

./run_ansible_role.sh web

or

vagrant --ansible-tags="web" provision
Using Tags

A collection of tags is specified as a comma separated list.

./run_ansible_role.sh "sensors,enrichment"

Tags are listed in the playbooks, some frequently used tags:

  • hdp-install - Install HDP
  • hdp-deploy - Deploy and Start HDP Services (will start all Hadoop Services)
  • sensors - Deploy and Start Sensors.
  • enrichment - Deploy and Start Enrichment Topology.

Note also that there is a convenience script ./run_enrichment_role.sh which executes Vagrant with the enrichment tag.


原文来自:https://github.com/apache/incubator-metron/tree/master/metron-deployment/vagrant/full-dev-platform


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值