Adding a New Node to the ODP Cluster

You can follow the below steps to add a new node to the ODP cluster.

Add the Amabri Repository

It must be the same as the existing cluster.

cat /etc/yum.repos.d/ambari.repo

Bash
Copy

Add Prerequisites

Make sure to meet the following prerequisites on each cluster node.

Make sure to link ODP on Hetzner.

  1. Configure the host file using the following command.
Bash
Copy
  1. Set the hostname using the following command.
Bash
Copy
  1. Run the command vim /etc/resolv.conf and configure as below.
Bash
Copy
  1. Run the command vim /etc/selinux/config and disable SELinux.
Bash
Copy

Install the Agent

Bash
Copy

Add the Server details to Agent

vim /etc/ambari-agent/conf/ambari-agent.ini

Bash
Copy

Start the Agent

Bash
Copy

<Running>

Install Java

Bash
Copy

Install Python

Bash
Copy
Bash
Copy
Bash
Copy
Bash
Copy

Skip Users and Group Creation

Follow from the Ambari server node:

Template:

Bash
Copy

Example:

Bash
Copy

Response:

Bash
Copy

and

Bash
Copy

Install ODP Select manually on a New Host

Add the ODP-Repository

cat /etc/yum.repos.d/ambari-odp-1.repo

Bash
Copy

Install the ODP-Select

Bash
Copy

Add an Agent from the Amabri UI

Install the Clients

Troubleshooting Steps

Issue-1

If the user and group creation skipping is not performed, the following error appears.

File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/shared_initialization.py", line 50, in setup_users groups = params.user_to_groups_dict[user], KeyError: hbase' Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-63224.json', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-63224.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1_ 2', '']

Solution: Perform as suggested in Skip Users and Group Creation.

Issue-2

If odp-select is installed on new node before adding it to the cluster, the following error appears.

Unable to query for supported packages using /usr/bin/odp-select.

Solution: Add a repository as mentioned in Install ODP Select Manually on a New Host.\

Issue-3

Distro Module adding

Bash
Copy

Solution:

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated