I had created a shell script to invoke beeline shell. But, how can I handle errors in the beeline shell with the below two scenarios.
If suppose there are any connection errors in the beeline shell, it should print the error message in the log file.
If suppose, there is an error in the beeline shell command then it should print the corresponding error message in the log file.
What can I try to accomplish this?