How to enable JavaScript aggregations/postAggregations in Druid

I have been using Druid for the past week (loving the speed!) and wanted to enable javascript for some postAggregations.

I think I followed the outlined steps and updated the file in ../con f/druid/_common/ to include druid.javascript.enabled=true. I then stopped the current processes and re-ran the Quickstart procedures, but it still says that JavaScript is disabled:

  "error" : "Unknown exception",
  "errorMessage" : "Instantiation of [simple type, class] value failed: JavaScript is disabled. (through reference chain: java.util.ArrayList[0])",
  "errorClass" : "com.fasterxml.jackson.databind.JsonMappingException",
  "host" : null

I am currently running it in the ‘Quickstart’ configuration - single local machine. Any pointers? Thanks!

The quickstart uses conf-quickstart/druid/_common rather than conf/druid/_common.

I always wonder which services need this configuration, I presume Broker and Historical only ?

You might as well enable it on all services if you are going to enable it anywhere, IMO.