hadoop installation in window 10 path error - windows

I am trying to install Hadoop 2.6 in Windows 10, while doing that i'm getting below error
C:\hadoop-2.6.2\bin>hadoop -version
The system cannot find the path specified.
Error: JAVA_HOME is incorrectly set.
Please update C:\hadoop-2.6.2\conf\hadoop-env.cmd
'-Xmx512m' is not recognized as an internal or external command, operable program or batch file.

I had the same issue, and it can be fixed by 2 ways.
check your environment variable, if JAVA_HOME setup for the user or not and path setup correctly or not.
Please remove system JAVA_HOME and setup for user.
Go to command line and setup Java Home and Path.
set JAVA_HOME = your jdk home directory
set PATH = %JAVA_HOME%/bin

Related

MVN is not recognised as internal or external command. UPDATE: JAVA_HOME is not defined is error now in cmd

Whenever I type mvn -version to check version installed it says that "mvn is not an internal or external command" in cmd.
I have added images to show that I have added environmental variable and the path. do check those and help out.
UPDATE :
After having been told that i have to remove \bin from environment variable of both JAVA_HOME and MAVEN_HOME. now I'm getting error in cmd as JAVA_HOME is not defined.
Environmental variable image
Path Image
Cmd Image
Your MVN_HOME should be the maven root folder (G:\compressed\apache-maven-3.8.4) not up to the bin folder.
Change MVN_HOME variable to G:\compressed\apache-maven-3.8.4 then open a new cmd prompt then the command will work.

JAVA_HOME points to an invalid installation during ElasticSearch installation

I'm trying to run the following command through powershell to install ElastiSearch but it the service batch file can't find the JAVA_HOME path.
I've added JAVA_HOME to my system variables and I can see the path when I echo JAVA_HOME through command line. Not sure why the batch file is pointing to an empty path.
Invoke-Expression -command "C:\elasticsearch-6.5.4\elasticsearch-6.5.
4\bin\elasticsearch-service install"
Installing service : "elasticsearch-service-x64"
Using JAVA_HOME (64-bit): ""
JAVA_HOME points to an invalid Java installation (no jvm.dll found in "").
Exiting...
Obviously, your variable in system variables JAVA_HOME is pointing to the wrong location. Make sure to provide the right path for JAVA_HOME to be: .\Java\jdk1.8.0

Error for Kafka install on windows 7(without Cygwin)

I am trying to install kafka_2.10-0.10.1.0 on windows 7(without Cygwin), but I am getting below error when I am trying to start server
.\bin\windows\zookeeper-server-start.bat .\config\server.properties
The syntax of the command is incorrect.
The syntax of the command is incorrect.
I have followed below steps.
Downloaded kafka_2.10-0.10.1.0 folder.
Changed log.dirs path in server.properties
Set the JAVA_HOME path in system
Please guide to install

Apache Spark can not Run on Windows

I had downloaded spark-2.0.1-bin-hadoop2.7 and installed it. I installed JAVA and set JAVA_HOME in System Variables.
But in running I have this Error:
How to it can be fixed ?
I think the problem is with whitespaces in your path.
Try to place downloaded spark in for example. F:\Msc\BigData\BigDataSeminar\Spark\
Also check whether SPARK_HOME, JAVA_HOME and HADOOP_HOME are placed in the path without whitespaces.

Issues installing PhantomJS for windows: command not recognized

following the docs here: http://attester.ariatemplates.com/usage/phantom.html, I am trying to install phantomjs on my windows machine.
I tried adding multiple lines to my Path system variable, and yet, I get the same error in the command prompt when I type in phantomjs --version.
" 'phantomjs' is not recognized as an internal or external command, operable program or batch file."
I added the phantomjs.exe to C:\phantomjs\bin\, and added C:\phantomjs\bin\phantomjs to the path, and any variation that I could think of, such as:
C:\phantomjs\bin\phantomjs.exe\; C:\phantomjs\bin; C:\phantomjs\bin\phantomjs\;
How am I not installing this right?
You don't need to put all the directories to the environment PATH variable.
Add only following to your path and restart your command prompt.
C:\phantomjs\bin\
Add phantomjs.exe to C:\Windows\System32 folder.

Resources