Create the cluster in Ambari.
Register the machines and install the TDP Datacenter components with the Ambari wizard.
After installing Apache Ambari, the next step is to create the Big Data Cluster and install the other desired services/components.
Everything happens in the Ambari installation wizard, step by step: name and version, machine registration, component distribution, customization, review, and deployment.
Your environment
If you fill in your environment details here, the examples and commands on the page use what you provided. HOST_FQDN is the target machine in the trust relationship commands: repeat them for each machine in the cluster.
Ambari Server must be installed and running: see Apache Ambari Installation.
Scenarios
- 1 · Create the cluster
- 2 · Register the hosts
- 3 · Distribute masters, slaves, and clients
- 4 · Customize the services
- 5 · Review, deploy, and resume after failures
Log in to Ambari, name the cluster, and choose the version and the package repositories.
With Ambari Server installed, the next step is to create the Big Data Cluster. You access it through the Ambari web interface, in a browser, and on first access a welcome page leads to the installation wizard. In the first steps you name the Cluster, choose the TDP version, and tell it where the packages come from.
IP or hostname of the Ambari Server machine, port 8080: http://<AMBARI_SERVER_HOST>:<AMBARI_PORT>.
User admin and password admin.
Public or Local type, with one URL for Components (TDP-3.0) and another for Utils (TDP-UTILS-3.0).
Access the Ambari web interface
The Ambari login page open in the browser.
Use a browser to access the Ambari web interface, at the IP/hostname of the Ambari Server machine and on the port shown in the table above:
http://<AMBARI_SERVER_HOST>:<AMBARI_PORT>
Log in with the default user and password from the table above.
It worked when
Start the installation wizard
The Cluster creation wizard open.
On first access, Ambari shows a welcome home page. To start the Cluster deployment, click the LAUNCH INSTALL WIZARD button.
It worked when
Name the Cluster
The Cluster name set.
Enter a name for the Cluster (<CLUSTER_NAME>) and click NEXT.
It worked when
Select the TDP version
The stack version chosen.
Select the desired TDP version.
Enter the package repositories
The Components and Utils URLs filled in.
Select the package repository type (Public or Local) and enter the URL for Components (TDP-3.0) and Utils (TDP-UTILS-3.0). Then click NEXT.
If you choose the Tecnisys Public Package Repository, enter the access credentials (username and password) directly in the URL.
It worked when
Enter the machines, register them by SSH key or manually, and confirm the prerequisites.
The wizard asks for the machines that will make up the Cluster. You enter the FQDN of each one and choose how they will be registered: automatically, with the private SSH key of the Ambari Server machine, or manually, with Ambari Agent installed by you on all machines before proceeding. After registration, Ambari checks the prerequisites of each machine.
The Fully Qualified Domain Name (FQDN) of each machine, or an Expression (Pattern Expression) that describes them.
Ambari Server must have access to the machines entered, with the FQDN resolved by a DNS Server (recommended) or locally, in the /etc/hosts file.
Automatic, by SSH key, with a Trust Relationship between Ambari Server and the machines. Or manual, with Ambari Agent installed by you.
Enter the hosts in Target Hosts
The list of machines that will make up the Cluster.
In Target Hosts, enter the Fully Qualified Domain Name (FQDN) of the hosts (machines) that will make up the Cluster.
Ambari Server must have access to the machines entered. Make sure the FQDN of the machines resolves correctly, either through a DNS Server (recommended) or locally (/etc/hosts file).
In Target Hosts, you can enter the machines using Expressions (Pattern Expressions). Machines with sequential names, from big-tdp1 to big-tdp7, would look like this: big-tdp[1-7].tdp.local.
On the Ambari Server machine, check the FQDN resolution of each machine:
getent hosts <HOST_FQDN>
It worked when
/etc/hosts. Repeat for each machine in the Cluster.Prepare the machines for registration
The machines ready for the chosen registration type.
For registration by SSH key, configure the Trust Relationship: from the Ambari Server machine, you must be able to access all machines through SSH without entering the password of the Ambari Server daemon user (root by default).
-
On the Ambari Server machine, generate a private SSH key:
Terminal inputssh-keygen -
Copy the SSH key to ALL machines of the Cluster:
Terminal inputssh-copy-id <HOST_FQDN> -
Test SSH access to ALL machines of the Cluster without entering the user's password:
Terminal inputssh root@<HOST_FQDN>
It worked when
ssh access to each machine of the Cluster works without asking for the user's password.For manual registration, install Ambari Agent yourself on all machines before proceeding:
yum install ambari-agent
rpm -q ambari-agent
It worked when
rpm -q shows the ambari-agent package installed. Repeat on all machines of the Cluster.$ rpm -q ambari-agent
ambari-agent-3.0.0.4-0.x86_64Fill in Hosts Registration Information
The machines registered in Ambari.
In Hosts Registration Information, select how the Cluster machines will be registered.
For automatic registration of the Cluster machines, provide the private SSH key of the Ambari Server machine: paste its content into the text field or upload its file. Then confirm the SSH user and port that will be used.
The RSA-type private SSH key can be obtained by running the following command:
cat ~/.ssh/id_rsa
Select manual registration of the machines. Ambari Agent was already installed by you in the previous step.
Then click REGISTER AND CONFIRM.
It worked when
Host Confirmation
After Ambari Agent is installed on all machines entered in the previous step, Ambari checks whether the prerequisites were met (JDK, Firewall, THP, among others).
Fix any errors and run the check again to proceed.
Click NEXT to advance.
It worked when
If the Package Issues alert appears
Package Issues alerts about PostgreSQL packages that are already installed can be ignored.
Select the services and indicate the machine for each component.
With the machines confirmed, you choose the Cluster services and where each component will run. For each Master component (generally, management and coordination components), you indicate one machine. For the Slaves (generally, storage and processing components) and the Clients, you indicate on which machines they will be installed. The organization must consider the needs of each component and the resources available on each machine.
The basic services, such as YARN + MapReduce2, Tez, ZooKeeper, Infra Solr, and Ambari Metrics. The others can be added after the Cluster is created.
An odd number of machines, greater than one (01). Initially, on at least 3 machines.
No services other than Edge or Gateway ones. If possible, on a dedicated machine.
Select the storage service
The Cluster storage layer chosen.
Select the service responsible for the Cluster storage layer.
Select the other services
The services that will be installed now.
Select the other Cluster services and then click NEXT.
It worked when
We recommend initially selecting the basic services, such as YARN + MapReduce2, Tez, Zookeeper, Infra Solr, and Ambari Metrics. The other services, if needed, can be added after the Cluster is created. This makes it easier to deal with possible problems in the installation of the components.
If Ambari warns about limited functionality
The Cluster requires certain services to operate fully, such as Apache Ranger for the security layer and Apache Atlas for the data governance layer. For this reason, Ambari shows alerts if any functionality is limited by the non-installation of a specific service. Ignore the alert (click the PROCEED ANYWAY button) if the service in question will be installed later or if you are aware of the limitation.
Assign the Master components
Each Master component with its machine.
Indicate the machine for each of the Master components (generally, management and coordination components) of the selected services. On the right side of the page, Ambari shows the organization of the components by machine. Then click NEXT.
It worked when
The organization must consider the needs of each component and the resources available on each machine. Some recommendations can be followed:
- Avoid installing services other than Edge or Gateway ones on the Ambari Server machine. If possible, leave a dedicated machine for Ambari Server.
- Components responsible for service high availability must be installed on separate machines. For example, NameNode and Secondary NameNode (SNameNode).
- Install ZooKeeper on an odd number of machines, in the quantity shown in the table above.
Assign the Slave and Client components
The machines for each Slave and each Client defined.
Indicate on which machines the Slave components (generally, storage and processing components) and Clients will be installed. Then click NEXT.
Whenever possible, avoid installing Slave components on the machines of Master components.
It worked when
Credentials, databases, directories, and users of each service.
The services and the machines are defined, and the wizard asks for what each service needs to be installed. In this step you define the access credentials, the database connection data, the directories, the users, and other information specific to each service and required for installation.
Credentials, Databases, Directories, Service Users, and All Configurations.
Resolve the pending items in all sections of this step and click NEXT.
All these settings will also be available for change through Ambari.
Credentials
The administration users and passwords required by the services.
Define the access credentials that the services ask for. For example, Grafana, a component of Ambari Metrics, requires you to define the tool's administration user and password.
It worked when
Databases
The connection data of each required database.
Enter the database connection data. For example, Hive requires a database to persist metadata, and the connection data can be those of an existing PostgreSQL instance.
Click the TEST CONNECTION button to test the connection to the database entered.
It worked when
Directories
The data and log directories of each service.
In this section you can customize the services' directories, such as the DataNodes data directories, the NameNode namespace directories, log directories, and so on.
If possible, use exclusive storage devices (disks, SSD, among others), volumes, and directories for the files of DataNodes, NameNodes, JournalNodes, NodeManagers, Timeline Services, and Zookeeper.
It worked when
Service Users
The operating system users of each service.
In this section you can customize the operating system users that will be created for each service.
It worked when
All Configurations
The service settings checked before advancing.
This last section gives access to all settings of the services to be installed. Take the opportunity to check and adjust whatever is needed.
If you forgot a setting, do not worry. After the installation, all these settings will also be available for change through Ambari.
It worked when
Check everything, deploy the cluster, and resume the deployment after a failure.
Everything is defined and it only remains to deploy. The review is the last step before the Cluster is created. After it, the services are installed, started, and tested, respecting the dependencies and integrations of each one. If something fails, Ambari may interrupt the deployment, and you resume it after fixing the problem.
To change a setting, the left side navigation area returns to the desired step.
PRINT generates an installation report. GENERATE BLUEPRINT generates an XML file with all the defined settings.
RETRY resumes the deployment after the problem is fixed.
Review the settings
All information checked before the Cluster is created.
In this step, the last one before the Cluster is created, Ambari presents a review of the defined settings. Check all the information and, if you need to change a setting, use the left side navigation area to go back to the desired step.
Use the PRINT button to generate an installation report and the GENERATE BLUEPRINT button to generate an XML file with all the defined settings, which can later be used to recreate the Cluster through the Ambari REST API.
To start the Cluster deployment, click the DEPLOY button.
It worked when
Follow the installation, start, and test of the services
The services installed, started, and tested.
In this step, the services will be installed, started, and tested, respecting the dependencies and integrations of each one.
Click the link in the Message column text to view the tasks scheduled for each machine.
It worked when
If the deployment is interrupted
If there are failures, Ambari may interrupt the deployment. Fix the problem and resume the deployment by clicking the RETRY button.
However, depending on the progress already made, Ambari may complete the deployment and make the Cluster available as it is, even if not all components of a given service were successfully installed, started, or tested. In that case, after the Cluster is created, you can, in Ambari itself, change the settings or remove and reinstall only the problematic service.
When the deployment is finished, click NEXT.
Finish in the Summary
The Cluster created and the administration area open.
In the last step of the process, Ambari presents a summary of the implementation.
Click the COMPLETE button to finish the operation and access the administration area of the created Cluster.
It worked when
When something goes wrong
Troubleshooting
Pick the symptom or describe what appears in the wizard.
- Errors in the host confirmation. Cause: After installing Ambari Agent on the machines, Ambari checks the prerequisites of each one (JDK, Firewall, THP, among others) and found pending issues. What to do: Fix the reported errors and run the check again. Only then can you proceed.
- Package Issues alert about PostgreSQL packages. Cause: PostgreSQL packages already installed on the machines. What to do: Package Issues alerts about PostgreSQL packages that are already installed can be ignored.
- Limited functionality alert in the service selection. Cause: The Cluster requires certain services to operate fully, such as Apache Ranger for the security layer and Apache Atlas for the data governance layer, and one of them was not selected. What to do: Ignore the alert (PROCEED ANYWAY button) if the service in question will be installed later, or if you are aware of the limitation.
- The deployment was interrupted by a failure. Cause: A failure in the installation, start, or test of a service led Ambari to interrupt the deployment. What to do: Click the link in the Message column text to see the tasks scheduled for each machine, fix the problem, and resume the deployment with the RETRY button.
- The cluster was created, but a service did not complete its installation. Cause: Depending on the progress already made, Ambari can complete the deployment and make the Cluster available as it is, even if not all components of a service were successfully installed, started, or tested. What to do: In Ambari itself, change the settings or remove and reinstall only the problematic service.
Next steps
Next step
TDPCTL Installation
The Tecnisys command-line interface for task automation and extension installation on TDP.
Concepts
TDP Datacenter Architecture
How the TDP Datacenter components are organized, the role of each machine, and management through Apache Ambari.