problems with its solution
1. JAVA PATH ISSUE
first is JAVA_PATH
issue
Note: Have to use JDK
not JRE
.
For Hadoop try to use folder name without space
In Environment variable
JAVA_HOME = C:\Java\jdk1.7.0_25
In path
variable add below code with othres with ;
sepration
%JAVA_HOME%\bin
In hadoop-env.sh
file (you can find this file from C:\cygwin\usr\local\hadoop-1.1.2\conf
if you are using windows machine).
Note that, remove #
from starting of line and USE \\
twice in file
export JAVA_HOME=C:\\Java\\jdk1.7.0_25
if everything OK with JAVA_PATH you can check from CYGWIN
consol
try below code to get javaPath
which hadoop
will use
echo $JAVA_HOME
here you will get java version path
also can set JAVAPATH
from runtime,try below code on CYGWIN
treminal
export JAVA_HOME=C:/JAVA/Jdk1.7.0_25
2. USER ISSUE
first of all Note that when you start with hadoop
installation use same USER
for MASTER
and SALVE
.
If you have different user then have to generate one extra file with name config
(without extension)
if your MASTER's
machine name is jubin-pc
and username is jubinp
and SLAVES
machine name is trainees11
and username is trainees
(have to do vice-verse for both)
config file(for MASTER) Location C:\cygwin\home\jubinp\.ssh\
Host trainees11
User trainees
config file(for SLAVE) Location C:\cygwin\home\trainees\.ssh\
Host jubin-pc
User jubinp