[ https://issues.apache.org/jira/browse/HBASE-4932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163175#comment-13163175 ]
stack commented on HBASE-4932: ------------------------------ I was going to say this is probably really expensive but its just cloning of in memory Arrays and Properties so probably not too bad: {code} - public static final WriterFactory getWriterFactory(Configuration conf) { - return HFile.getWriterFactory(conf, new CacheConfig(conf)); + public static final WriterFactory getWriterFactoryNoCache(Configuration + conf) { + Configuration tempConf = new Configuration(conf); + tempConf.setFloat(CacheConfig.HFILE_BLOCK_CACHE_SIZE_KEY, 0.0f); + return HFile.getWriterFactory(conf, new CacheConfig(tempConf)); {code} +1 on patch. > Block cache can be mistakenly instantiated by tools > --------------------------------------------------- > > Key: HBASE-4932 > URL: https://issues.apache.org/jira/browse/HBASE-4932 > Project: HBase > Issue Type: Bug > Reporter: Prakash Khemani > Assignee: Prakash Khemani > Fix For: 0.94.0 > > Attachments: HBASE-4932.patch > > > Map Reduce tasks that create a writer to write HFiles inadvertently end up > creating block cache. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira