GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing dolphinscheduler.apache.org — Map Reduce — apache-dolphinscheduler 4.1.0-dev documentation Map ReduceA Map Reduce task type’s example and dive into information of PyDolphinScheduler. Example"""A example workflow for task mr.""" from pydolphinscheduler.core.engine import ProgramType from pydolphinscheduler.core.workflow import Workflow from pydolphinscheduler.tasks.map_reduce import MR with Workflow(name="task_map_reduce_example") as workflow: task = MR( name="task_mr", main_class="wordcount", main_package="hadoop-mapreduce-examples-3.3.1.jar", program_type=ProgramType.JAVA, main_args="/dolphinscheduler/tenant_exists/resources/file.txt /output/ds", ) workflow.run() Dive IntoTask MR.
YAML file example# Define the workflow workflow: name: "MapReduce" # Define the tasks within the workflow tasks: - name: task task_type: MR main_class: wordcount main_package: test_java.jar program_type: SCALA main_args: /dolphinscheduler/tenant_exists/resources/file.txt /output/ds |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |