[ 
https://issues.apache.org/jira/browse/METRON-1876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Babak Abbaschian updated METRON-1876:
-------------------------------------
    Description: 
So I'm trying to deploy Metron on EC2, and I'm following this link:

[https://github.com/apache/metron/tree/master/metron-deployment/amazon-ec2]

First I had to *guess* based on the errors and description for *macOS!* that we 
need Vagrant, node and etc.

So here is the process that I take on _Ubuntu 18.1_:
{code:java}
export AWS_ACCESS_KEY_ID="XXXXXXXXXXXXX0XXXXXX" 
export AWS_SECRET_ACCESS_KEY="xxxXXX0XXXxXXxX0xx0xXX0xXxxXX0xXxxX0XXxx" 
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 
PATH=$JAVA_HOME/bin:$PATH ssh-keygen  
apt install maven //Version 3.3.9 
apt install python-pip 
pip install ansible==2.4.1
///////////////////////////////////////////////////////////////////////////////
// Ansible versions higher than 2.4.1 will end up with this error:
// **************Task Create Virtual private cloud ***************
// fatal: [localhost]: FAILED! => {"changed": false, "msg": "This module has 
been removed. The module documentation may contain 
 // hints for porting"}
///////////////////////////////////////////////////////////////////////////////

apt install nodejs-legacy //The system is using command node, not nodejs 
apt install npm apt install virtualbox //Version 5.5.2 
wget https://releases.hashicorp.com/vagrant/2.2.0/vagrant_2.2.0_x86_64.deb 
///////////////////////////////////////////////////////////////////////////////
// Vagrant in apt cache is version 1.8 which has a bug installing hostmanager
///////////////////////////////////////////////////////////////////////////////

dpkg -i vagrant_2.2.0_x86_64.deb 
vagrant plugin install vagrant-hostmanager 
git clone https://github.com/apache/metron.git 
cd metron/metron-deployment/amazon-ec2/ 
./run.sh {code}
And I End up with failed master node with this error:
{code:java}
 [ERROR]Failed to execute goal 
com.github.eirslett:frontend-maven-plugin:1.3:npm (npm ci) on project 
metron-config:Failed to run task:'npm ci' failed.(error code 1)->[Help1]   
org.apache.maven.lifecycle.LifecycleExecutionException:Failed to execute goal 
com.github.eirslett:frontend-maven-plugin:1.3:npm (npm ci) on project 
metron-config:Failed to run taskat 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
 at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
 {code}

  was:
So I'm trying to deploy Metron on EC2, and I'm following this link:

[https://github.com/apache/metron/tree/master/metron-deployment/amazon-ec2]

First I had to *guess* based on the errors and description for *macOS!* that we 
need Vagrant, node and etc.

So here is the process that I take on _Ubuntu 18.1_:
{code:java}
export AWS_ACCESS_KEY_ID="XXXXXXXXXXXXX0XXXXXX" 
export AWS_SECRET_ACCESS_KEY="xxxXXX0XXXxXXxX0xx0xXX0xXxxXX0xXxxX0XXxx" 
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 
PATH=$JAVA_HOME/bin:$PATH ssh-keygen  
apt install maven //Version 3.3.9 
apt install python-pip 
pip install ansible==2.4.1
///////////////////////////////////////////////////////////////////////////////
// Ansible versions higher than 2.4.1 will end up with this error:
// **************Task Create Virtual private cloud ***************
// fatal: [localhost]: FAILED! => {"changed": false, "msg": "This module has 
been removed. The module documentation may contain 
 // hints for porting"}
///////////////////////////////////////////////////////////////////////////////

apt install nodejs-legacy //The system is using command node, not nodejs 
apt install npm apt install virtualbox //Version 5.5.2 
wget https://releases.hashicorp.com/vagrant/2.2.0/vagrant_2.2.0_x86_64.deb 
///////////////////////////////////////////////////////////////////////////////
// Vagrant in apt cache is version 1.8 which has a bug installing hostmanager
///////////////////////////////////////////////////////////////////////////////

dpkg -i vagrant_2.2.0_x86_64.deb 
vagrant plugin install vagrant-hostmanager 
git clone https://github.com/apache/metron.git 
cd metron/metron-deployment/amazon-ec2/ 
./run.sh {code}
And I End up with failed master node with this error:
{code:java}
 [ERROR]Failed to execute goal 
com.github.eirslett:frontend-maven-plugin:1.3:npm (npm ci) on project 
metron-config:Failed to run task:'npm ci' failed.(error code 1)->[Help1]   
org.apache.maven.lifecycle.LifecycleExecutionException:Failed to execute goal 
com.github.eirslett:frontend-maven-plugin:1.3:npm (npm ci) on project 
metron-config:Failed to run taskat 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
 at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
 {code}


> Failure Automatic Deploying Metron on Amazon EC2
> ------------------------------------------------
>
>                 Key: METRON-1876
>                 URL: https://issues.apache.org/jira/browse/METRON-1876
>             Project: Metron
>          Issue Type: Bug
>    Affects Versions: 0.6.1
>         Environment: Ubuntu 18.10
>            Reporter: Babak Abbaschian
>            Priority: Major
>
> So I'm trying to deploy Metron on EC2, and I'm following this link:
> [https://github.com/apache/metron/tree/master/metron-deployment/amazon-ec2]
> First I had to *guess* based on the errors and description for *macOS!* that 
> we need Vagrant, node and etc.
> So here is the process that I take on _Ubuntu 18.1_:
> {code:java}
> export AWS_ACCESS_KEY_ID="XXXXXXXXXXXXX0XXXXXX" 
> export AWS_SECRET_ACCESS_KEY="xxxXXX0XXXxXXxX0xx0xXX0xXxxXX0xXxxX0XXxx" 
> JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 
> PATH=$JAVA_HOME/bin:$PATH ssh-keygen  
> apt install maven //Version 3.3.9 
> apt install python-pip 
> pip install ansible==2.4.1
> ///////////////////////////////////////////////////////////////////////////////
> // Ansible versions higher than 2.4.1 will end up with this error:
> // **************Task Create Virtual private cloud ***************
> // fatal: [localhost]: FAILED! => {"changed": false, "msg": "This module has 
> been removed. The module documentation may contain 
>  // hints for porting"}
> ///////////////////////////////////////////////////////////////////////////////
> apt install nodejs-legacy //The system is using command node, not nodejs 
> apt install npm apt install virtualbox //Version 5.5.2 
> wget https://releases.hashicorp.com/vagrant/2.2.0/vagrant_2.2.0_x86_64.deb 
> ///////////////////////////////////////////////////////////////////////////////
> // Vagrant in apt cache is version 1.8 which has a bug installing hostmanager
> ///////////////////////////////////////////////////////////////////////////////
> dpkg -i vagrant_2.2.0_x86_64.deb 
> vagrant plugin install vagrant-hostmanager 
> git clone https://github.com/apache/metron.git 
> cd metron/metron-deployment/amazon-ec2/ 
> ./run.sh {code}
> And I End up with failed master node with this error:
> {code:java}
>  [ERROR]Failed to execute goal 
> com.github.eirslett:frontend-maven-plugin:1.3:npm (npm ci) on project 
> metron-config:Failed to run task:'npm ci' failed.(error code 1)->[Help1]   
> org.apache.maven.lifecycle.LifecycleExecutionException:Failed to execute goal 
> com.github.eirslett:frontend-maven-plugin:1.3:npm (npm ci) on project 
> metron-config:Failed to run taskat 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
>  at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>  at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>  at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>  at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to