Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> Configure method being called twice on AvroMapper?


Copy link to this message
-
Configure method being called twice on AvroMapper?
Hi,

Is there a reason why the configure method is called twice on
AvroMapper instances?

I can see that it would be called once by reflection when the instance
is created using Hadoop's ReflectionUtils (HadoopMapper, line 43), but
then it is also called again explicitly a couple of lines later. In a
comment in one of the unit tests (TestWeather.java) it even says "//
gets called twice for some reason, so loosen this check" !

Isn't the second call redundant?

Thanks,
Dave
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB