One quick solution is to add application host to cluster and give (only) HDFS Gateway role to it. Then you can use NameNode Nameservice name as uri e.g. hdfs://nameservice1/.
Cons: - Host goes under CM management i.e. get monitored by agent, be capable of getting assigned other roles and so on. - Files are distributed e.g. under /opt/cloudera which consume disk space (take log space into consideration also). - Some ports - 9000 and 9001 are used by agent. These might cross administrative boundary that please carefully consider and make a plan beforehand.