Permalink
Fetching contributors…
Cannot retrieve contributors at this time
119 lines (118 sloc) 3.53 KB
<?xml version="1.0"?>
<configuration>
<property>
<!-- run the job verbosely ? -->
<name>mongo.job.verbose</name>
<value>false</value>
</property>
<property>
<!-- Run the job in the foreground and wait for response, or background it? -->
<name>mongo.job.background</name>
<value>false</value>
</property>
<property>
<!-- The field to pass as the mapper key. Defaults to _id if blank -->
<name>mongo.input.key</name>
<value></value>
</property>
<property>
<!-- If you are reading from mongo, the URI -->
<name>mongo.input.uri</name>
<value><!-- mongodb://localhost/db.collection?option=value --></value>
</property>
<property>
<!-- If you are writing to mongo, the URI -->
<name>mongo.output.uri</name>
<value><!-- mongodb://localhost/db.collection?option=value --></value>
</property>
<property>
<!-- The query, in JSON, to execute [OPTIONAL] -->
<name>mongo.input.query</name>
<value></value>
</property>
<property>
<!-- The fields, in JSON, to read [OPTIONAL] -->
<name>mongo.input.fields</name>
<value></value>
</property>
<property>
<!-- A JSON sort specification for read [OPTIONAL] -->
<name>mongo.input.sort</name>
<value></value>
</property>
<property>
<!-- The number of documents to limit to for read [OPTIONAL] -->
<name>mongo.input.limit</name>
<value>0</value> <!-- 0 == no limit -->
</property>
<property>
<!-- The number of documents to skip in read [OPTIONAL] -->
<!-- TODO - Are we running limit() or skip() first? -->
<name>mongo.input.skip</name>
<value>0</value> <!-- 0 == no skip -->
</property>
<property>
<!-- IF you want to control the split size for input, set it here.
Should be a long indicating # of docs per split
Affects # of mappers so be careful what you do -->
<name>mongo.input.split_size</name>
</property>
<!-- These .job.* class defs are optional and only needed if you use the MongoTool baseclass -->
<property>
<!-- Class for the mapper -->
<name>mongo.job.mapper</name>
<value></value>
</property>
<property>
<!-- Reducer class -->
<name>mongo.job.reducer</name>
<value></value>
</property>
<property>
<!-- InputFormat Class -->
<name>mongo.job.input.format</name>
<!-- <value>com.mongodb.hadoop.MongoInputFormat</value> -->
<value></value>
</property>
<property>
<!-- OutputFormat Class -->
<name>mongo.job.output.format</name>
<!-- <value>com.mongodb.hadoop.MongoOutputFormat</value> -->
<value></value>
</property>
<property>
<!-- Output key class for the output format -->
<name>mongo.job.output.key</name>
<value></value>
</property>
<property>
<!-- Output value class for the output format -->
<name>mongo.job.output.value</name>
<value></value>
</property>
<property>
<!-- Output key class for the mapper [optional] -->
<name>mongo.job.mapper.output.key</name>
<value></value>
</property>
<property>
<!-- Output value class for the mapper [optional] -->
<name>mongo.job.mapper.output.value</name>
<value></value>
</property>
<property>
<!-- Class for the combiner [optional] -->
<name>mongo.job.combiner</name>
<value></value>
</property>
<property>
<!-- Partitioner class [optional] -->
<name>mongo.job.partitioner</name>
<value></value>
</property>
<property>
<!-- Sort Comparator class [optional] -->
<name>mongo.job.sort_comparator</name>
<value></value>
</property>
</configuration>