taps.apps.configs.mapreduce¶
MapreduceConfig
¶
Bases: AppConfig
Mapreduce application configuration.
Parameters:
-
name
(Literal[str]
, default:'mapreduce'
) –Application name.
-
data_dir
(Path
) –Text file directory.
-
map_tasks
(int | None
, default:32
) –Maximum number of map tasks (
None
uses one map task per input file). -
generate
(bool
, default:False
) –Generate random text files in data-dir rather than reading existing files.
-
generated_files
(int
, default:10
) –Number of text files to generate.
-
generated_words
(int
, default:10000
) –Number of words to generate per file.
get_app
¶
get_app() -> App
Create an application instance from the config.