Elasticsearch node client 2.2.0 does not pickup elasticsearch.yml config

I am trying to use Elasticsearch node client in Java. According to this document here, the config file for Elasticsearch will be used when placed in the resources directory. This is not happening for me however. All my config in elasticsearch.yml, including path.home, clustername, node.name... are ignored.

Is there any update that makes Elasticsearch no longer picking up this config file? Should I use application.conf instead?