Use chmod() instead of umask()
Make adminer.key group-readable
Adapt to mapping structure

Mappings return a different structure actually:
http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/mapping-intro.html#_viewing_the_mapping