0

我正在尝试学习 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
************************************************************/
4

1 回答 1

1

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

于 2012-10-17T20:23:32.447 回答