Freedom
Freedom

Reputation: 833

Can not compile Nutch1.4 with ant

all I'm trying to deploy Nutch1.4 to Hadoop cluster(following this page). I got some problems when compiling Nutch with ant.

problem 1

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.

problem 2

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

Answers (1)

Tejas Patil
Tejas Patil

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:

  1. 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.
  2. Check that you have installed a JDK and not a JRE
  3. Check if your JAVA_HOME environment variable point to the JDK. System PATH variable must have $JAVA_HOME/bin and $ANT_HOME/bin appended to it. ANT_HOME variable must point to the ant installation directory.
  4. Can you successfully run normal ant targets on any other build files ? try out with small ant build file.
  5. 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

Related Questions