AWScala
AWScala copied to clipboard
Cluster object has missing fields
The design of the type awscala.emr.Cluster is such that
- it extends
com.amazonaws.services.elasticmapreduce.model.Cluster. - it takes an instance of
com.amazonaws.services.elasticmapreduce.model.Clusterfor initialization. In the constructor, it copies some fields.
Now the problem here is that some fields are missing. For me, I encountered this problem for the field master dns name and I had to write the following
val clstr = emr.describeCluster(new DescribeClusterRequest().withClusterId(cid)).getCluster
val cluster = Cluster(clstr)
cluster.setMasterPublicDnsName(clstr.getMasterPublicDnsName)
Constructor https://github.com/seratch/AWScala/blob/master/emr/src/main/scala/awscala/emr/Cluster.scala#L18
Thanks for taking the time to report this issue! If you don't mind, can you send a pull request for fixing this?