Command line Cmd在Pig安装后找不到Hadoop

Command line Cmd在Pig安装后找不到Hadoop,command-line,hadoop,installation,apache-pig,Command Line,Hadoop,Installation,Apache Pig,安装pig之后,我不能再从命令行调用hadoop了 例: 下面是我的路径: c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Int

安装pig之后,我不能再从命令行调用hadoop了

例:

下面是我的
路径

c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Python27;C:\Python27\Scripts;C:\Python27\Lib\site-packages;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin\;C:\Users\Andrew\Documents\bat_files;C:\Users\Andrew\Documents\Hadoop\hadoop-0.23.8\bin;C:\Users\Andrew\Documents\Pig\pig-0.11.1\bin
还有Hadoop、Pig和Java安装变量,如下所示:

HADOOP\u安装
C:\Users\Andrew\Documents\HADOOP\HADOOP-0.23.8

PIG\u安装
C:\Users\Andrew\Documents\PIG\PIG-0.11.1

JAVA\u HOME
C:\Program Files\JAVA\jdk1.7.0\u 21


一切似乎都设置正确。当我从它们的目录运行命令时,它们都会执行。为什么命令行不能识别hadoop?谢谢

简短回答

hadoop
是一个bash脚本。Windows命令行不知道如何运行此操作

长答案

如果你想在Windows上运行Hadoop,你需要更多的设置。有很多教程,但老实说,最好是在unix机器或VM上运行它


如果您只是针对windows,您甚至可以在windows上运行Hadoop和Pig,或者避免解决方法和问题的麻烦,或者更好地使用可以直接安装在windows中的方法。

@climpage,感谢您的建议+1。你是100%正确的。下午的大部分时间,我都试图使用您提供的教程和其他许多教程在windows上安装hadoop,但都没有成功。对于其他尝试的人,我建议您也运行VM或双引导您的机器。除了下载,Cloudera VM是即时的。
c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Python27;C:\Python27\Scripts;C:\Python27\Lib\site-packages;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin\;C:\Users\Andrew\Documents\bat_files;C:\Users\Andrew\Documents\Hadoop\hadoop-0.23.8\bin;C:\Users\Andrew\Documents\Pig\pig-0.11.1\bin