Missing hadoop installation for Windows 10

大憨熊 提交于 2019-12-31 05:23:05

问题


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.



来源:https://stackoverflow.com/questions/48650668/missing-hadoop-installation-for-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!