: That's just setting the solr/home environment not the user.dir variable. : I have that already set. But when I got to the solr/admin page, at the : top it shows the Solr Admin(schemaname), hostname, and cwd=/root, : SolrHome=/opt/solr. : : How do I get cwd=/root not to be that but to be set to /opt/solr?
1) to the best of my knowledge it is not physically possible for a java app to set user.dir once it's started... http://www.devx.com/tips/Tip/13804 ...you wouldh ave to chnage the directory in whatever shell/batch script you use to start tomcat 2) it shouldn't matter. Solr should be using solr.solr.home (aka: the solr/home JNDI) property for just about everything ... the CWD listed on the admin screens is largely just informative. some places in solr will still look for files in the CWD as a fallback, but they should be checking solr.solr.home and hte conf dir first -- i think <dataDir/> is the one place where "relative' paths are evaluated relative the CWD instead of the solr.solr.home, so if you wnat to set that to something else you may need to use an absolute path. -Hoss