我正在尝试在windows7上安装hadoop。我已经安装了cygwin,当我安装时。/start-dfs.sh我收到以下错误:
Error: Could not find or load main class org.apache.hadoop.hdfs.tools.GetConf
Starting namenodes on []
localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-kalai-namenode kalai-PC.out
localhost: Error: Could not find or load main class org.apache.hadoop.hdfs.server.namenode.NameNode
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-kalai-datanode-kalai-PC.out
localhost: Error: Could not find or load main class org.apache.hadoop.hdfs.server.datanode.DataNode
Error: Could not find or load main class org.apache.hadoop.hdfs.tools.GetConf
有人能告诉我我做错了什么吗?
1条答案
按热度按时间ca1c2owp1#
当我使用具有管理员权限的命令提示符格式化namenode并启动服务时,上述问题得到了解决。
手动删除了c:\tmp和c:\data目录
用“以管理员身份运行”打开cmd.exe
格式化namenode并启动服务。