Deprecated API


Contents
Deprecated Classes
org.apache.hadoop.mapred.OutputFormatBase
          Use FileOutputFormat 
org.apache.hadoop.fs.ShellCommand
          Use Shell instead. 
org.apache.hadoop.io.UTF8
          replaced by Text 
 

Deprecated Methods
org.apache.hadoop.dfs.NameNode.abandonFileInProgress(String, String)
           
org.apache.hadoop.mapred.JobConf.addInputPath(Path)
          Use FileInputFormat.addInputPath(JobConf, Path) or FileInputFormat.addInputPaths(JobConf, String) 
org.apache.hadoop.util.CopyFiles.copy(Configuration, String, String, Path, boolean, boolean)
           
org.apache.hadoop.dfs.DataNode.createSocketAddr(String)
           
org.apache.hadoop.dfs.HftpFileSystem.delete(Path)
           
org.apache.hadoop.dfs.DistributedFileSystem.delete(Path)
           
org.apache.hadoop.fs.RawLocalFileSystem.delete(Path)
           
org.apache.hadoop.fs.FilterFileSystem.delete(Path)
           
org.apache.hadoop.fs.FileSystem.delete(Path)
          Use delete(Path, boolean) instead 
org.apache.hadoop.fs.kfs.KosmosFileSystem.delete(Path)
           
org.apache.hadoop.fs.s3.S3FileSystem.delete(Path)
           
org.apache.hadoop.dfs.NameNode.delete(String)
           
org.apache.hadoop.dfs.NameNode.exists(String)
          Use getFileInfo(String) instead 
org.apache.hadoop.fs.FileSystem.getBlockSize(Path)
          Use getFileStatus() instead 
org.apache.hadoop.io.SequenceFile.getCompressionType(Configuration)
          Use JobConf.getMapOutputCompressionType() to get SequenceFile.CompressionType for intermediate map-outputs or SequenceFileOutputFormat.getOutputCompressionType(org.apache.hadoop.mapred.JobConf) to get SequenceFile.CompressionType for job-outputs. 
org.apache.hadoop.dfs.DistributedFileSystem.getContentLength(Path)
           
org.apache.hadoop.fs.FileSystem.getContentLength(Path)
          Use FileSystem.getContentSummary(Path). 
org.apache.hadoop.fs.FileSystem.getFileCacheHints(Path, long, long)
          Use getFileBlockLocations() instead Return a 2D array of size 1x1 or greater, containing hostnames where portions of the given file can be found. For a nonexistent file or regions, null will be returned. This call is most helpful with DFS, where it returns hostnames of machines that contain the given file. The FileSystem will simply return an elt containing 'localhost'. 
org.apache.hadoop.mapred.JobConf.getInputPaths()
          Use FileInputFormat.getInputPaths(JobConf) 
org.apache.hadoop.fs.FileSystem.getLength(Path)
          Use getFileStatus() instead 
org.apache.hadoop.fs.kfs.KosmosFileSystem.getLength(Path)
           
org.apache.hadoop.dfs.DistributedFileSystem.getName()
            
org.apache.hadoop.fs.RawLocalFileSystem.getName()
            
org.apache.hadoop.fs.FilterFileSystem.getName()
          call #getUri() instead. 
org.apache.hadoop.fs.FileSystem.getName()
          call #getUri() instead. 
org.apache.hadoop.fs.kfs.KosmosFileSystem.getName()
           
org.apache.hadoop.fs.FileSystem.getNamed(String, Configuration)
          call #get(URI,Configuration) instead. 
org.apache.hadoop.mapred.JobConf.getOutputPath()
          Use FileOutputFormat.getOutputPath(JobConf) or FileOutputFormat.getWorkOutputPath(JobConf) Get the Path to the output directory for the map-reduce job. 
org.apache.hadoop.fs.FileSystem.getReplication(Path)
          Use getFileStatus() instead 
org.apache.hadoop.fs.kfs.KosmosFileSystem.getReplication(Path)
           
org.apache.hadoop.net.NetUtils.getServerAddress(Configuration, String, String, String)
           
org.apache.hadoop.mapred.JobClient.getTaskOutputFilter()
           
org.apache.hadoop.fs.FileSystem.isDirectory(Path)
          Use getFileStatus() instead 
org.apache.hadoop.fs.kfs.KosmosFileSystem.isDirectory(Path)
           
org.apache.hadoop.fs.kfs.KosmosFileSystem.isFile(Path)
           
org.apache.hadoop.fs.RawLocalFileSystem.lock(Path, boolean)
            
org.apache.hadoop.fs.kfs.KosmosFileSystem.lock(Path, boolean)
           
org.apache.hadoop.io.SequenceFile.Reader.next(DataOutputBuffer)
          Call SequenceFile.Reader.nextRaw(DataOutputBuffer,SequenceFile.ValueBytes). 
org.apache.hadoop.fs.RawLocalFileSystem.release(Path)
            
org.apache.hadoop.fs.kfs.KosmosFileSystem.release(Path)
           
org.apache.hadoop.io.SequenceFile.setCompressionType(Configuration, SequenceFile.CompressionType)
          Use the one of the many SequenceFile.createWriter methods to specify the SequenceFile.CompressionType while creating the SequenceFile or JobConf.setMapOutputCompressionType(org.apache.hadoop.io.SequenceFile.CompressionType) to specify the SequenceFile.CompressionType for intermediate map-outputs or SequenceFileOutputFormat.setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType) to specify the SequenceFile.CompressionType for job-outputs. or 
org.apache.hadoop.mapred.JobConf.setInputPath(Path)
          Use FileInputFormat.setInputPaths(JobConf, Path...) or FileInputFormat.setInputPaths(JobConf, String) 
org.apache.hadoop.mapred.JobConf.setOutputPath(Path)
          Use FileOutputFormat.setOutputPath(JobConf, Path) Set the Path of the output directory for the map-reduce job.

Note:

 
org.apache.hadoop.mapred.JobClient.setTaskOutputFilter(JobClient.TaskStatusFilter)
           
 

Deprecated Constructors
org.apache.hadoop.dfs.ChecksumDistributedFileSystem(InetSocketAddress, Configuration)
            
org.apache.hadoop.dfs.DistributedFileSystem(InetSocketAddress, Configuration)
            
org.apache.hadoop.mapred.FileSplit(Path, long, long, JobConf)
            
org.apache.hadoop.fs.FSDataOutputStream(OutputStream)
           
org.apache.hadoop.io.SetFile.Writer(FileSystem, String, Class)
          pass a Configuration too 
 



Copyright © 2006 The Apache Software Foundation