[master] Let OldLogsCleaner find out whether logs are archived to hourly directory

Author: fan

Summary: There was a static boolean initialized by HLog constructor to indicate whether logs should be archived to hourly directory. But OldLogsCleaner only runs on HMaster, which does not have HLog instance. It could not get the correct configuration so cleanup was still using the legacy way.

Test Plan:
1. Unit test passes.
2. Replaced jar on master of os 8. The cleaner has expected behavior now.

Reviewers: adela, aaiyer

Reviewed By: adela

CC: HBase Eng@

Differential Revision: https://phabricator.fb.com/D1010092

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1532464 13f79535-47bb-0310-9956-ffa450edef68