fix 1315369: sync the namenode's role ID and configure HUE service's corresponding config item