使用IDEA 搭建 spark on yarn 的開發環境+調試~

1.導入yarn和hdfs配置文件 由於spark on yarn 是依賴於yarn和hdfs的,因此獲取yarn和hdfs配置文件是首要條件,將core-site.xml、hdfs-site.xml 、yarn-site.xml 這三個文本考入到你IDEA項目裏面的resource目錄下,以下圖所示:java 2.添加項目依賴 除了pom裏面你要添加的:mysql <dependency>
相關文章
相關標籤/搜索