Troubleshooting Hadoop services
Hive
- Lookup what killed Hive server
$ grep --color=always -nr -B 1 'Exception|Service:HiveServer2 is started|java.lang.OutOfMemoryError' /var/log/hive/hiveserver2.log | less -N
Above command looks up the log file for exceptions and startup of hive and print one line above the search term. The line number and highlighting gets piped to less.