I would like to ask about the way the users of Dkpro Bigdata write cases to HDFS ? What i tried to do is to create an Engine from the class TextWriter and pass to it an URI to the place where i would like the output to be saved but sadly is not working.
This is the code i tried
public AnalysisEngineDescription buildMapperEngine(Configuration job)
throws ResourceInitializationException
{
ExternalResourceDescription locator = createExternalResourceDescription(HdfsResourceLoaderLocator.class,HdfsResourceLoaderLocator.PARAM_FILESYSTEM, hdfsURI);
AnalysisEngineDescription tokenizer = createEngineDescription(BreakIteratorSegmenter.class);
AnalysisEngineDescription stemmer = createEngineDescription(SnowballStemmer.class,
SnowballStemmer.PARAM_LANGUAGE, "en");
AnalysisEngineDescription writer = createEngineDescription(TextWriter.class,
TextWriter.PARAM_TARGET_LOCATION,"hdfs:/user/befi8957/sample_experiment/result");
return createEngineDescription(tokenizer, stemmer,writer);
}
Regards,
Yamen
--
You received this message because you are subscribed to the Google Groups "dkpro-bigdata-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dkpro-bigdata-u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.