Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring the Deployment Environment

  1. Log in to nodes 1 to 4 in sequence and change their host names to server1, agent1, agent2 and agent3.
    1
    hostnamectl set-hostname host_name --static
    
  2. Log in to each node and add the mapping between the IP addresses and host names of these nodes.
    1. Open the /etc/hosts file.
      1
      vi /etc/hosts
      
    2. Press i to enter the insert mode and add the following content to the hosts file:
      1
      2
      3
      4
      IPaddress1 server1
      IPaddress2 agent1
      IPaddress3 agent2
      IPaddress4 agent3
      
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  3. Log in to each node and disable the firewall.
    1
    2
    systemctl stop firewalld.service
    systemctl disable firewalld.service
    
  4. Log in to each node and enable password-free SSH login.
    1. Generate a key and press Enter if any message is prompted.
      1
      ssh-keygen -t rsa
      
    2. Enable password-free SSH login on each node (including password-free login for the local node):
      1
      ssh-copy-id -i ~/.ssh/id_rsa.pub root@node_IP_address
      
  5. Configure the environment. For details, see Configuring the Compilation Environment in the Hive Porting Guide.
  6. Deploy ZooKeeper. For details, see Deploying ZooKeeper to Running and Verifying ZooKeeper in ZooKeeper Deployment Guide.
  7. Deploy Hadoop. For details, see Compiling and Decompressing Hadoop to Verifying Hadoop in Hadoop Deployment Guide.