安装Hadoop时出错

时间:2012-10-17 20:03:20

标签: java hadoop windows-xp cygwin

我正在尝试学习hadoop,我正在关注http://v-lad.org/Tutorials/Hadoop/12%20-%20format%20the%20namendoe.html上的安装步骤。但是我收到以下错误,我没有线索为什么它无法在类路径中找到PlatformName。另外我担心,“cygpath:无法转换空路径”。任何人都可以让我知道我可能会收到此错误的原因。

谢谢

V6X5932@MC1BCCNU2320D09 ~/hadoop-0.22.0
$ bin/hadoop namenode -format
cygpath: can't convert empty path
Error: Could not find or load main class org.apache.hadoop.util.PlatformName
cygpath: can't convert empty path
cygpath: can't convert empty path
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

cygpath: can't convert empty path
Error: Could not find or load main class org.apache.hadoop.util.PlatformName
cygpath: can't convert empty path
cygpath: can't convert empty path
12/10/17 15:49:03 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG:   host = MC1BCCNU2320D09/40.9.146.66
STARTUP_MSG:   args = [-format]
STARTUP_MSG:   version = 0.22.0
STARTUP_MSG:   classpath = C:\cygwin\home\V6X5932\hadoop-                                   
Re-format filesystem in \tmp\hadoop-V6X5932\dfs\name ? (Y or N) N
Format aborted in \tmp\hadoop-V6X5932\dfs\name
12/10/17 15:52:10 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at MC1BCCNU2320D09/40.9.146.66
************************************************************/

1 个答案:

答案 0 :(得分:1)

尝试使用Cloudera VM进行Hadoop群集设置。这是一个现成的设置,以便人们可以花时间学习Hadoop而不是设置它的先决条件。当我遇到类似的情况时我想学习Apache Hive,我不得不切换到Cloudera VM。