spark怎么从hadoop读取文件

2024-12-25 19:33:30
推荐回答(2个)
回答1:

Hadoop配置节点:sg202(namenode SecondaryNameNode) sg206(datanode) sg207(datanode) sg208(datanode)
Spark配置节点:sg201(Master) sg211(Worker)

回答2:

sc.textFile("hdfs://hadoopmaster:9000/path")