Dear DBpedia Spotlight users, I would like to rebuild the index for DBpedia Lookup [1]. I followed the steps from the tutorial but came across problems when trying to run pignlproc nerd-stats.pig script to use its output in [2], step 2.
At first, I started the script as follows:
../pig-0.13.0-src/bin/pig -x local examples/nerd-stats/nerd-stats.pig
and then consecutively added missing parameters (i.e. PIGNLPROC_JAR,
LANG, INPUT, OUTPUT, MACROS_DIR, etc). So far so good.
Confusing part starts here:
2014-09-16 12:46:17,492 [main] ERROR org.apache.pig.impl.PigContext -
Undefined parameter : MIN_SURFACE_FORM_LENGTH
2014-09-16 12:46:17,504 [main] ERROR org.apache.pig.Main - ERROR 2997:
Encountered IOException.
org.apache.pig.tools.parameters.ParameterSubstitutionException:
Undefined parameter : MIN_SURFACE_FORM_LENGTH
This is the same error I saw earlier for the missing parameters so I
tried to do the same and added -p MIN_SURFACE_FORM_LENGTH=2 to the
starting command.
Unfortunately, a new error appears instead:
2014-09-16 12:48:33,136 [main] ERROR org.apache.pig.PigServer -
exception during parsing: Error during parsing. <file
examples/nerd-stats/nerd-stats.pig, line 24> Macro inline failed for
macro 'read'. Reason: Macro contains argument or return value
MIN_SURFACE_FORM_LENGTH which conflicts with a Pig parameter of the same
name.
I tried to find/replace all occurences of this variable in the
nerd-commons.pig macro file but it only solves the problem for this
particular parameter and further errors for other parameters arise.
Any idea what might cause this problem? I will be glad to provide you
with more information as well as pig-logfiles.
I am using Apache Pig version 0.13.1-SNAPSHOT, the scripts are freshly
checked out from [3].
Thank you very much in advance,
Wojciech
[1] https://github.com/dbpedia/lookup#rebuilding-the-index
[2] https://github.com/dbpedia/lookup#run-indexer
[3] https://github.com/dbpedia-spotlight/pignlproc
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce. Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________ Dbp-spotlight-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users
