maybe
```
InputFormatInfo.computePreferredLocations(Seq(
  new InputFormatInfo(conf, classOf[org.apache.hadoop.mapred.TextInputFormat], inputPath)
))
```