Ozzie Inputformat MapReduce API

懵懂的女人 提交于 2019-12-13 06:26:32

问题


I'm trying to create an OOZIE job with a custom inputformat. I am using the new API and have set :

  <property>
        <name>mapred.mapper.new-api</name>
         <value>true</value>
  </property>
   <property>
       <name>mapred.reducer.new-api</name>
       <value>true</value>
   </property>

The property name I'm triying is :

 <property>
    <name>mapreduce.job.inputformat.class</name
     <value>org.lab41.dendrite.generator.kronecker.mapreduce.lib.input.QuotaInputFormat</value>
  </property>

Is the correct property name?


回答1:


you can see this page https://cwiki.apache.org/confluence/display/OOZIE/Map+Reduce+Cookbook

correct property name should be 'mapred.input.format.class'

so, you can write like this :

<property>
    <name>mapred.input.format.class</name>
    <value>org.lab41.dendrite.generator.kronecker.mapreduce.lib.input.QuotaInputFormat</value>
</property>


来源:https://stackoverflow.com/questions/20184297/ozzie-inputformat-mapreduce-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!