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

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

Create Test Environment

First Alternative. S11B Rev Networking

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

CentOS 6.7 with Vault MySQL 5.1

Hands-on Exercise Hadoop

Hortonworks DataFlow

ssh keys, yum, ntp, rsync

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

ssh and handson Matsuzaki maz Yoshinobu 1

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

Hortonworks DataFlow

Preparing for the Prime Home Installation

Analyse your attacker s vectors with an SSH Honey Pot

The article performs the following task:-

The Zenoss Enablement Series:

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

Yellow Dog 6.1 PS3 Cluster guide

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

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

Hortonworks DataFlow

MVAPICH MPI and Open MPI

OpenNebula 4.8 Quickstart CentOS 6 and Xen

Hortonworks DataFlow

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

DC/OS on Google Compute Engine

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

BIG DATA TRAINING PRESENTATION

System Requirements ENTERPRISE

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

Linux Administration

Setting up a Chaincoin Masternode

The Unix Shell. The Secure Shell

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

OpenNebula 4.10 Quickstart CentOS 6 and KVM

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

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

User Manual op5 System 3.1

RAP Installation README

OpenNebula 4.6 Quickstart CentOS 6 and ESX 5.x

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

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

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

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

CA Infrastructure Management Data Aggregator

ScopTEL TM IP PBX Software. DNS Server Configuration Wizard

Lab #9: Basic Linux Networking

Hitachi Hyper Scale-Out Platform (HSP) Hortonworks Ambari VM Deployment Guide

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

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

Installing Hadoop. You need a *nix system (Linux, Mac OS X, ) with a working installation of Java 1.7, either OpenJDK or the Oracle JDK. See, e.g.

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

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

How to Enable SFTP on MPE

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

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

Oracle Communications WebRTC Session Controller. Preparation Guide

HOW TO SECURELY CONFIGURE A LINUX HOST TO RUN CONTAINERS

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

Secure SHell Explained!

Installing Cisco Broadband Access Center on Linux

John the Ripper on a Ubuntu MPI Cluster

GateManager server model 8250 Installation STEP 0 Preparing the LINUX installation

PEN LOAD BALANCER WITH 2 NODES APACHE WEB SERVER

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

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

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

User Manual. op5 System 3.0

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.

CS451 - Assignment 8 Faster Naive Bayes? Say it ain t so...

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

CloudStack Installation Documentation

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.

An Overview of SSH. Presentation to Linux Users of Victoria. Melbourne, August 26, 2017

Control Center Planning Guide

Newsreader virtual machines Technical Report NWR

Setting up IBM Data Server Manager as a Highly Available Service

Configuring SSH Public Key Authentication

Using a Linux System 6

Oracle Communication WebRTC Session Controller. Preparation Guide

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

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

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

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

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 Below I have 3 servers in my cluster 192.168.192.22 texashost.com texashost # Master NameNode data 192.168.192.18 texashost02.com texashost02 # DataNodes data YARN data 192.168.192.61 texashost03.com texashost03 # Slave NameNode data Oozie data Configure HOSTNAME by adding the hostname to the file /etc/sysconfig/network. Do the same to all the other 3(4) nodes. [root@texashost etc] # vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=texashost.com Edit the ifcfg-eth0 [root@texashost ] 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@texashost etc]# hostname texashost.com Configuring Passwordless SSH for root user Execute the below commands from the texashost Master Node: Just press "Enter" when prompted for a passphrase. Two files will be created in the folder /root/.ssh [root@texashost ~]# 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: 6f:40:61:c1:89:a5:f0:f4:8d:6b:01:98:fc:01:fb:d4 root@texashost.com The key's randomart image is: +--[ RSA 2048]----+.o+o+=o +=o*o+..+.e. o.. o. S. o o. +-----------------+ Just press "Enter" when prompted for a passphrase. Two files will be created in the folder /root/.ssh [root@texashost.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@texashost.ssh]# cat.ssh/id_rsa.pub ssh root@192.168.192.18 'cat >>.ssh/authorized_keys' [root@texashost.ssh]# cat.ssh/id_rsa.pub ssh root@192.168.192.61 'cat >>.ssh/authorized_keys' Test the use "ssh" to login from Hadoop01 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@texashost ~]# ssh root@texashost03 The authenticity of host 'texashost03 (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 'texashost03' (RSA) to the list of known hosts. Last login: Sun Dec 27 04:13:22 2015 from texashost02.com [root@texashost03 ~]# No prompt for password prompt [root@texashost ~]# ssh root@texashost02 Last login: Sun Dec 27 11:16:56 2015 from texashost.com [root@texashost02 ~]# 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@texashost.ssh]# ssh texashost03 Last login: Sun Nov 29 22:30:54 2015 from texashost.com [root@texashost03 ~]# exit logout Connection to texashost03 closed. [root@texashost.ssh]# ssh texashost02 Last login: Sun Nov 29 22:25:59 2015 from 192.168.192.22 [root@texashost02 ~]# exit logout Connection to texashost02 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@texashost02 ~]# service ip6tables stop ip6tables: Setting chains to policy ACCEPT: filter ip6tables: Flushing firewall rules: ip6tables: Unloading modules: Disable on boot startup of iptables [root@texashost02 ~]# chkconfig ip6tables off [root@texashost02 ~]# service iptables status iptables: Firewall is not running. IPv4 [root@texashost etc] # service iptables save iptables: Saving firewall rules to /etc/sysconfig/iptables: [root@texashost etc] # service iptables stop iptables: Setting chains to policy ACCEPT: filter iptables: Flushing firewall rules: iptables: Unloading modules: [root@texashost etc]# chkconfig iptables off Turn the iptables off

[root@texashost etc] # chkconfig iptables off Configure the sshd daemon to start on boot [root@texashost ~]# chkconfig --level 345 sshd on [root@texashost ~]# 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@texashost ~]# 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@texashost ]# 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 in stall will fail [root@texashost02 ~]# echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled [root@texashost02 ~]# 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@texashost02 ~]# cat /sys/kernel/mm/redhat_transparent_hugepage/defrag always madvise [never] [root@texashost02 ~]# 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@texashost ~]# 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 Some test removed here. Verifying : ntpdate-4.2.6p5-1.el6.centos.x86_64 4/4 Updated: ntp.x86_64 0:4.2.6p5-5.el6.centos.2 ntpdate.x86_64 0:4.2.6p5-5.el6.centos.2 Complete! Turn on the service: [root@texashost ~]# chkconfig ntpd on Synchronize the system clock with 0.pool.ntp.org server [root@texashost 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@texashost 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@texashost ~]# /etc/init.d/ntpd start or [root@texashost ~]# service ntpd start Starting ntpd: [ OK ]