Commit 7217f678 by Laszlo Denes Terjeki Committed by rmani

ATLAS-2921: Update import scripts exit status in case of java error

Signed-off-by: 's avatarrmani <rmani@hortonworks.com>
parent fdab2efd
...@@ -153,3 +153,5 @@ echo "Log file for import is $LOGFILE" ...@@ -153,3 +153,5 @@ echo "Log file for import is $LOGFILE"
RETVAL=$? RETVAL=$?
[ $RETVAL -eq 0 ] && echo HBase Data Model imported successfully!!! [ $RETVAL -eq 0 ] && echo HBase Data Model imported successfully!!!
[ $RETVAL -ne 0 ] && echo Failed to import HBase Data Model!!! [ $RETVAL -ne 0 ] && echo Failed to import HBase Data Model!!!
exit $RETVAL
...@@ -148,3 +148,6 @@ echo "Log file for import is $LOGFILE" ...@@ -148,3 +148,6 @@ echo "Log file for import is $LOGFILE"
RETVAL=$? RETVAL=$?
[ $RETVAL -eq 0 ] && echo Hive Meta Data imported successfully!!! [ $RETVAL -eq 0 ] && echo Hive Meta Data imported successfully!!!
[ $RETVAL -ne 0 ] && echo Failed to import Hive Meta Data!!! [ $RETVAL -ne 0 ] && echo Failed to import Hive Meta Data!!!
exit $RETVAL
...@@ -142,4 +142,7 @@ echo "Log file for import is $LOGFILE" ...@@ -142,4 +142,7 @@ echo "Log file for import is $LOGFILE"
RETVAL=$? RETVAL=$?
[ $RETVAL -eq 0 ] && echo Kafka Data Model imported successfully!!! [ $RETVAL -eq 0 ] && echo Kafka Data Model imported successfully!!!
[ $RETVAL -ne 0 ] && echo Failed to import Kafka Data Model!!! [ $RETVAL -ne 0 ] && echo Failed to import Kafka Data Model!!!
\ No newline at end of file
exit $RETVAL
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment