clintropolis commented on PR #12501:
URL: https://github.com/apache/druid/pull/12501#issuecomment-1251758948

   I think I've got it working well enough using `-Xbootclasspath` to customize 
what the router has access to when it starts up. Yeah, I have a handful of xml 
files that I use to launch druid processes directly within intellij. Extensions 
(and now the web-console) are a bit funny in this model as you have to 
externally build them and refer to their location, but works pretty well 
otherwise.
   
   Here is my `Router.xml` for example (after fixing):
   ```
   <component name="ProjectRunConfigurationManager">
     <configuration default="false" name="Router" type="Application" 
factoryName="Application">
       <option name="ALTERNATIVE_JRE_PATH" value="1.8" />
       <option name="MAIN_CLASS_NAME" value="org.apache.druid.cli.Main" />
       <module name="druid-services" />
       <option name="PROGRAM_PARAMETERS" value="server router" />
       <option name="VM_PARAMETERS" value="-server 
-Xbootclasspath/a:$PROJECT_DIR$/conf/router/:$PROJECT_DIR$/web-console/target/web-console-25.0.0-SNAPSHOT.jar
 -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Xmx256M -Xmx256M -XX:+UseG1GC 
-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager 
-Dorg.jboss.logging.provider=slf4j 
-Dlog4j.configurationFile=$PROJECT_DIR$/core/src/main/resources/log4j2.debug.xml
 -Ddruid.host=localhost -Ddruid.zk.service.host=localhost 
-Ddruid.emitter=logging -Ddruid.router.managementProxy.enabled=true 
-Ddruid.extensions.directory=$PROJECT_DIR$/distribution/target/extensions/ 
-Ddruid.extensions.loadList=[\&quot;druid-histogram\&quot;,\&quot;druid-bloom-filter\&quot;,\&quot;druid-datasketches\&quot;,\&quot;druid-lookups-cached-global\&quot;,\&quot;druid-basic-security\&quot;]
 -Ddruid.server.http.numThreads=50  
-Ddruid.generic.useDefaultValueForNull=false " />
     </configuration>
   </component>
   ```
   
   If you put these xml files in `.idea/runConfigurations/` then you have all 
of these options to run various services in the run/debug dropdown menu:
   <img width="848" alt="Screen Shot 2022-09-19 at 7 13 42 PM" 
src="https://user-images.githubusercontent.com/1577461/191152314-b0105df5-6cc9-4062-b98b-3ceb57f4d50f.png";>
   
   I do this because in my experience its got a faster turn-around than 
building a quickstart and attaching, can modify most stuff on the fly and live 
reload, etc.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to