]]>windows涓嬩嬌鐢↖DEA寮鍙?spark SQL渚嬪瓙鎶llegalArgumentException: java.net.URISyntaxException: Relative path in absolute URIhttp://www.aygfsteel.com/keweibo/articles/433116.htmlKeKeWed, 21 Mar 2018 03:31:00 GMThttp://www.aygfsteel.com/keweibo/articles/433116.htmlhttp://www.aygfsteel.com/keweibo/comments/433116.htmlhttp://www.aygfsteel.com/keweibo/articles/433116.html#Feedback0http://www.aygfsteel.com/keweibo/comments/commentRss/433116.htmlhttp://www.aygfsteel.com/keweibo/services/trackbacks/433116.html public class FirstSparkSql { public static void main(String[] args) {
String masterMode = "local";//spark://master:7077 SparkConf conf = new SparkConf(); //conf.set("spark.executor.memory", "1024m"); conf.setAppName("First Spark SQL"); conf.setMaster(masterMode); //瑙e喅寮傚父錛?/span>IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI conf.set("spark.sql.warehouse.dir","D:\\temp_files"); JavaSparkContext sc = new JavaSparkContext(conf); SparkSession spark = SparkSession.builder().config(conf).getOrCreate(); Dataset<Row> df = spark.read().json("hdfs://master:9000/user/spark/input/persons.txt"); df.show(); sc.stop(); } }
]]>Spark閿欒錛歍askSchedulerImpl: Initial job has not accepted any resourceshttp://www.aygfsteel.com/keweibo/articles/433095.htmlKeKeMon, 12 Mar 2018 10:09:00 GMThttp://www.aygfsteel.com/keweibo/articles/433095.htmlhttp://www.aygfsteel.com/keweibo/comments/433095.htmlhttp://www.aygfsteel.com/keweibo/articles/433095.html#Feedback0http://www.aygfsteel.com/keweibo/comments/commentRss/433095.htmlhttp://www.aygfsteel.com/keweibo/services/trackbacks/433095.html鍦╳indows鐜涓嬩嬌鐢↖ntellij idea榪滅▼鎵цspark紼嬪簭鏃訛紝閬囧埌浜?jiǎn)浠ヤ笅闂锛?xì)
Intellij鎺у埗鍙拌緭鍑?guó)櫗﹀憡锛?xì)WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources