Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Crash if mapper or reducer does not yield anything #66

Open
a4tunado opened this Issue · 1 comment

2 participants

@a4tunado

Some jobs do not produce any output for ex. uploading input data to external storage or something like this. Dumbo expected that each reducer or mapper yields some data otherwise it leads to crash.

@a4tunado a4tunado closed this
@a4tunado a4tunado reopened this
@a4tunado a4tunado referenced this issue from a commit in a4tunado/dumbo
@a4tunado a4tunado Fix #66 Use empty tupple when return result is None 177eb67
@toidi

You can create empty generator like this

def reducer(data):
    for key, values in data:
        # do something

    return
    yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.