How to check if a database exists in teradata while firing a sqoop import command in shell script?
0
votes
1
answer
2109
views
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 though the database is missing in the Teradata?
Asked by Stack 777
Jun 28, 2017, 09:41 AM
Last activity: May 5, 2025, 12:05 AM
Last activity: May 5, 2025, 12:05 AM