You are here

Error during installation of Hadoop on Oracle WebCenter

APPLIES TO:

Oracle WebCenter Sites - Version 7.6.0 and later
Information in this document applies to any platform.

GOAL

When trying to run the command "$ bin/hadoop namenode -format" during hadoop installation the user sees the below error message

bin/hadoop: line 234: C:\Program: command not found
 

SOLUTION

There is an issue with the environment configuration used. The problem is caused by the whitespace between “Program Files” in the Windows folder structure. In other words if your JAVA_HOME is “C:\Program Files\java”, there is whitespace between “Program" and "Files”. So one way to solve the problem is put your jdk in a different folder, something like c:\java\jdk should fix the issue.