Apache的Nutch的命令无法执行 [英] Apache Nutch Command Unable to Execute
问题描述
我也跟着在的Apache Nutch的维基的每一步。我使用的MacOSX 10.8.3,我的 JAVA_HOME
完美设置,甚至可以看到各种命令选项时,斌/ Nutch的
被执行(根据维基)。
I followed each and every step in the Apache Nutch Wiki. I am using MacOSX 10.8.3, my JAVA_HOME
is perfectly set and can even see various command options when bin/nutch
is executed (according to the wiki).
但是当我使用斌/ Nutch的抓取网址抓取-dir 3 -depth 5 -topN
,我收到以下错误:
But when I use bin/nutch crawl urls -dir crawl -depth 3 -topN 5
, I get the following error:
bin/nutch: line 104: [: too many arguments
Error: Could not find or load main class Engines
FYI:我已经在创造了一个网址
目录 Apache的Nutch的-1.6 /网址
任何一个可以告诉可能是什么问题?
Can any one tell what might be the problem?
推荐答案
一些研究,我想通了,我忘了设定的NUTCH_JAVA_HOME后。
这里是步骤:
After some research I figured out that I forgot to set the NUTCH_JAVA_HOME. Here is the step:
set NUTCH_JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
export NUTCH_JAVA_HOME
是的,我重新设置JAVA_HOME还有:
And yes I reset the JAVA_HOME as well:
set JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
export JAVA_HOME
这篇关于Apache的Nutch的命令无法执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!