{"action":"closed","issue":{"url":"https://api.github.com/repos/twitter/scalding/issues/1398","labels_url":"https://api.github.com/repos/twitter/scalding/issues/1398/labels{/name}","comments_url":"https://api.github.com/repos/twitter/scalding/issues/1398/comments","events_url":"https://api.github.com/repos/twitter/scalding/issues/1398/events","html_url":"https://github.com/twitter/scalding/issues/1398","id":98586737,"number":1398,"title":"Hadoop Configuration asScala conversion might be broken","user":{"login":"rubanm","id":2401144,"avatar_url":"https://avatars.githubusercontent.com/u/2401144?v=3","gravatar_id":"","url":"https://api.github.com/users/rubanm","html_url":"https://github.com/rubanm","followers_url":"https://api.github.com/users/rubanm/followers","following_url":"https://api.github.com/users/rubanm/following{/other_user}","gists_url":"https://api.github.com/users/rubanm/gists{/gist_id}","starred_url":"https://api.github.com/users/rubanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubanm/subscriptions","organizations_url":"https://api.github.com/users/rubanm/orgs","repos_url":"https://api.github.com/users/rubanm/repos","events_url":"https://api.github.com/users/rubanm/events{/privacy}","received_events_url":"https://api.github.com/users/rubanm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-02T05:41:08Z","updated_at":"2015-10-02T18:16:55Z","closed_at":"2015-10-02T18:16:55Z","body":"Ran into this during https://github.com/twitter/scalding/pull/1397\r\n\r\nIn the repl:\r\n```scala\r\nscalding> val Hdfs(_, conf) = implicitly[Mode]\r\n\r\nscalding> conf.get(\"mapred.reduce.tasks\")\r\nres0: String = 1\r\n\r\nscalding> com.twitter.scalding.Config.fromHadoop(conf).get(\"mapred.reduce.tasks\")\r\nres1: Option[String] = None\r\n```\r\nOn checking further:\r\n```scala\r\nscalding> import scala.collection.JavaConverters._\r\nimport scala.collection.JavaConverters._\r\n\r\nscalding> conf.asScala.filter(_.getKey == \"mapred.reduce.tasks\")\r\nres3: Iterable[java.util.Map.Entry[String,String]] = List()\r\n\r\nscalding> val it = conf.iterator\r\n\r\nscalding> while(it.hasNext) { val a = it.next; if (a.getKey ==  \"mapred.reduce.tasks\") println(a) }\r\n// Nothing is printed\r\n```\r\n\r\nThis does not repro for some of the other keys I tried with, but it does look like something is broken in the iterator.\r\n\r\nThe iterator codepath is used for creating com.twitter.scalding.Config objects so this needs to be investigated I think."}}