Configure HOSTNAME by adding the hostname to the file /etc/sysconfig/network. Do the same to all the all nodes.

Similar documents
Configure HOSTNAME by adding the hostname to the file /etc/sysconfig/network. Do the same to all the other 3(4) nodes.

First Alternative. S11B Rev Networking

CentOS 6.7 with Vault MySQL 5.1

Create Test Environment

VCP-DCV5, OCP (DBA), MCSA, SUSE CLA, RHCSA-7]

Cluster Computing Spring 2004 Paul A. Farrell 4/25/2006. Dept of Computer Science Kent State University 1. Configuring & Tuning Cluster Networks

The Zenoss Enablement Series:

Step 3: Select This computer is part of business network,., click next

ssh keys, yum, ntp, rsync

Preparing for the Prime Home Installation

The article performs the following task:-

Hortonworks DataFlow

Once the VM is started, the VirtualBox OS Manager window can be closed. But our Ubuntu VM is still running.

MVAPICH MPI and Open MPI

OpenNebula 4.8 Quickstart CentOS 6 and Xen

ssh and handson Matsuzaki maz Yoshinobu 1

DC/OS on Google Compute Engine

Hands-on Exercise Hadoop

Yellow Dog 6.1 PS3 Cluster guide

System Requirements ENTERPRISE

Hortonworks DataFlow

Check the FQDN of your server by executing following two commands in the terminal.

Setting up a Chaincoin Masternode

This is a guide about using Putty on Windows with OpenSSH on Linux. You would learn about how to:

Mango AM335x (AM335X) Gbit. Lan 이용복사테스트. Crazy Embedded Laboratory

Hortonworks DataFlow

ScopTEL TM IP PBX Software. DNS Server Configuration Wizard

Aliases are set manually or in a login script. Aliases that were set manually will be gone the next time you login.

Analyse your attacker s vectors with an SSH Honey Pot

FEPS. SSH Access with Two-Factor Authentication. RSA Key-pairs

Hortonworks DataFlow

The Unix Shell. The Secure Shell

Install Apache, PHP And MySQL On CentOS 7 (LAMP)

User Manual op5 System 3.1

OpenNebula 4.6 Quickstart CentOS 6 and ESX 5.x

OpenNebula 4.10 Quickstart CentOS 6 and KVM

Linux Administration

Redhat OpenStack 5.0 and PLUMgrid OpenStack Networking Suite 2.0 Installation Hands-on lab guide

Build Your Own Oracle RAC 11g Release 2 Cluster on Red Hat 4 and iscsi

mod_ssl.x86_64 1: el6.centos Complete! Start the Webserver service httpd start Starting httpd: [ OK ]

RAP Installation README

Purpose. Target Audience. Install SNMP On The Remote Linux Machine. Nagios XI. Monitoring Linux Using SNMP

LIP for Windows Server Infrastructure Automation Via Ansible Devops Tool

Backup and Restore Technical Note

Introduction to Linux Workshop 2. The George Washington University SEAS Computing Facility

SSH. What is Safely 6/19/ June 2018 PacNOG 22, Honiara, Solomon Islands Supported by:

Installing Cisco Broadband Access Center on Linux

HOW TO SECURELY CONFIGURE A LINUX HOST TO RUN CONTAINERS

CA Infrastructure Management Data Aggregator

User Manual. op5 System 3.0

Lab #9: Basic Linux Networking

SAP Business One. User Guide. Issue 04 Date HUAWEI TECHNOLOGIES CO., LTD.

Table of Contents 1 V3 & V4 Appliance Quick Start V4 Appliance Reference...3

Most of the programming assignments in CS 2505 will require using the C language. We will use a (relatively) current version of the GCC C compiler.

Cluster Computing Spring 2004 Paul A. Farrell

John the Ripper on a Ubuntu MPI Cluster

The Microdrive and CF card are electrically compatible this means that a CF card reader can be used to program a Microdrive.

This tutorial will guide you how to setup and run your own minecraft server on a Linux CentOS 6 in no time.

How to Enable SFTP on MPE

CloudStack Installation Documentation

MD Workflow Single System Tutorial (LINUX OPERATION GPU Cluster) Written by Pek Ieong

Oracle Communications WebRTC Session Controller. Preparation Guide

NOCTION. Intelligent Routing Platform Lite Self-Deployment Guide. Intelligent Routing Platform. Lite (free version)

Secure SHell Explained!

GateManager server model 8250 Installation STEP 0 Preparing the LINUX installation

VM Service. A Benchmark suite for cloud environment USER S MANUAL

OpenNebula 4.4 Quickstart CentOS 6 and ESX 5.x. OpenNebula Project

LECTURE 7. Readings: - SSH: The Definitive Guide; D.J. Barret et al.; O Reilly Lecture outline: - SSH. Marco Spaziani Brunella, Manuel Campo

CMU : Cluster Management Utility. CMU diskless user s guide Version 4.0, January 2009

Resource Manager Collector RHCS Guide

Siemens PLM Software. HEEDS MDO Setting up a Windows-to- Windows Compute Resource.

Build your own Lightweight Webserver - Hands-on I - Information Network I. Marius Georgescu. Internet Engineering Laboratory. 17 Apr

BR*Tools Studio 7.10 for Oracle Multi-instance Server Standalone Part 2: Server, Database Instances and their Users

Cryptography Application : SSH. Cyber Security & Network Security March, 2017 Dhaka, Bangladesh

Cluster creation and maintenance

Cisco Stealthwatch Cloud. Private Network Monitoring Advanced Configuration Guide

pulsarvmlite v Installation and Usage

Install CPS All In One on VMWare Virtual Player 12

Siemens PLM Software. HEEDS MDO Setting up a Windows-to- Linux Compute Resource.

Precursor Steps & Storage Node

SmartCash SmartNode SCRIPT Setup Guide v2.2. Windows 10. Date: 20/02/2018. By (Jazz) yoyomonkey

About 1. Chapter 1: Getting started with centos 2. Remarks 2. Versions 2. Examples 2. Installation or Setup 2

Control Center Planning Guide

Configuring SSH Public Key Authentication

Setting up IBM Data Server Manager as a Highly Available Service

Oracle Communication WebRTC Session Controller. Preparation Guide

Cacti Installation on Fedora 10 by Jason Warnes

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

SUSIAccess 2.0 Quick Start Guide. For Windows and Linux

OpenNebula 4.12 Quickstart CentOS 7 and KVM

The TinyHPC Cluster. Mukarram Ahmad. Abstract

Configuring Multiple Instances of Railo on Linux

XE2000/XE3000 IP-PBX: Getting Started Guide Package Contents

Installation Guide Advanced Authentication - Linux PAM Client. Version 5.5

How to configure OpenVPN shared key tunnels using pfsense and OpenWRT. Ver. 1.0 ( ) Author: Ville Leinonen

Practical classes Lab2. Integration of global services in enterprise environments I: The INTRANET

Management Access. Configure Management Remote Access. Configure ASA Access for ASDM, Telnet, or SSH

PEN LOAD BALANCER WITH 2 NODES APACHE WEB SERVER

SSH SECURITY. If you ve never used SSH before on a computer, the chances are very high that

What is Secure. Authenticated I know who I am talking to. Our communication is Encrypted

Transcription:

Network setup As the root user execute the command "ifconfig" on each host. Take a note of ipaddress's of all machines I have a home LAN so my addresses are class C which might be in the format 192.168.192.x. For my cluster setup below are ip's configured for reverse DNS by adding the below entries to /etc/hosts file note the host should have FQDN eg server01.texas.com 192.168.192.22 server01.texas.com server01 192.168.192.61 server03.texas.com server03 Configure HOSTNAME by adding the hostname to the file /etc/sysconfig/network. Do the same to all the all nodes. [root@server01 etc] # vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=server01.texas.com Edit the ifcfg-eth0 [root@server01 ] vi /etc/sysconfig/network-scripts DEVICE=eth0 HWADDR=00:15:17:12:F2:50 TYPE=Ethernet UUID=6428569e-e729-4985-974d-e87fc81a8796 NM_CONTROLLED=yes ONBOOT=yes BOOTPROTO=dhcp To rename the host without rebooting run the below command on every host in the cluster [root@server01 etc]# hostname server01.texas.com Configuring Passwordless SSH for root user Execute the below commands from the server01 Master Node: Just press "Enter" when prompted for a passphrase accept defaults. Two files will be created in the folder /root/.ssh [root@server01 ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/id_rsa already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is:

when prompted for a passphrase. Two files will be crea ted in the folder /root/.ssh [root@server01.ssh]# ls -al id_rsa id_rsa.pub Copy the contents of id_rsa.pub to authorized_keys and copy both the files to other nodes to all the remote-host s.ssh/authorized_key. [root@server01.ssh]# cat.ssh/id_rsa.pub ssh root@192.168.192.18 'cat >>.ssh/authorized_keys' [root@server01.ssh]# cat.ssh/id_rsa.pub ssh root@192.168.192.61 'cat >>.ssh/authorized_keys' Test the use "ssh" to login from Server01 to other 3 servers of the clusters identified above. If Passwordless SSH is not configured, the command will prompt to Enter the Password of the other machine. The first attempt to logon with request for the password that s normal but thereafter it won t prompt for the password as shown below [root@server01 ~]# ssh root@server03 The authenticity of host 'server03 (192.168.192.61)' can't be established. RSA key fingerprint is ef:d6:b2:05:0f:17:22:3d:e5:be:74:e5:f3:72:20:63. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'server03' (RSA) to the list of known hosts. Last login: Sun Dec 27 04:13:22 2015 from server02.texas.com [root@server03 ~]# No prompt for password prompt [root@server01 ~]# ssh root@server02 Last login: Sun Dec 27 11:16:56 2015 from server01.texas.com [root@server02 ~]# exit Copy the generated keys to all the hosts NOTE: during the above first time connection you are prompted for the password of the remote machine. But now below you can login to other machines directly using ssh. No password entry will be prompted. [root@server01.ssh]# ssh server03 Last login: Sun Nov 29 22:30:54 2015 from server01.texas.com [root@server03 ~]# exit logout Connection to server03 closed. [root@server01.ssh]# ssh server02 Last login: Sun Nov 29 22:25:59 2015 from 192.168.192.22 [root@server02 ~]# exit logout Connection to server02 closed.

Disable firewall / iptables on all the cluster hosts Execute the below command on all nodes to disable the firewall, type the following command as the root user to disable firewall for IPv6: [root@server02 ~]# service ip6tables stop ip6tables: Setting chains to policy ACCEPT: filter ip6tables: Flushing firewall rules: ip6tables: Unloading modules: Disable on boot startup of iptables [root@server02 ~]# chkconfig ip6tables off [root@server02 ~]# service iptables status iptables: Firewall is not running. IPv4 [root@server01 etc] # service iptables save iptables: Saving firewall rules to /etc/sysconfig/iptables: [root@server01 etc] # service iptables stop iptables: Setting chains to policy ACCEPT: filter iptables: Flushing firewall rules: iptables: Unloading modules: [root@server01 etc]# chkconfig iptables off Turn the iptables off [root@server01 etc] # chkconfig iptables off Configure the sshd daemon to start on boot [root@server01 ~]# chkconfig --level 345 sshd on [root@server01 ~]# service sshd restart Stopping sshd: [ OK ] Starting sshd: [ OK ] Disable SELinux SELinux must be disabled for Ambari to function. To temporarily disable SELinux, run the following command on each host in your cluster: [root@server01 ~]# setenforce 0 Permanently disabling SELinux so that on system reboot it does not restart edit the SELinux config and set SELINUX to disabled. on each host:

root@server01 ]# vi /etc/selinux/config Add the below lines # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted Disable Transparent Huge Pages (THP) This must be disabled on all the hosts otherwise the Ambari install will fail [root@server02 ~]# echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled [root@server02 ~]# echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag To disable or make these changes persistent across reboots I add this to the bottom of my vi /etc/rc.local #disable THP at boot time if test -f /sys/kernel/mm/redhat_transparent_hugepage/enabled; then echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled fi if test -f /sys/kernel/mm/redhat_transparent_hugepage/defrag; then echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag fi To validate THP is disabled, I run the below three commands, or any variant you choose from here. [root@server02 ~]# cat /sys/kernel/mm/redhat_transparent_hugepage/defrag always madvise [never] [root@server02 ~]# cat /sys/kernel/mm/redhat_transparent_hugepage/enabled always madvise [never] Configure the NTPD services You must setup the NTPD server on CentOS to successfully implement Ambari follow the below steps to install and start the NTPD server. As the root user. [root@server01 ~]# yum install ntp ntpdate Loaded plugins: fastestmirror, security Setting up Install Process Loading mirror speeds from cached hostfile * base: linuxsoft.cern.ch * epel: mirror.serverbeheren.nl

* extras: linuxsoft.cern.ch * updates: linuxsoft.cern.ch ntpdate.x86_64 0:4.2.6p5-5.el6.centos.2 Complete! Turn on the service: [root@server01 ~]# chkconfig ntpd on Synchronize the system clock with 0.pool.ntp.org server [root@server01 bin]# ntpdate pool.ntp.org 2 Jan 21:42:49 ntpdate[5101]: 31.3.135.236 rate limit response from server. 2 Jan 21:43:56 ntpdate[5101]: step time server 212.51.144.44 offset 67.520940 sec Check the NTPD services configure it start at system boot [root@server01 bin]# chkconfig --list ntpd ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off Start the NTP server. The following will continuously adjusts system time from upstream NTP server. No need to run ntpdate: [root@server01 ~]# /etc/init.d/ntpd start or [root@server01 ~]# service ntpd start Starting ntpd: [ OK ]