-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add check for PEM exists for Hive and Livy DAG. #621
Conversation
Codecov ReportBase: 98.30% // Head: 98.30% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #621 +/- ##
=======================================
Coverage 98.30% 98.30%
=======================================
Files 79 79
Lines 4131 4131
=======================================
Hits 4061 4061
Misses 70 70 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am thinking that the tasks in the DAG could be running on different workers and hence there could be failure as the file system would not be common between them. Can we think if this could be the reason and if yes, how we can resolve this?
when I checked in the worker node the pem file wasn't present. So added the check if the file exists or not. as you mentioned if a different worker for tasks but I see only one worker node. if that's the case multiple workers are present then files created in one worker should also be made available in the workers as well. |
ad40371
to
aa2fd63
Compare
aa2fd63
to
8b8ee96
Compare
when I checked in the worker node the pem file wasn't present. So added the check if the file exists or not. as you mentioned if a different worker for tasks but I see only one worker node. if that's the case multiple workers are present then files created in one worker should also be made available in the workers as well. @pankajkoti I have modified the code to download the PEM as part of the SSH task, so now PEM gets downloaded into the same worker where SSH tasks run. |
7dae190
to
8c845bc
Compare
8c845bc
to
513c50d
Compare
While running hive or livy dag where we use ssh to login into the machine pem file was missing in /tmp folder.
Now PEM is downloaded into /tmp in SSH task so PEM is available at the same worker node.
This PR checks whether the file exists or not while copying the pem into /tmp and downloading before SSH into the machine.
If it doesn't exist then it will raise an exception.
closes: #620