Giter VIP home page Giter VIP logo

Comments (8)

irskep avatar irskep commented on July 22, 2024

Would it be more appropriate to call out to the ssh utility or to add a dependency on something like paramiko?

from mrjob.

irskep avatar irskep commented on July 22, 2024

I'm refactoring the S3 and SSH log fetcher functionality to subclass LogFetcher in a new submodule.

from mrjob.logfetch.ssh import SSHLogFetcher
# etc.

This will probably also involve breaking a lot of S3-related code out of EMRJobRunner, which probably isn't a bad thing since that class is currently a couple thousand lines long.

from mrjob.

coyotemarin avatar coyotemarin commented on July 22, 2024

Yup, that sounds good. Another good way to approach this is to start out by building a standalone utility (in mrjob.tools.emr) that fetches and analyzes logs, and then patch it into EMRJobRunner.

And please, use scp; don't add another library dependency. :)

from mrjob.

irskep avatar irskep commented on July 22, 2024

Can do. My current strategy is to copy any relevant functions (ls/get from S3, local, and SSH + dependencies) into instance methods and helpers for fetchers so that logfetch can be used independently. Then I will write a tool around it, verify by hand on various cases, add mocking for SSH + automated tests, and finally insert it into EMRJobRunner, removing redundant functions.

from mrjob.

coyotemarin avatar coyotemarin commented on July 22, 2024

Sounds like a good plan.

from mrjob.

irskep avatar irskep commented on July 22, 2024

New info: logs have slightly different paths on S3 vs local. Here's a quickref I'll put in the comments:

S3 location             Local location
/daemons                / (root)
/jobs                   /history
/node                   <not present>
/steps                  /steps
/task-attempts          /userlogs

from mrjob.

irskep avatar irskep commented on July 22, 2024

I believe this can be closed unless it also encompasses a log fetching/parsing refactor.

from mrjob.

coyotemarin avatar coyotemarin commented on July 22, 2024

Yup, thanks!

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.