Uh oh!
There was an error while loading. Please reload this page.
Print s3 logs - #9
Conversation
flahertyb
commented
Apr 18, 2014
prints s3 logs for a shell command activity or given no argument prints all s3 logs
flahertyb
commented
Apr 18, 2014
mattgillooly
commented
Apr 21, 2014
@flahertyb - can you handle this exception more gracefully? When running this without a ~/.aws-sdk config file... |
mattgillooly
commented
Apr 21, 2014
Additionally, there should be instructions for configuring the credentials, and the config file should be named after pipely, not aws-sdk. |
mattgillooly
commented
Apr 21, 2014
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. |
mattgillooly
commented
Apr 21, 2014
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
flahertyb
commented
Apr 22, 2014
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. |
mattgillooly
commented
Apr 22, 2014
Neat! I will use this tonight! |
flahertyb
commented
Apr 24, 2014
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. |
