Is it NUTCH-185? Don't believe it's compatible with 1.x versions of Nutch.
> Hi all,
>
> I am trying to use the parse-xml plugin with the latest nutch version 1.3.
> I followed all the instruction for compiling a plugin in NUtch, however I
> et a lot of compilation errors:
>
> compile:
> [echo] Compiling plugin: parse-xml
> [javac] Compiling 6 source files to
> /home/lorenzo/nutch-1.3/build/parse-xml/classes
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLInde
> xer.java:31: cannot find symbol
> [javac] symbol : class LogFormatter
> [javac] location: package org.apache.nutch.util
> [javac] import org.apache.nutch.util.LogFormatter;
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLPars
> er.java:38: cannot find symbol
> [javac] symbol : class LogFormatter
> [javac] location: package org.apache.nutch.util
> [javac] import org.apache.nutch.util.LogFormatter;
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/config/
> XMLParserConfig.java:28: cannot find symbol
> [javac] symbol : class NutchConf
> [javac] location: package org.apache.nutch.util
> [javac] import org.apache.nutch.util.NutchConf;
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLInde
> xer.java:38: org.apache.nutch.parse.xml.XMLIndexer is not abstract and does
> not override abstract method
> filter(org.apache.nutch.indexer.NutchDocument,org.apache.nutch.parse.Parse,
> org.apache.hadoop.io.Text,org.apache.nutch.crawl.CrawlDatum,org.apache.nutc
> h.crawl.Inlinks) in org.apache.nutch.indexer.IndexingFilter
> [javac] public class XMLIndexer implements IndexingFilter {
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLInde
> xer.java:39: cannot find symbol
> [javac] symbol : variable LogFormatter
> [javac] location: class org.apache.nutch.parse.xml.XMLIndexer
> [javac] public static final Logger LOG =
> LogFormatter.getLogger(XMLIndexer.class
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLInde
> xer.java:48: cannot find symbol
> [javac] symbol : class LogFormatter
> [javac] location: package org.apache.nutch.util
> [javac]
org.apache.nutch.util.LogFormatter.getLogStream(this.LOG,
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLInde
> xer.java:57: cannot find symbol
> [javac] symbol : method getMetadata()
> [javac] location: class org.apache.nutch.parse.ParseData
> [javac] Properties p = pa.getMetadata();
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLInde
> xer.java:67: cannot find symbol
> [javac] symbol : method Text(java.lang.String,java.lang.String)
> [javac] location: class org.apache.lucene.document.Field
> [javac] field = Field.Text(key,
> fieldContent);
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLInde
> xer.java:92: cannot find symbol
> [javac] symbol : method Text(java.lang.String,java.lang.String)
> [javac] location: class org.apache.lucene.document.Field
> [javac] field = Field.Text(fieldName, content);
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLInde
> xer.java:94: cannot find symbol
> [javac] symbol : method Keyword(java.lang.String,java.lang.String)
> [javac] location: class org.apache.lucene.document.Field
> [javac] field = Field.Keyword(fieldName, content);
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLInde
> xer.java:96: cannot find symbol
> [javac] symbol : method UnIndexed(java.lang.String,java.lang.String)
> [javac] location: class org.apache.lucene.document.Field
> [javac] field = Field.UnIndexed(fieldName, content);
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLInde
> xer.java:98: cannot find symbol
> [javac] symbol : method UnStored(java.lang.String,java.lang.String)
> [javac] location: class org.apache.lucene.document.Field
> [javac] field = Field.UnStored(fieldName, content);
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLPars
> er.java:61: org.apache.nutch.parse.xml.XMLParser is not abstract and does
> not override abstract method getParse(org.apache.nutch.protocol.Content)
> in
> org.apache.nutch.parse.Parser
> [javac] public class XMLParser implements Parser {
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLPars
> er.java:81: getParse(org.apache.nutch.protocol.Content) in
> org.apache.nutch.parse.xml.XMLParser cannot implement
> getParse(org.apache.nutch.protocol.Content) in
> org.apache.nutch.parse.Parser; attempting to use incompatible return type
> [javac] found : org.apache.nutch.parse.Parse
> [javac] required: org.apache.nutch.parse.ParseResult
> [javac] public Parse getParse(Content content) {
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLPars
> er.java:65: cannot find symbol
> [javac] symbol : variable LogFormatter
> [javac] location: class org.apache.nutch.parse.xml.XMLParser
> [javac] public static final Logger LOG = LogFormatter
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLPars
> er.java:76: cannot find symbol
> [javac] symbol : class LogFormatter
> [javac] location: package org.apache.nutch.util
> [javac]
org.apache.nutch.util.LogFormatter.getLogStream(this.LOG,
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLPars
> er.java:83: putAll(java.util.Map<? extends java.lang.Object,? extends
> java.lang.Object>) in
> java.util.Hashtable<java.lang.Object,java.lang.Object> cannot be
> applied to (org.apache.nutch.metadata.Metadata)
> [javac] metadata.putAll(content.getMetadata());
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLPars
> er.java:106: getEmptyParse(org.apache.hadoop.conf.Configuration) in
> org.apache.nutch.parse.ParseStatus cannot be applied to ()
> [javac] .getEmptyParse();
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLPars
> er.java:110: getEmptyParse(org.apache.hadoop.conf.Configuration) in
> org.apache.nutch.parse.ParseStatus cannot be applied to ()
> [javac] .getEmptyParse();
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLPars
> er.java:114: cannot find symbol
> [javac] symbol : method getOutlinks(java.lang.String)
> [javac] location: class org.apache.nutch.parse.OutlinkExtractor
> [javac] OutlinkExtractor.getOutlinks(text),
> metadata);
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/XMLPars
> er.java:113: internal error; cannot instantiate
> org.apache.nutch.parse.ParseData.<init> at
> org.apache.nutch.parse.ParseData to ()
> [javac] ParseData parseData = new
> ParseData(ParseStatus.STATUS_SUCCESS, title,
> [javac] ^
> [javac]
> /nutch-1.3/src/plugin/parse-xml/src/java/org/apache/nutch/parse/xml/config/
> XMLParserConfig.java:52: cannot find symbol
> [javac] symbol : variable NutchConf
> [javac] location: class
> org.apache.nutch.parse.xml.config.XMLParserConfig
> [javac] InputStream configIs = NutchConf.get()
> [javac] ^
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 22 errors
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Problem-when-compiling-parse-xml-plugin
> -tp3117957p3117957.html Sent from the Nutch - User mailing list archive at
> Nabble.com.