[TOS tutorial 11] Creating Cluster Connection Metadata from Configuration Files
In this tutorial, create Hadoop Cluster metadata by importing the configuration from the Hadoop configuration files.
This tutorial uses Talend Data Fabric Studio version 6 and a Hadoop cluster: Cloudera CDH version 5.4.
1. Create a new Hadoop cluster metadata definition
- Ensure that the Integration perspective is selected.
- In the Project Repository, expand Metadata, right-click Hadoop Cluster, and click Create Hadoop Cluster to open the wizard.
- In the Name field of the Hadoop Cluster Connection wizard, type MyHadoopCluster_files. In the Purpose field, type Cluster connection metadata, in the Description field, type Metadata to connect to a Cloudera CDH 5.4 cluster, and click Next.
The Hadoop Configuration Import wizard opens.
2. Import the configuration from Hadoop configuration files
- In the Distribution list of the Hadoop Configuration Import wizard, select Cloudera, and in the Version list, select 4(YARN mode). There are different ways to create Hadoop cluster metadata: - Automatic configuration by retrieving the configuration from Cloudera Manager or from Ambari - Automatic configuration by importing the configuration from the Hadoop configuration files - Manual configuration
- To select the configuration from files method, in the Option panel, select Import configuration from local files, and click Next.
3. Locate the configuration files folder and retrieve configuration
- Click Browse … , navigate to C:/StudentFiles/HadoopConf, and clickOK. The Hadoop configuration files must be available and locally accessible. You will need to provide the location of the Hadoop configuration files folder. The configuration files will be parsed to retrieve the connection information. The Hadoop Configuration Import Wizard detects configuration files and lists the corresponding services. In this tutorial, we will keep the default configuration and create metadata definitions for YARN and HDFS.
- To import the configuration to the Hadoop cluster metadata created, click Finish.
4. Create definitions corresponding to YARN and HDFS
- In the authentication panel of the Hadoop Cluster Connection wizard, type the User name as student, and click Check Services. The Checking Hadoop Services window opens. Note that the Namenode and Resource Manager status is 100%.
- Close the Checking Hadoop Services window. To close the Hadoop Cluster Connection window and create the metadata, click Finish.
5. Inspect the metadata created in the Repository
- In the Repository, expand Hadoop Cluster. The metadata definition is now available.
- Expand the main definition named MyHadoopCluster_files, which corresponds to the YARN service. Expand HDFS, which is saved in the subfolder of the main MyHadoopCluster_files metadata.
The Hadoop cluster metadata definition created is now ready to be used in a Talend Job.
← PREVIOUS TUTORIAL | NEXT TUTORIAL →
Sei pronto a iniziare con Talend?
Altri articoli correlati
- Come iniziare a lavorare con Talend Open Studio for Data Integration
- [TOS tutorial 02] Reading a File
- [TOS tutorial 01] Presentazione di Talend Studio
- [TOS tutorial 03] Sorting a File
- [TOS tutorial 07] Configuring Joins in tMap
- [TOS tutorial 08] Aggiunta di filtri basati su condizioni utilizzando il componente tMap
- [TOS tutorial 09] Using Context Variables
- [TOS tutorial 06] Come unire due sorgenti di dati con il componente tMap
- [TOS tutorial 05] Procedura in tre passaggi per filtrare i dati utilizzando il componente tMap
- [TOS tutorial 04] Creazione e uso di metadati
- [TOS tutorial 13] Running a Job on Spark
- [TOS tutorial 12] Scrittura e lettura di dati su file HDFS
- [TOS tutorial 10] Creating Cluster Connection Metadata
- [TOS tutorial 14] Running a Job on YARN