Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Selección Comando
-----------------------------------------------
*+ 1 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.el7_0.x86_64/jre/bin/java
2 /usr/java/jdk1.8.0_45/jre/bin/java
3 /usr/java/jdk1.8.0_45/bin/java
Le ponemos password
passwd hadoop
XXXXX
Ya tenemos el usuario
Vamos a /opt/hadoop
cd /opt/hadoop
Lo mejor es abrir una nueva sesión de terminal para que pille las variables
NOTA IMPORTANTE: a partir de este momento debes cambiar la versión de
Hadoop que aparece en esta guía por la que hayas descargado tu. En esta guía se
usa la 2.6.0. Si has descargado la última será posible mente 2.7.X
Ejecutar “hadoop –h” para comprobar si accedemos
hadoop -h
Usage: hadoop [--config confdir] COMMAND
where COMMAND is one of:
fs run a generic filesystem user client
version print the version
jar <jar> run a jar file
checknative [-a|-h] check native hadoop and compression libraries availability
distcp <srcurl> <desturl> copy file or directories recursively
archive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop archive
classpath prints the class path needed to get the
credential interact with credential providers
Hadoop jar and the required libraries
daemonlog get/set the log level for each daemon
trace view and modify Hadoop tracing settings
or
CLASSNAME run the class named CLASSNAME
Comprobar el contenido del fichero part. Debe contener el fichero XML que
cumpla la condición
2. Configurar SSH
Configuramos la conectividad SSH del nodo.
Creamos las claves
[hadoop@localhost hadoop]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/hadoop/.ssh/id_rsa):
Created directory '/home/hadoop/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/hadoop/.ssh/id_rsa.
Your public key has been saved in /home/hadoop/.ssh/id_rsa.pub.
The key fingerprint is:
6e:3e:59:be:9b:8e:1f:59:ea:a5:dd:87:8d:31:2d:82 hadoop@localhost.localdomain
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
| |
| |
| S .. . |
| . E+. + .|
| o++ .. B |
| ooo.* .o o|
| o+Oo. .. |
+-----------------+