Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idle job killer thinks job flows running Hive are idle #60

Closed
coyotemarin opened this issue Nov 9, 2010 · 5 comments
Closed

idle job killer thinks job flows running Hive are idle #60

coyotemarin opened this issue Nov 9, 2010 · 5 comments
Labels

Comments

@coyotemarin
Copy link
Collaborator

The idle job killer wrongly kills job flows that are running Hive-interactive. Need to fix this!

@coyotemarin
Copy link
Collaborator Author

So, the step that runs hive reports that it's "done":

  "Steps": [
    {
      "ExecutionStatusDetail": {
        "StartDateTime": 1289265498.0,
        "EndDateTime": 1289265523.0,
        "LastStateChangeReason": null,
        "CreationDateTime": 1289265353.0,
        "State": "COMPLETED"
      },
      "StepConfig": {
        "Name": "Setup Hive",
        "HadoopJarStep": {
          "Jar": "s3:\/\/us-east-1.elasticmapreduce\/libs\/script-runner\/script-runner.jar",
          "Args": [
            "s3:\/\/us-east-1.elasticmapreduce\/libs\/hive\/0.4\/install-hive"
          ],
          "Properties": [],
          "MainClass": null
        },
        "ActionOnFailure": "TERMINATE_JOB_FLOW"
      }
    }
  ],

Probably the easiest fix is to leave alone job flows where the last step (and in most cases, the only step) isn't running the Hadoop streaming jar.

Not sure what happens if you try to run streaming jobs in a job flow where you're already running Hive. Going to try it!

@coyotemarin
Copy link
Collaborator Author

It looks like the streaming job works, until you run a Hive query, and that kills the streaming job. So they don't mix in any practical way.

So it looks like we should leave alone a job that has any non-streaming jar steps (since mrjob will only run streaming steps)

@coyotemarin
Copy link
Collaborator Author

Huh, so here's what a Hadoop Debugging step looks like (which is compatible with hadoop streaming):

    {
      "ExecutionStatusDetail": {
        "StartDateTime": null,
        "EndDateTime": null,
        "LastStateChangeReason": "Job terminated",
        "CreationDateTime": 1285049200.0,
        "State": "CANCELLED"
      },
      "StepConfig": {
        "Name": "Setup Hadoop Debugging",
        "HadoopJarStep": {
          "Jar": "s3n:\/\/us-east-1.elasticmapreduce\/libs\/script-runner\/script-runner.jar",
          "Args": [
            "s3n:\/\/us-east-1.elasticmapreduce\/libs\/state-pusher\/0.1\/fetch"
          ],
          "Properties": [],
          "MainClass": null
        },
        "ActionOnFailure": "TERMINATE_JOB_FLOW"
      }
    },

I think I'll only leave alone job flows that have no hadoop streaming steps, since they're clearly not the purview of mrjob.

@coyotemarin
Copy link
Collaborator Author

Fixed in dev, and heavily tested!

@coyotemarin
Copy link
Collaborator Author

Fixed in v0.2.0.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant