There is use-cases where users may need to specify the ports used for the resource manager and history server for the minicluster.
In the current implementation, the MiniCluster sets these addresses regardless of them being already set by the user in the conf.
Users should be able to add these properties to the conf and in such case the MiniCluster will use the specified addresses. If not specified then the current behavior of the MiniCluster for explicitly setting the addresses will be used.
I'll be uploading a patch momentarily.