CLASSPATH问题在Cygwin上的Hadoop中,同时运行“hadoop版本”命令 [英] CLASSPATH issue in Hadoop on Cygwin while running "hadoop version" command

查看:209
本文介绍了CLASSPATH问题在Cygwin上的Hadoop中,同时运行“hadoop版本”命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows上使用Cygwin终端从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

这解决了它

这篇关于CLASSPATH问题在Cygwin上的Hadoop中,同时运行“hadoop版本”命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆