I'm trying to fire a sqoop import command from the shell script. It is working fine as expected. But, if suppose the database is missing in the Teradata then it needs to throw the error and should not go for processing of further commands in the script. As the syntax is correct, the sqoop import command is returning "0" and it is assuming that the sqoop import command is successful. How to handle this type of error in the shell script even...
Originally asked by Stack 777 on Stack Exchange (unix) (CC BY-SA 4.0).