运行“hadoop 版本"时 Cygwin 上的 Hadoop 中的 CLASSPATH 问题命令 [英] CLASSPATH issue in Hadoop on Cygwin while running "hadoop version" command
本文介绍了运行“hadoop 版本"时 Cygwin 上的 Hadoop 中的 CLASSPATH 问题命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用 Cygwin 终端在 Windows 上从 Apache 安装了 Hadoop 2.1 测试版.运行命令 hadoop version
给我这个错误:
I have installed Hadoop version 2.1 beta from Apache on Windows using Cygwin terminal. Running the command hadoop version
gets me this error :
Error: Could not find or load main class org.apache.hadoop.util.VersionInfo
推荐答案
您也可以将以下内容添加到您的 ~/.bashrc
you can also add the following to your ~/.bashrc
export HADOOP_CLASSPATH=$(cygpath -pw $(hadoop classpath)):$HADOOP_CLASSPATH
这为我解决了
这篇关于运行“hadoop 版本"时 Cygwin 上的 Hadoop 中的 CLASSPATH 问题命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文