Missing hadoop installation for Windows 10

2020-05-06 14:52发布

问题:

I successfully installed Hadoop 2.8.1 on Windows 10. Now I'm trying to install Hive version 2.1. When I try to start hive I receive the following error:

I have HADOOP_HOME set to D:\Hadoop-2.8.1\bin in the environment variables and added to the path system variable. Do I have to specify this path in a hive file?

回答1:

J Skinner,

You have wrongly set HADOOP_HOME.

In User variables, configure HADOOP_HOME with following value.

HADOOP_HOME-->D:\Hadoop-2.8.1

In System variables, add following value in addition of existing path value.

path--><Existing path values>;D:\Hadoop-2.8.1\bin;

If you not ok with that above configurations just try below way.

Open cmd prompt, Just set home by setting path and home.

C:>set HADOOP_HOME=D:\Hadoop-2.8.1

C:>set PATH=%PATH%;%HADOOP_HOME%\bin

Now start hadoop services from same cmd prompt and then go to hive shell.

Hope this helpful for you.