public final class RecommenderJob extends AbstractJob
Runs a completely distributed recommender job as a series of mapreduces.
Preferences in the input file should look like userID, itemID[, preferencevalue]
Preference value is optional to accommodate applications that have no notion of a preference value (that is, the user simply expresses a preference for an item, but no degree of preference).
The preference value is assumed to be parseable as a double
. The user IDs and item IDs are
parsed as long
s.
Command line arguments specific to this class are:
VectorSimilarityMeasure
General command line options are documented in AbstractJob
.
Note that because of how Hadoop parses arguments, all "-D" arguments must appear before all other arguments.
Modifier and Type | Field and Description |
---|---|
static String |
BOOLEAN_DATA |
static String |
DEFAULT_PREPARE_PATH |
argMap, inputFile, inputPath, outputFile, outputPath, tempPath
Constructor and Description |
---|
RecommenderJob() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
int |
run(String[] args) |
addFlag, addInputOption, addOption, addOption, addOption, addOption, addOutputOption, buildOption, buildOption, getAnalyzerClassFromOption, getCLIOption, getConf, getDimensions, getFloat, getFloat, getGroup, getInputFile, getInputPath, getInt, getInt, getOption, getOption, getOption, getOptions, getOutputFile, getOutputPath, getOutputPath, getTempPath, getTempPath, hasOption, keyFor, maybePut, parseArguments, parseArguments, parseDirectories, prepareJob, prepareJob, prepareJob, prepareJob, setConf, setS3SafeCombinedInputPath, shouldRunNextPhase
public static final String BOOLEAN_DATA
public static final String DEFAULT_PREPARE_PATH
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.