EMR : cron: A yarn command is skipped

0

On EMR trying to add yarn command to cron.

I tested directly calling yarn command in cron. But it seems to be skipping that command.

This is the command added to cron

*/1 * * * * hadoop date;yarn

No matter where I put even script skips it. If I execute a script manually it works. Just via cron yarn is not even attempted

gefragt vor 2 Jahren293 Aufrufe
2 Antworten
0
Akzeptierte Antwort

Thanks for you response. Yes the intention is to run multiple commands. It does not need to be in inside ( ). I have verified this. It inly needs to be separated out with semi-colon. And I was able to find the problem. The command was failing with some environment variable settings and it is good now. It wasn't a issue with yarn command or cron. Thanks again for responding.

beantwortet vor 2 Jahren
AWS
SUPPORT-TECHNIKER
überprüft vor 23 Tagen
0

The command mentioned above hadoop date;yarn looks incomplete. Can you please share an example of what you are trying to do?

If the intention is to run multiple commands in a cron you can surround the semicolon separate commands inside a ( ), for example */1 * * * * (hadoop version;yarn version). I hope this answers your question, if not please share more details on the use case and I'll be happy to assist you.

AWS
SUPPORT-TECHNIKER
beantwortet vor 2 Jahren
AWS
SUPPORT-TECHNIKER
überprüft vor 23 Tagen

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen