metron-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M. Aaron Bossert" <maboss...@gmail.com>
Subject Re: Install on non-standard cluster
Date Tue, 12 Jul 2016 15:26:52 GMT
Checking this now...Thanks!

On Tue, Jul 12, 2016 at 11:11 AM, Rob Becker <Rob.Becker@optiv.com> wrote:

> Here are my notes getting Metron to install on to RHEL 7.X.
>
>
>
> Install Steps
>
> - install Development Tools
>
>
>
> sudoedit /etc/sudoers
>
> - add sudo no pass
>
>
>
> yum install telnet wget
>
>
>
> wget
> https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
>
> rpm -Uvh epel-release-latest-7.noarch.rpm
>
>
>
> systemctl disable firewalld
>
> systemctl disable firewalld
>
> yum install python-pip.noarch python-devel python-yaml libffi-devel
> openssl-devel
>
> pip install cffi
>
> pip install cryptography
>
>
>
>
>
>
>
> wget http://releases.ansible.com/ansible/ansible-2.0.0.2.tar.gz
>
> tar xvfz ansible-2.0.0.2.tar.gz
>
> cd ansible-2.0.0.2
>
> make
>
> make install
>
>
>
> yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel
>
>
>
> cd /usr/local/src
>
> wget
> http://www.motorlogy.com/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
>
> tar xvfz apache-maven-3.3.9-bin.tar.gz
>
> rm apache-maven-3.3.9-bin.tar.gz
>
> mv apache-maven-3.3.9 ../maven
>
>
>
> echo ‘export M2_HOME=/usr/local/maven
>
> export PATH=${M2_HOME}/bin:${PATH}
>
> export PATH=${M2_HOME}:${PATH} ‘ > /etc/profile.d/maven.sh
>
> source /etc/profile
>
> ldconfig
>
> mkdir -p ~/.m2
>
> rm -rf ~/.m2/settings.xml
>
> mvn -version
>
>
>
>
>
> su - <id>
>
>
>
> ssh-keygen -t rsa
>
>
>
> cd .ssh
>
> cp id_rsa.pub authorized_keys
>
> chmod 644 authorized_keys
>
>
>
> git clone git@github.com:apache/incubator-metron.git
>
>
>
> cd incubator-metron/metron-platform
>
> sudo mvn clean package
>
> ## this failed the first time.  ran as root and was successful.
>
>
>
> # instead of doing this, i could have just edited the role for the new
> version
>
> wget https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
>
> mysql57-community-release-el7-8.noarch.rpm
>
> rpm -Uvh mysql57-community-release-el7-8.noarch.rpm
>
> yum install mysql-community-server
>
>
>
> roles/ambari_common/tasks/main.yml
>
> -Comment out version clause
>
>
>
> unlink /etc/rc.d/init.d/ambari-server && cp -a /usr/sbin/ambari-server
> /etc/rc.d/init.d/ambari-server && systemctl daemon-reload
>
>
>
>
>
> vi /usr/lib/systemd/system/ambari-server.service
>
>
>
> [Unit]
>
> Description=ambari-server service
>
> After=xe-linux-distribution.service
>
>
>
> [Service]
>
> Type=forking
>
> ExecStart=/usr/sbin/ambari-server start
>
> ExecStop=/usr/sbin/ambari-server stop
>
>
>
> [Install]
>
> WantedBy=multi-user.target
>
>
>
>
>
> ##
>
> vi /usr/lib/systemd/system/ambari-agent.service
>
>
>
> [Install]
>
> WantedBy=multi-user.target
>
>
>
> [Unit]
>
> Description=Ambari Agent Service
>
> After=network-online.target network.service
>
>
>
> [Service]
>
> Type=forking
>
> Restart=no
>
> TimeoutSec=5min
>
> IgnoreSIGPIPE=no
>
> KillMode=process
>
> GuessMainPID=no
>
> RemainAfterExit=yes
>
> ExecStart=/etc/rc.d/init.d/ambari-agent start
>
> ExecStop=/etc/rc.d/init.d/ambari-agent stop
>
>
>
> cp /usr/lib/systemd/system/ambari-agent.service
> /usr/lib/systemd/system/pm2-init.sh.service
>
> vi /usr/lib/systemd/system/pm2-init.sh.service
>
> #change to point to pm2-init.sh
>
>
>
>
>
> ansible-playbook -i inventory/optiv playbooks/ambari_install.yml
>
>
>
> # I had to stop and start the agent during the install.... this is related
> to systemd i think.
>
> /etc/init.d/ambari-agent stop
>
> /etc/init.d/ambari-agent start
>
>
>
> ansible-playbook -i inventory/optiv playbooks/ambari_install.yml
>
>
>
> roles/elasticsearch/tasks/elasticsearch.yaml
>
> remove the _ipv4 line
>
>
>
> The inventory/optiv/group/all file should have
> elasticsearch_network_interface to equal ip address
>
> sed -i 's/enforcing/disabled/g' /etc/selinux/config /etc/selinux/config
>
>
>
> ansible-playbook -i inventory/optiv playbooks/metron_install.yml
>
>
>
>
>
>
>
> *From:* Nick Allen [mailto:nick@nickallen.org]
> *Sent:* Tuesday, July 12, 2016 11:08 AM
> *To:* user@metron.incubator.apache.org
> *Subject:* Re: Install on non-standard cluster
>
>
>
> [External Email]
> ------------------------------
>
> These instructions should help you.
>
>
>
>
> https://cwiki.apache.org/confluence/display/METRON/Metron+Installation+on+an+Ambari-Managed+Cluster
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.apache.org_confluence_display_METRON_Metron-2BInstallation-2Bon-2Ban-2BAmbari-2DManaged-2BCluster&d=DQMFaQ&c=UjmJbqZPMTat0o02F6csow&r=HHmpJTuowDVvlK32ITd14kXvH7_oFsHB7ly83s8QO8Q&m=kMb7dCX2P7iIOQS4NSSQ8wXw9zsOjn0obXEJfcrFyxI&s=loHUm1PLsC9peQWi-UYkYja_XFeTOCwZeRLGYDcs72Y&e=>
>
>
>
>
>
> On Tue, Jul 12, 2016 at 10:03 AM, M. Aaron Bossert <mabossert@gmail.com>
> wrote:
>
> All,
>
>
>
> I would like to install Metron on my cluster, which is a bit quirky in the
> sense that I don't have full control over the OS that is installed (CentOS
> 6.X, but will be upgraded to 7.X in the near future), nor is HDP fully
> installed (we have some compatibility issues that are preventing Ambari
> from being installed for now).  These two issues seem to rule out the
> automated install methods provided.
>
>
>
> Is there another way to install on a cluster?  Perhaps there are
> instructions to do it manually?
>
>
>
>
>
> --
>
> Nick Allen <nick@nickallen.org>
>

Mime
View raw message