use this val data = sc.textFile("/home/spark/data.txt") this should work and set master as local. Input path does not exist解决方法 spark-submit --master local 即可解决! 参考:https://stackoverflow.com/questions/41339127/how-to-load-local-file-using-sc-tex…
详细错误如下: Error:Internal error: (org.jdom.input.JDOMParseException) Error on line 1: 前言中不允许有内容.org.jdom.input.JDOMParseException: Error on line 1: 前言中不允许有内容. at org.jdom.input.SAXBuilder.build(SAXBuilder.java:533) at org.jdom.input.SAXBuilder.bui…