HADOOP-7658. Fix hadoop config template for secured and unsecured installation. Contributed by Eric Yang