I am working on writing a Bash script to effectively save the individual rows of a Hive query as Shell variables, where I can perform comparisons on the results. I know some shell scripting but this is beyond my knowledge.
Can I pass 4 columns of row 1 as "Array1", for example, and 4 columns of row 2 as "Array2" into bash? Even better, can I pass each column of 2 separate rows in to 8 shell variables?
Would it be better for me to perform my comparisons in Hive and pass either "Success" or "Failure" messages back to the shell?
I appreciate any guidance, examples, and/or references!