I think i can do something similar to the advice in the above blog. However i need to know which is the variable that hadoop is using to call java in order to change it in the config files.
If you have some info about it, please post here in order to try to solve the problem.
Thanks in advance.
Hadoop uses JAVA_HOME to determine where your Java distribution is installed. In a Linux installation, there's a file called hadoop/etc/hadoop/hadoop-env.sh. It might be .cmd instead of .sh on Windows, but I'm not sure.
Yes, the JAVA_HOME variable is fine in my laptop. However, hadoop must use in another part of its code the variable %USERNAME% or %USERPROFILE%. Those variables are the problematic thing. I need to locate that part in hadoop and try to change in some config file (if it is possible). Actually i have another machine with ubuntu and hadoop works normally. The idea was installing on windows to do some specific work in both systems.
I appreciate your attention, and if you get some new info about this kind of problems (user name with spaces and yarn problems in windows) please don't hesitate in posting it here.
I don't, sorry, David. I'm not sure why that should be hard-coded anywhere, if it's not in your
%PATH%
and you're not in that directory.Well, here are some info (although it is a little bit old) that could give some clue about the problem:
blog.benhall.me.uk/2011/01/install...
I think i can do something similar to the advice in the above blog. However i need to know which is the variable that hadoop is using to call java in order to change it in the config files.
If you have some info about it, please post here in order to try to solve the problem.
Thanks in advance.
Hadoop uses
JAVA_HOME
to determine where your Java distribution is installed. In a Linux installation, there's a file calledhadoop/etc/hadoop/hadoop-env.sh
. It might be.cmd
instead of.sh
on Windows, but I'm not sure.Check out my other article on installing Hadoop on Linux. (Search for "JAVA_HOME" to find the relevant bit.)
Yes, the JAVA_HOME variable is fine in my laptop. However, hadoop must use in another part of its code the variable %USERNAME% or %USERPROFILE%. Those variables are the problematic thing. I need to locate that part in hadoop and try to change in some config file (if it is possible). Actually i have another machine with ubuntu and hadoop works normally. The idea was installing on windows to do some specific work in both systems.
I appreciate your attention, and if you get some new info about this kind of problems (user name with spaces and yarn problems in windows) please don't hesitate in posting it here.
thanks a lot.
Hey Guys, I am also the same problem in my system due to space in my system user name >Did You find any Solution
thanx in advance