Github user pwendell commented on a diff in the pull request: https://github.com/apache/spark/pull/42#discussion_r10551815 --- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala --- @@ -895,4 +894,42 @@ private[spark] object Utils extends Logging { } count } + + /** Return the class name of the given object, removing all dollar signs */ + def getFormattedClassName(obj: AnyRef) = { + obj.getClass.getSimpleName.replace("$", "") + } + + def jsonOption(json: JValue): Option[JValue] = { + json match { + case JNothing => None + case value: JValue => Some(value) + } + } + + def emptyJson = JObject(List[JField]()) + + /** + * Return a Hadoop FileSystem with the scheme encoded in the given path. + * File systems currently supported include HDFS, S3, and the local file system. + */ + def getHadoopFileSystem(path: URI): FileSystem = { --- End diff -- Restricting us to specific filesystem's is not a good idea. There are many implementations of the Hadoop FileSystem API that we expect people to use. Why not just do something like: ``` val fs = FileSystem.get(uri, SparkHadoopUtil.get.newConfiguration()) ```
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---