1. 程式人生 > >HDFS讀資料過程筆記

HDFS讀資料過程筆記

對程式程式碼段的理解:

Configuration conf = new Configuration();
//先定義環境變數,預設將HDFS工程的兩個配置檔案載入進來hdfs-site.xml和core-site.xml獲取重要引數fs.defaultFS
FileSystem fs = FileSystem.get(conf);
//定義檔案變數例項fs

一共存在七步。