-
Notifications
You must be signed in to change notification settings - Fork 2
Print s3 logs #9
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
base: master
Are you sure you want to change the base?
Conversation
flahertyb
commented
Apr 18, 2014
prints s3 logs for a shell command activity or given no argument prints all s3 logs
|
@flahertyb - can you handle this exception more gracefully? When running this without a ~/.aws-sdk config file... |
|
Additionally, there should be instructions for configuring the credentials, and the config file should be named after pipely, not aws-sdk. |
|
It may be helpful to look at how other gems handle this type of config. Fog: https://github.com/fog/fog-core/blob/master/lib/fog/core/credentials.rb#L44 I like how RSpec enables a combination of .rspec file, commandline switches, and configuration in Ruby to set the same core settings. We should sketch out a README of how this would ideally look for Pipely. |
|
This git doc is a good example of how we might want to explain Pipely's subcommands. http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository |
now ConfigureAws looks at the .pipely file The Api classes are singletons that mixin ConfigureAws so we aren't making repeated calls to configure/create the aws-sdk client objects Component, Instance, and Pipeline, don't inherit from anything
|
Ok, a little messy at the moment in terms of interfaces, but now when you run with the -s option, pipely will a) try and print the log urls from the stderr and stdout fields, and b) try to print some info about a corresponding EMR step, including start time and end time.
It currently doesn't handle multiple attempts, just matches on the streaming hadoop call. |
|
Neat! I will use this tonight! |
|
Can now match an attempt to an emr step. Running with the -s option and a component name like this:
now gives you a list of EMR steps mapped to each attempt for the active instance of that component I was unable to match based on start time and end time, because the values are all the same from attempt to attempt. I instead had to search for the step name in the errorMessage field on the attempt. Additionally, this should now work even if you have multiple EMR Clusters in your pipeline. On to getting emr logs for those attempts, and then taking a step back and hacking on a readme. |
5d074fe to
3f7e53b
Compare
