File watch in S3 and send the particular path to a program











up vote
0
down vote

favorite












I am new with S3 bucket processing.
I run my hive scripts running in ec2-insctance and its results in the form of .csv files gets saved in their respective folders according to the script in S3. Now my requirement is that I have to have a file watch to see whenever a new .csv file is overwritten in every folders in S3 and send the full path of those .csv to my python program and call the program to run and save the output.csv in the same folder.It would be helpful if anyone can suggest some ways so that I could pick up and implement it.










share|improve this question
























  • AWS lambda is typically used for file watching
    – cricket_007
    Nov 22 at 17:24















up vote
0
down vote

favorite












I am new with S3 bucket processing.
I run my hive scripts running in ec2-insctance and its results in the form of .csv files gets saved in their respective folders according to the script in S3. Now my requirement is that I have to have a file watch to see whenever a new .csv file is overwritten in every folders in S3 and send the full path of those .csv to my python program and call the program to run and save the output.csv in the same folder.It would be helpful if anyone can suggest some ways so that I could pick up and implement it.










share|improve this question
























  • AWS lambda is typically used for file watching
    – cricket_007
    Nov 22 at 17:24













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am new with S3 bucket processing.
I run my hive scripts running in ec2-insctance and its results in the form of .csv files gets saved in their respective folders according to the script in S3. Now my requirement is that I have to have a file watch to see whenever a new .csv file is overwritten in every folders in S3 and send the full path of those .csv to my python program and call the program to run and save the output.csv in the same folder.It would be helpful if anyone can suggest some ways so that I could pick up and implement it.










share|improve this question















I am new with S3 bucket processing.
I run my hive scripts running in ec2-insctance and its results in the form of .csv files gets saved in their respective folders according to the script in S3. Now my requirement is that I have to have a file watch to see whenever a new .csv file is overwritten in every folders in S3 and send the full path of those .csv to my python program and call the program to run and save the output.csv in the same folder.It would be helpful if anyone can suggest some ways so that I could pick up and implement it.







hadoop amazon-s3 amazon-ec2 hive






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 at 9:56

























asked Nov 22 at 9:46









Vijaya Seetharaman

5419




5419












  • AWS lambda is typically used for file watching
    – cricket_007
    Nov 22 at 17:24


















  • AWS lambda is typically used for file watching
    – cricket_007
    Nov 22 at 17:24
















AWS lambda is typically used for file watching
– cricket_007
Nov 22 at 17:24




AWS lambda is typically used for file watching
– cricket_007
Nov 22 at 17:24












1 Answer
1






active

oldest

votes

















up vote
0
down vote














  1. you can use Spark Streaming to monitor a directory, kick off work when new entries are added. Needs to you run a spark cluster all the time.

  2. you can set up S3 itself to send events through S3 Event notifications to their queue service or AWS lambda.


Option #2 is going to be the lowest cost and most reliable






share|improve this answer





















  • Is it possible with Oozie Coordinator running in Ec2-instance? I am asking this because my python script reside in ec2-instance. And for S3 Event notification my ec2-instance doesnot have web server enabled. I am unable to proceed with only amazon documentation. Wanted some basic explanation rather than too complicated
    – Vijaya Seetharaman
    Nov 26 at 11:56










  • no idea, sorry.
    – Steve Loughran
    Nov 26 at 14:42











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53428046%2ffile-watch-in-s3-and-send-the-particular-path-to-a-program%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote














  1. you can use Spark Streaming to monitor a directory, kick off work when new entries are added. Needs to you run a spark cluster all the time.

  2. you can set up S3 itself to send events through S3 Event notifications to their queue service or AWS lambda.


Option #2 is going to be the lowest cost and most reliable






share|improve this answer





















  • Is it possible with Oozie Coordinator running in Ec2-instance? I am asking this because my python script reside in ec2-instance. And for S3 Event notification my ec2-instance doesnot have web server enabled. I am unable to proceed with only amazon documentation. Wanted some basic explanation rather than too complicated
    – Vijaya Seetharaman
    Nov 26 at 11:56










  • no idea, sorry.
    – Steve Loughran
    Nov 26 at 14:42















up vote
0
down vote














  1. you can use Spark Streaming to monitor a directory, kick off work when new entries are added. Needs to you run a spark cluster all the time.

  2. you can set up S3 itself to send events through S3 Event notifications to their queue service or AWS lambda.


Option #2 is going to be the lowest cost and most reliable






share|improve this answer





















  • Is it possible with Oozie Coordinator running in Ec2-instance? I am asking this because my python script reside in ec2-instance. And for S3 Event notification my ec2-instance doesnot have web server enabled. I am unable to proceed with only amazon documentation. Wanted some basic explanation rather than too complicated
    – Vijaya Seetharaman
    Nov 26 at 11:56










  • no idea, sorry.
    – Steve Loughran
    Nov 26 at 14:42













up vote
0
down vote










up vote
0
down vote










  1. you can use Spark Streaming to monitor a directory, kick off work when new entries are added. Needs to you run a spark cluster all the time.

  2. you can set up S3 itself to send events through S3 Event notifications to their queue service or AWS lambda.


Option #2 is going to be the lowest cost and most reliable






share|improve this answer













  1. you can use Spark Streaming to monitor a directory, kick off work when new entries are added. Needs to you run a spark cluster all the time.

  2. you can set up S3 itself to send events through S3 Event notifications to their queue service or AWS lambda.


Option #2 is going to be the lowest cost and most reliable







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 24 at 17:21









Steve Loughran

4,96511417




4,96511417












  • Is it possible with Oozie Coordinator running in Ec2-instance? I am asking this because my python script reside in ec2-instance. And for S3 Event notification my ec2-instance doesnot have web server enabled. I am unable to proceed with only amazon documentation. Wanted some basic explanation rather than too complicated
    – Vijaya Seetharaman
    Nov 26 at 11:56










  • no idea, sorry.
    – Steve Loughran
    Nov 26 at 14:42


















  • Is it possible with Oozie Coordinator running in Ec2-instance? I am asking this because my python script reside in ec2-instance. And for S3 Event notification my ec2-instance doesnot have web server enabled. I am unable to proceed with only amazon documentation. Wanted some basic explanation rather than too complicated
    – Vijaya Seetharaman
    Nov 26 at 11:56










  • no idea, sorry.
    – Steve Loughran
    Nov 26 at 14:42
















Is it possible with Oozie Coordinator running in Ec2-instance? I am asking this because my python script reside in ec2-instance. And for S3 Event notification my ec2-instance doesnot have web server enabled. I am unable to proceed with only amazon documentation. Wanted some basic explanation rather than too complicated
– Vijaya Seetharaman
Nov 26 at 11:56




Is it possible with Oozie Coordinator running in Ec2-instance? I am asking this because my python script reside in ec2-instance. And for S3 Event notification my ec2-instance doesnot have web server enabled. I am unable to proceed with only amazon documentation. Wanted some basic explanation rather than too complicated
– Vijaya Seetharaman
Nov 26 at 11:56












no idea, sorry.
– Steve Loughran
Nov 26 at 14:42




no idea, sorry.
– Steve Loughran
Nov 26 at 14:42


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53428046%2ffile-watch-in-s3-and-send-the-particular-path-to-a-program%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What visual should I use to simply compare current year value vs last year in Power BI desktop

How to ignore python UserWarning in pytest?

Alexandru Averescu