Solr service check fails from ambari when Namenode HA is enabled with error:
Unable to create core [collection1_shard2_replica1] Caused by: Connection refused
add this line "SOLR_HDFS_CONFIG=/etc/hadoop/conf" to solr-config-env content at the end of file
Restart Solr and now the service checks should pass.
Another workaround is to edit the following file on your Ambari Server: /var/lib/ambari-server/resources/mpacks/solr-ambari-mpack-22.214.171.124.5/common-services/SOLR/126.96.36.199.5/package/scripts/solr.py, and then make this change: https://github.com/lucidworks/solr-stack/commit/7b79894b37b862b86d80c64b34230bc9fed6e54a.
Then restart the Ambari Server. With this change in place the Solr instances will be started and will work fine with NN HA.
This will be fixed in HDP 2.6