开发者社区> 问答> 正文

MaxCompute用户指南:MapReduce:Java SDK:兼容版本SDK概述


MaxCompute 兼容版本的 MapReduce 与 Hadoop MapReduce 兼容性的详细列表,如下表所示:

类型接口是否兼容
Mappervoid map(KEYIN key, VALUEIN value, org.apache.hadoop.mapreduce.Mapper.Context context)
Mappervoid run(org.apache.hadoop.mapreduce.Mapper.Context context)
Mappervoid setup(org.apache.hadoop.mapreduce.Mapper.Context context)
Reducervoid cleanup(org.apache.hadoop.mapreduce.Reducer.Context context)
Reducervoid reduce(KEYIN key, VALUEIN value, org.apache.hadoop.mapreduce.Reducer.Context context)
Reducervoid run(org.apache.hadoop.mapreduce.Reducer.Context context)
Reducervoid setup(org.apache.hadoop.mapreduce.Reducer.Context context)
Partitionerint getPartition(KEY key, VALUE value, int numPartitions)
MapContext(继承TaskInputOutputContext)InputSplit getInputSplit()否,抛异常
ReduceContextnextKey()
ReduceContextgetValues()
TaskInputOutputContextgetCurrentKey()
TaskInputOutputContextgetCurrentValue()
TaskInputOutputContextgetOutputCommitter()否,抛异常
TaskInputOutputContextnextKeyValue()
TaskInputOutputContextwrite(KEYOUT key, VALUEOUT value)
TaskAttemptContextgetCounter(Enum<?> counterName)
TaskAttemptContextgetCounter(String groupName, String counterName)
TaskAttemptContextsetStatus(String msg)空实现
TaskAttemptContextgetStatus()空实现
TaskAttemptContextgetTaskAttemptID()否,抛异常
TaskAttemptContextgetProgress()否,抛异常
TaskAttemptContextprogress()
JobaddArchiveToClassPath(Path archive)
JobaddCacheArchive(URI uri)
JobaddCacheFile(URI uri)
JobaddFileToClassPath(Path file)
JobcleanupProgress()
JobcreateSymlink()否,抛异常
JobfailTask(TaskAttemptID taskId)
JobgetCompletionPollInterval(Configuration conf)空实现
JobgetCounters()
JobgetFinishTime()
JobgetHistoryUrl()
JobgetInstance()
JobgetInstance(Cluster ignored)
JobgetInstance(Cluster ignored, Configuration conf)
JobgetInstance(Configuration conf)
JobgetInstance(Configuration conf, String jobName)空实现
JobgetInstance(JobStatus status, Configuration conf)否,抛异常
JobgetJobFile()否,抛异常
JobgetJobName()空实现
JobgetJobState()否,抛异常
JobgetPriority()否,抛异常
JobgetProgressPollInterval(Configuration conf)空实现
JobgetReservationId()否,抛异常
JobgetSchedulingInfo()否,抛异常
JobgetStartTime()
JobgetStatus()否,抛异常
JobgetTaskCompletionEvents(int startFrom)否,抛异常
JobgetTaskCompletionEvents(int startFrom, int numEvents)否,抛异常
JobgetTaskDiagnostics(TaskAttemptID taskid)否,抛异常
JobgetTaskOutputFilter(Configuration conf)否,抛异常
JobgetTaskReports(TaskType type)否,抛异常
JobgetTrackingURL()
JobisComplete()
JobisRetired()否,抛异常
JobisSuccessful()
JobisUber()空实现
JobkillJob()   是
JobkillTask(TaskAttemptID taskId)
JobmapProgress()
JobmonitorAndPrintJob()
JobreduceProgress()
JobsetCacheArchives(URI[] archives)否,抛异常
JobsetCacheFiles(URI[] files)否,抛异常
JobsetCancelDelegationTokenUponJobCompletion(boolean value)否,抛异常
JobsetCombinerClass(Class<? extends Reducer> cls)
JobsetCombinerKeyGroupingComparatorClass(Class<? extends RawComparator> cls)
JobsetGroupingComparatorClass(Class<? extends RawComparator> cls)
JobsetInputFormatClass(Class<? extends InputFormat> cls)空实现
JobsetJar(String jar)
JobsetJarByClass(Class<?> cls)
JobsetJobName(String name)空实现
JobsetJobSetupCleanupNeeded(boolean needed)空实现
JobsetMapOutputKeyClass(Class<?> theClass)
JobsetMapOutputValueClass(Class<?> theClass)
JobsetMapperClass(Class<? extends Mapper> cls)
JobsetMapSpeculativeExecution(boolean speculativeExecution)空实现
JobsetMaxMapAttempts(int n)空实现
JobsetMaxReduceAttempts(int n)空实现
JobsetNumReduceTasks(int tasks)
JobsetOutputFormatClass(Class<? extends OutputFormat> cls)否,抛异常
JobsetOutputKeyClass(Class<?> theClass)
JobsetOutputValueClass(Class<?> theClass)
JobsetPartitionerClass(Class<? extends Partitioner> cls)
JobsetPriority(JobPriority priority)否,抛异常
JobsetProfileEnabled(boolean newValue)空实现
JobsetProfileParams(String value)空实现
JobsetProfileTaskRange(boolean isMap, String newValue)空实现
JobsetReducerClass(Class<? extends Reducer> cls)
JobsetReduceSpeculativeExecution(boolean speculativeExecution)空实现
JobsetReservationId(ReservationId reservationId)否,抛异常
JobsetSortComparatorClass(Class<? extends RawComparator> cls)否,抛异常
JobsetSpeculativeExecution(boolean speculativeExecution)
JobsetTaskOutputFilter(Configuration conf, org.apache.hadoop.mapreduce.Job.TaskStatusFilter newValue)否,抛异常
JobsetupProgress()否,抛异常
JobsetUser(String user)空实现
JobsetWorkingDirectory(Path dir)空实现
Jobsubmit()
JobtoString()否,抛异常
JobwaitForCompletion(boolean verbose)
Task Execution & Environmentmapreduce.map.java.opts空实现
Task Execution & Environmentmapreduce.reduce.java.opts空实现
Task Execution & Environmentmapreduce.map.memory.mb空实现
Task Execution & Environmentmapreduce.reduce.memory.mb空实现
Task Execution & Environmentmapreduce.task.io.sort.mb空实现
Task Execution & Environmentmapreduce.map.sort.spill.percent空实现
Task Execution & Environmentmapreduce.task.io.soft.factor空实现
Task Execution & Environmentmapreduce.reduce.merge.inmem.thresholds空实现
Task Execution & Environmentmapreduce.reduce.shuffle.merge.percent空实现
Task Execution & Environmentmapreduce.reduce.shuffle.input.buffer.percent空实现
Task Execution & Environmentmapreduce.reduce.input.buffer.percent空实现
Task Execution & Environmentmapreduce.job.id空实现
Task Execution & Environmentmapreduce.job.jar空实现
Task Execution & Environmentmapreduce.job.local.dir空实现
Task Execution & Environmentmapreduce.task.id空实现
Task Execution & Environmentmapreduce.task.attempt.id空实现
Task Execution & Environmentmapreduce.task.is.map空实现
Task Execution & Environmentmapreduce.task.partition空实现
Task Execution & Environmentmapreduce.map.input.file空实现
Task Execution & Environmentmapreduce.map.input.start空实现
Task Execution & Environmentmapreduce.map.input.length空实现
Task Execution & Environmentmapreduce.task.output.dir空实现
JobClientcancelDelegationToken(Token token)否,抛异常
JobClientclose()空实现
JobClientdisplayTasks(JobID jobId, String type, String state)否,抛异常
JobClientgetAllJobs()否,抛异常
JobClientgetCleanupTaskReports(JobID jobId)否,抛异常
JobClientgetClusterStatus()否,抛异常
JobClientgetClusterStatus(boolean detailed)否,抛异常
JobClientgetDefaultMaps()否,抛异常
JobClientgetDefaultReduces()否,抛异常
JobClientgetDelegationToken(Text renewer)否,抛异常
JobClientgetFs()否,抛异常
JobClientgetJob(JobID jobid)否,抛异常
JobClientgetJob(String jobid)否,抛异常
JobClientgetJobsFromQueue(String queueName)否,抛异常
JobClientgetMapTaskReports(JobID jobId)否,抛异常
JobClientgetMapTaskReports(String jobId)否,抛异常
JobClientgetQueueAclsForCurrentUser()否,抛异常
JobClientgetQueueInfo(String queueName)否,抛异常
JobClientgetQueues()否,抛异常
JobClientgetReduceTaskReports(JobID jobId)否,抛异常
JobClientgetReduceTaskReports(String jobId)否,抛异常
JobClientgetSetupTaskReports(JobID jobId)否,抛异常
JobClientgetStagingAreaDir()否,抛异常
JobClientgetSystemDir()否,抛异常
JobClientgetTaskOutputFilter()否,抛异常
JobClientgetTaskOutputFilter(JobConf job)否,抛异常
JobClientinit(JobConf conf)否,抛异常
JobClientisJobDirValid(Path jobDirPath, FileSystem fs)否,抛异常
JobClientjobsToComplete()否,抛异常
JobClientmonitorAndPrintJob(JobConf conf, RunningJob job)否,抛异常
JobClientrenewDelegationToken(Token token)否,抛异常
JobClientrun(String[] argv)否,抛异常
JobClientrunJob(JobConf job)
JobClientsetTaskOutputFilter(JobClient.TaskStatusFilter newValue)否,抛异常
JobClientsetTaskOutputFilter(JobConf job, JobClient.TaskStatusFilter newValue)否,抛异常
JobClientsubmitJob(JobConf job)
JobClientsubmitJob(String jobFile)否,抛异常
JobConfdeleteLocalFiles()否,抛异常
JobConfdeleteLocalFiles(String subdir)否,抛异常
JobConfnormalizeMemoryConfigValue(long val)空实现
JobConfsetCombinerClass(Class<? extends Reducer> theClass)
JobConfsetCompressMapOutput(boolean compress)空实现
JobConfsetInputFormat(Class<? extends InputFormat> theClass)否,抛异常
JobConfsetJar(String jar)否,抛异常
JobConfsetJarByClass(Class cls)否,抛异常
JobConfsetJobEndNotificationURI(String uri)否,抛异常
JobConfsetJobName(String name)空实现
JobConfsetJobPriority(JobPriority prio)否,抛异常
JobConfsetKeepFailedTaskFiles(boolean keep)否,抛异常
JobConfsetKeepTaskFilesPattern(String pattern)否,抛异常
JobConfsetKeyFieldComparatorOptions(String keySpec)否,抛异常
JobConfsetKeyFieldPartitionerOptions(String keySpec)否,抛异常
JobConfsetMapDebugScript(String mDbgScript)空实现
JobConfsetMapOutputCompressorClass(Class<? extends CompressionCodec> codecClass)空实现
JobConfsetMapOutputKeyClass(Class<?> theClass)
JobConfsetMapOutputValueClass(Class<?> theClass)
JobConfsetMapperClass(Class<? extends Mapper> theClass)
JobConfsetMapRunnerClass(Class<? extends MapRunnable> theClass)否,抛异常
JobConfsetMapSpeculativeExecution(boolean speculativeExecution)空实现
JobConfsetMaxMapAttempts(int n)空实现
JobConfsetMaxMapTaskFailuresPercent(int percent)空实现
JobConfsetMaxPhysicalMemoryForTask(long mem)空实现
JobConfsetMaxReduceAttempts(int n)空实现
JobConfsetMaxReduceTaskFailuresPercent(int percent)空实现
JobConfsetMaxTaskFailuresPerTracker(int noFailures)空实现
JobConfsetMaxVirtualMemoryForTask(long vmem)空实现
JobConfsetMemoryForMapTask(long mem)
JobConfsetMemoryForReduceTask(long mem)
JobConfsetNumMapTasks(int n)
JobConfsetNumReduceTasks(int n)
JobConfsetNumTasksToExecutePerJvm(int numTasks)空实现
JobConfsetOutputCommitter(Class<? extends OutputCommitter> theClass)否,抛异常
JobConfsetOutputFormat(Class<? extends OutputFormat> theClass)空实现
JobConfsetOutputKeyClass(Class<?> theClass)
JobConfsetOutputKeyComparatorClass(Class<? extends RawComparator> theClass)否,抛异常
JobConfsetOutputValueClass(Class<?> theClass)
JobConfsetOutputValueGroupingComparator(Class<? extends RawComparator> theClass)否,抛异常
JobConfsetPartitionerClass(Class<? extends Partitioner> theClass)
JobConfsetProfileEnabled(boolean newValue)空实现
JobConfsetProfileParams(String value)空实现
JobConfsetProfileTaskRange(boolean isMap, String newValue)空实现
JobConfsetQueueName(String queueName)否,抛异常
JobConfsetReduceDebugScript(String rDbgScript)空实现
JobConfsetReducerClass(Class<? extends Reducer> theClass)
JobConfsetReduceSpeculativeExecution(boolean speculativeExecution)空实现
JobConfsetSessionId(String sessionId)空实现
JobConfsetSpeculativeExecution(boolean speculativeExecution)否,抛异常
JobConfsetUseNewMapper(boolean flag)
JobConfsetUseNewReducer(boolean flag)
JobConfsetUser(String user)空实现
JobConfsetWorkingDirectory(Path dir)空实现
FileInputFormat否,抛异常
TextInputFormat
InputSplit否,抛异常
mapred.min.split.size.否,抛异常
FileSplit否,抛异常
map.input.file否,抛异常
RecordWriter否,抛异常
RecordReader否,抛异常
OutputFormat否,抛异常
OutputCommitterabortJob(JobContext jobContext, int status)否,抛异常
OutputCommitterabortJob(JobContext context, JobStatus.State runState)否,抛异常
OutputCommitterabortTask(TaskAttemptContext taskContext)否,抛异常
OutputCommitterabortTask(TaskAttemptContext taskContext)否,抛异常
OutputCommittercleanupJob(JobContext jobContext)否,抛异常
OutputCommittercleanupJob(JobContext context)否,抛异常
OutputCommittercommitJob(JobContext jobContext)否,抛异常
OutputCommittercommitJob(JobContext context)否,抛异常
OutputCommittercommitTask(TaskAttemptContext taskContext)否,抛异常
OutputCommitterneedsTaskCommit(TaskAttemptContext taskContext)否,抛异常
OutputCommitterneedsTaskCommit(TaskAttemptContext taskContext)否,抛异常
OutputCommittersetupJob(JobContext jobContext)否,抛异常
OutputCommittersetupJob(JobContext jobContext)否,抛异常
OutputCommittersetupTask(TaskAttemptContext taskContext)否,抛异常
OutputCommittersetupTask(TaskAttemptContext taskContext)否,抛异常
CountergetDisplayName()
CountergetName()
CountergetValue()
Counterincrement(long incr)
CountersetValue(long value)
CountersetDisplayName(String displayName)
DistributedCacheCACHE_ARCHIVES否,抛异常
DistributedCacheCACHE_ARCHIVES_SIZES否,抛异常
DistributedCacheCACHE_ARCHIVES_TIMESTAMPS否,抛异常
DistributedCacheCACHE_FILES否,抛异常
DistributedCacheCACHE_FILES_SIZES否,抛异常
DistributedCacheCACHE_FILES_TIMESTAMPS否,抛异常
DistributedCacheCACHE_LOCALARCHIVES否,抛异常
DistributedCacheCACHE_LOCALFILES否,抛异常
DistributedCacheCACHE_SYMLINK否,抛异常
DistributedCacheaddArchiveToClassPath(Path archive, Configuration conf)否,抛异常
DistributedCacheaddArchiveToClassPath(Path archive, Configuration conf, FileSystem fs)否,抛异常
DistributedCacheaddCacheArchive(URI uri, Configuration conf)否,抛异常
DistributedCacheaddCacheFile(URI uri, Configuration conf)否,抛异常
DistributedCacheaddFileToClassPath(Path file, Configuration conf)否,抛异常
DistributedCacheaddFileToClassPath(Path file, Configuration conf, FileSystem fs)否,抛异常
DistributedCacheaddLocalArchives(Configuration conf, String str)否,抛异常
DistributedCacheaddLocalFiles(Configuration conf, String str)否,抛异常
DistributedCachecheckURIs(URI[] uriFiles, URI[] uriArchives)否,抛异常
DistributedCachecreateAllSymlink(Configuration conf, File jobCacheDir, File workDir)否,抛异常
DistributedCachecreateSymlink(Configuration conf)否,抛异常
DistributedCachegetArchiveClassPaths(Configuration conf)否,抛异常
DistributedCachegetArchiveTimestamps(Configuration conf)否,抛异常
DistributedCachegetCacheArchives(Configuration conf)否,抛异常
DistributedCachegetCacheFiles(Configuration conf)否,抛异常
DistributedCachegetFileClassPaths(Configuration conf)否,抛异常
DistributedCachegetFileStatus(Configuration conf, URI cache)否,抛异常
DistributedCachegetFileTimestamps(Configuration conf)否,抛异常
DistributedCachegetLocalCacheArchives(Configuration conf)否,抛异常
DistributedCachegetLocalCacheFiles(Configuration conf)否,抛异常
DistributedCachegetSymlink(Configuration conf)否,抛异常
DistributedCachegetTimestamp(Configuration conf, URI cache)否,抛异常
DistributedCachesetArchiveTimestamps(Configuration conf, String timestamps)否,抛异常
DistributedCachesetCacheArchives(URI[] archives, Configuration conf)否,抛异常
DistributedCachesetCacheFiles(URI[] files, Configuration conf)否,抛异常
DistributedCachesetFileTimestamps(Configuration conf, String timestamps)否,抛异常
DistributedCachesetLocalArchives(Configuration conf, String str)否,抛异常
DistributedCachesetLocalFiles(Configuration conf, String str)否,抛异常
IsolationRunner否,抛异常
Profiling空实现
Debugging空实现
Data Compression
Skipping Bad Records否,抛异常
Job Authorizationmapred.acls.enabled否,抛异常
Job Authorizationmapreduce.job.acl-view-job否,抛异常
Job Authorizationmapreduce.job.acl-modify-job否,抛异常
Job Authorizationmapreduce.cluster.administrators否,抛异常
Job Authorizationmapred.queue.queue-name.acl-administer-jobs否,抛异常
MultipleInputs否,抛异常
Multi{anchor:_GoBack}pleOutputs
org.apache.hadoop.mapreduce.lib.db否,抛异常
org.apache.hadoop.mapreduce.security否,抛异常
org.apache.hadoop.mapreduce.lib.jobcontrol否,抛异常
org.apache.hadoop.mapreduce.lib.chain否,抛异常
org.apache.hadoop.mapreduce.lib.db否,抛异常

展开
收起
行者武松 2017-10-24 10:18:08 1784 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
从 SDK 到编解码:视频直播架构解析 立即下载
跨平台的云服务SDK需要什么 立即下载
一个跨平台的云服务SDK需要什么 立即下载