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
MapReduce >> mail # dev >> Proxying FileSystem.get()


Copy link to this message
-
Proxying FileSystem.get()
Hi mapred:

I'd like to proxy calls made to the FileSystem's created during mapreduce
jobs.

However, since the common way jobs work is to use the FileSystem.get(..),
it doesnt seem like an InvocationHandler will be a solution (because it
requires use of the Proxy.newInstance operation).

Any good way to reroute all calls to a FileSystem so that they go through a
particular dynamic proxy ?  Maybe a pure AOP solution would be better, but
havent been able to figure one out yet.

This is relevant to debugging the way different FileSystem implementations
behave beneath mapred ,.

http://stackoverflow.com/questions/18279397/using-aspects-to-inject-
invocationhandlers-without-proxy-class

--
Jay Vyas
http://jayunit100.blogspot.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