Question
mysql log cleanup on a Hive server
I have a Hive server in my cluster running a MySQL instance. The logfile /var/run/mysqld/mysqld.log is getting really large and I need to figure out the proper way to prune it.
The server it's running on is CentOS 7. Can I just 'cat /dev/null > mysqld.log' to clear it out, or are there other considerations? Can I get away with simply stopping the MySQL instance briefly to delete or 'zero out' the file, or do I need to stop all the services on that Hive master node in Ambari?
Please advise if you can.
Thanks,
Mike

