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

질문됨 2년 전293회 조회
2개 답변
0
수락된 답변

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.

답변함 2년 전
AWS
지원 엔지니어
검토됨 22일 전
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
지원 엔지니어
답변함 2년 전
AWS
지원 엔지니어
검토됨 22일 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠