hadoop - What are the different ways to check if the mapreduce program ran successfully -


if need automate mapreduce program or run script, different ways check if mapreduce program ran successfully? 1 way find if _success file created in output directory. command "hadoop jar program.jar hdfs:/input.txt hdfs:/output" return 0 or 1 based on success or failure ?

just other command in linux, can check exit status of hadoop jar command using built in variable $?.

you can use: echo $?
after executing hadoop jar command check status.

the exit status value varies 0 255. exit status of 0 implies command executed while non-zero value indicates command failed.

edit: see how achieve automation or run script, refer hadoop job fails when invoked cron.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -