зеркало из https://github.com/mozilla/inferno.git
This commit is contained in:
Родитель
d935982359
Коммит
ac057eb1c8
|
@ -1,4 +1,47 @@
|
|||
Inferno Command Line Interface
|
||||
==============================
|
||||
|
||||
TODO
|
||||
::
|
||||
|
||||
diana@ubuntu:~$ inferno --help
|
||||
usage: inferno [-h] [-v] [-s SERVER] [-e SETTINGS_FILE] [-i IMMEDIATE_RULE]
|
||||
[-y RULES_DIRECTORY] [-f] [-x] [-D] [-d] [-p] [-t SOURCE_TAGS]
|
||||
[-r RESULT_TAG] [-S DAY_START] [-R DAY_RANGE] [-O DAY_OFFSET]
|
||||
[-P PARAMETERS] [-l PARAMETER_FILE]
|
||||
[--example_rules EXAMPLE_RULES]
|
||||
|
||||
Inferno: a python map/reduce library powered by disco.
|
||||
|
||||
optional arguments:
|
||||
-h, --help show this help message and exit
|
||||
-v, --version show program's version number and exit
|
||||
-s SERVER, --server SERVER
|
||||
master disco server
|
||||
-e SETTINGS_FILE, --settings SETTINGS_FILE
|
||||
path to settings file
|
||||
-i IMMEDIATE_RULE, --immediate-rule IMMEDIATE_RULE
|
||||
execute <module>.<rule> immediately and exit
|
||||
-y RULES_DIRECTORY, --rules-directory RULES_DIRECTORY
|
||||
directory to search for Inferno rules
|
||||
-f, --force force processing of blobs
|
||||
-x, --start-paused start Inferno without starting any automatic rules
|
||||
(pause mode)
|
||||
-D, --disco-debug debug map/reduce to disco console
|
||||
-d, --debug debug flag for inferno consumers
|
||||
-p, --profile output disco profiling data
|
||||
-t SOURCE_TAGS, --source-tags SOURCE_TAGS
|
||||
override the ddfs source tags
|
||||
-r RESULT_TAG, --result-tag RESULT_TAG
|
||||
override the ddfs result tag
|
||||
-S DAY_START, --day-start DAY_START
|
||||
override the start day for blobs
|
||||
-R DAY_RANGE, --day-range DAY_RANGE
|
||||
override the day range for blobs
|
||||
-O DAY_OFFSET, --day-offset DAY_OFFSET
|
||||
override the days previous to start day for blobs
|
||||
-P PARAMETERS, --parameters PARAMETERS
|
||||
additional rule parameters (in yaml)
|
||||
-l PARAMETER_FILE, --parameter-file PARAMETER_FILE
|
||||
additional rule parameters (in a yaml file)
|
||||
--example_rules EXAMPLE_RULES
|
||||
create example rules
|
||||
|
|
|
@ -85,9 +85,12 @@ the next.
|
|||
intended for CSV data that was placed in DDFS using the ``ddfs chunk``
|
||||
command.
|
||||
|
||||
If the input data is lines of JSON, you would set the
|
||||
If the input data is lines of JSON, you would indtead set the
|
||||
**map_input_stream** to use the **chunk_json_keyset_stream** reader in
|
||||
your Inferno rule instead.
|
||||
your Inferno rule.
|
||||
|
||||
The input reader will process all DDFS tags that are prefixed with the
|
||||
tag names defined in **source_tags** of your Inferno rule.
|
||||
|
||||
.. code-block:: python
|
||||
:emphasize-lines: 3,4
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
Example 2 - Campaign Finance
|
||||
============================
|
||||
|
||||
Rule
|
||||
----
|
||||
Inferno Rule
|
||||
------------
|
||||
|
||||
The Inferno map/reduce rule (``inferno/example_rules/election.py``):
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче