Troubleshooting Hadoop services

Hive

  1. 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.

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *