Reputation: 833
all I'm trying to deploy Nutch1.4 to Hadoop cluster(following this page). I got some problems when compiling Nutch with ant.
When I run ant command, I got the following error:
/home/xenserver/apache-nutch-1.4-bin/build.xml:71: invalid Date syntax in "01/25/1971 2:00 pm"
I remove attribute "datetime" from line 71 in file build.xml and run ant again. Then I got another problem.
The error is:
/home/xenserver/apache-nutch-1.4/build.xml:412: syntax errors in ivy file: java.text.ParseException: http://java.sun.com/xml/jaxp/properties/schemaLanguage in file:/home/xenserver/apache-nutch-1.4/ivy/ivy.xml at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser$Parser.parse(XmlModuleDescriptorParser.java:273)
........
What's wrong with the steps above? Is there any tutorial for compiling Nutch1.4? Need your help.Thanks in advance.
Upvotes: 0
Views: 1212
Reputation: 6169
For compiling nutch 1.4, all you have to do is run ant clean deploy
from the nutch directory. The output is created in the directory named 'runtime
' with 2 folders: one for local mode and other one for cluster mode.
please check the date settings and ant
installation on your machine. I think that is casing the issue. Also have you tampered/ edited /home/xenserver/apache-nutch-1.4/ivy/ivy.xml
? Please check that file too.
EDIT:
There is some problem with the build file when executed on your Linux box. Check these out: this and this.
These are the things that you should verify on your setup:
java version
and ant version
: dont use old ones. get the latest ones or ones that are compatible with your nutch release. FYI: for nutch-1.4 I am using apache-ant-1.8.3 and java jdk1.6.0_18. This combination works perfectly fine with me.JAVA_HOME
environment variable point to the JDK. System PATH
variable must have $JAVA_HOME/bin
and $ANT_HOME/bin
appended to it. ANT_HOM
E variable must point to the ant installation directory.Still facing the same issue, run ant command with -v option. This will provide more information about the error faced. eg.
ant -v clean deploy
Upvotes: 1