2017-04-09 80 views

回答

0

Hadoop支持不同的FileSystem實現,並且所有這些屬性定義要使用的複製因子爲其相應的文件系統。

----------------------------------------------------------------------------------------------- 
| Replication Factor Property| FileSystem  | URI Scheme | Java Implementation   | 
|       |     |   | (org.apache.hadoop)   | 
----------------------------------------------------------------------------------------------- 
| dfs.replication   | HDFS    | hdfs  | hdfs.DistriburedFileSystem  | 
----------------------------------------------------------------------------------------------- 
| file.replication   | Local   | file  | fs.LocalFileSystem    | 
----------------------------------------------------------------------------------------------- 
| ftp.replication   | FTP    | ftp  | fs.ftp.FTPFileSystem   |  
----------------------------------------------------------------------------------------------- 
| s3.replication    | S3 (block based) | s3   | fs.s3.S3FileSystem    | 
----------------------------------------------------------------------------------------------- 
| s3native.replication  | S3 (native)  | s3n  | fs.s3native.NativeS3FileSystem | 
----------------------------------------------------------------------------------------------- 

如果fs.defaultFS定義文件系統方案是hdfs://然後比HDFS將被從未使用其它的複製屬性。