Giter Site home page Giter Site logo

Comments (5)

coyotemarin avatar coyotemarin commented on August 20, 2024

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!

from mrjob.

coyotemarin avatar coyotemarin commented on August 20, 2024

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)

from mrjob.

coyotemarin avatar coyotemarin commented on August 20, 2024

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.

from mrjob.

coyotemarin avatar coyotemarin commented on August 20, 2024

Fixed in dev, and heavily tested!

from mrjob.

coyotemarin avatar coyotemarin commented on August 20, 2024

Fixed in v0.2.0.

from mrjob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.