make endpoint configurable for HADOOP-10400

Simply made an endpoint configurable.