lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay chae <bayc...@gmail.com>
Subject Newbie Zookeeper Access Control
Date Wed, 03 May 2017 13:29:57 GMT
Hi I amredacted following this guide:

https://cwiki.apache.org/confluence/display/solr/ZooKeeper+Access+Control <https://cwiki.apache.org/confluence/display/solr/ZooKeeper+Access+Control>

My solr version is 6.5.1. My operating system is OS X macSierra.

My startup command is:

	• bin/solr start -v -cloud -s ~/var/solr

in ~/var/solr I have default zoo.cfg and my solr.xml is:

<solr>

  <solrcloud>

    <str name="host">${host:}</str>
    <int name="hostPort">${jetty.port:8983}</int>
    <str name="hostContext">${hostContext:solr}</str>

    <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>

    <int name="zkClientTimeout">${zkClientTimeout:30000}</int>
    <int name="distribUpdateSoTimeout">${distribUpdateSoTimeout:600000}</int>
    <int name="distribUpdateConnTimeout">${distribUpdateConnTimeout:60000}</int>
    <!--<str name="zkCredentialsProvider">${zkCredentialsProvider:org.apache.solr.common.cloud.DefaultZkCredentialsProvider}</str>-->
    <str name="zkCredentialsProvider">${org.apache.solr.common.cloud.VMParamsSingleSetCredentialsDigestZkCredentialsProvider}</str>
    <str name="zkDigestUsername">${zkDigestUsername:admin-user}</str>
    <str name="zkDigestPassword">${zkDigestPassword:secret}</str>
    <str name="zkACLProvider">${zkACLProvider:org.apache.solr.common.cloud.DefaultZkACLProvider}</str>

  </solrcloud>

  <shardHandlerFactory name="shardHandlerFactory"
    class="HttpShardHandlerFactory">
    <int name="socketTimeout">${socketTimeout:600000}</int>
    <int name="connTimeout">${connTimeout:60000}</int>
  </shardHandlerFactory>

</solr>
in solr.in.sh I have:
SOLR_ZK_CREDS_AND_ACLS="-DzkACLProvider=org.apache.solr.common.cloud.VMParamsAllAndReadonlyDigestZkACLProvider
\
  -DzkCredentialsProvider=org.apache.solr.common.cloud.VMParamsSingleSetCredentialsDigestZkCredentialsProvider
\
  -DzkDigestUsername=admin-user -DzkDigestPassword=secret \
  -DzkDigestReadonlyUsername=readonly-user -DzkDigestReadonlyPassword=CHANGEME-READONLY-PASSWORD"
But I am getting an error in the logs (please see below). Any help?
2017-05-03 13:17:20.689 INFO  (main) [   ] o.e.j.s.Server jetty-9.3.14.v20161028
2017-05-03 13:17:21.031 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter  ___      _       Welcome
to Apache Solr™ version 6.5.1
2017-05-03 13:17:21.031 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting
in cloud mode on port 8983
2017-05-03 13:17:21.032 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_|  Install
dir: /usr/local/solr-6.5.1
2017-05-03 13:17:21.044 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter |___/\___/_|_|    Start
time: 2017-05-03T13:17:21.033Z
2017-05-03 13:17:21.045 INFO  (main) [   ] o.a.s.s.StartupLoggingUtils Property solr.log.muteconsole
given. Muting ConsoleAppender named CONSOLE
2017-05-03 13:17:21.045 INFO  (main) [   ] o.a.s.s.StartupLoggingUtils Log level override,
property solr.log.level=DEBUG
2017-05-03 13:17:21.058 DEBUG (main) [   ] o.a.s.c.SolrResourceLoader JNDI not configured
for solr (NoInitialContextEx)
2017-05-03 13:17:21.059 INFO  (main) [   ] o.a.s.c.SolrResourceLoader Using system property
solr.solr.home: /Users/mredacted/var/solr
2017-05-03 13:17:21.060 DEBUG (main) [   ] o.a.s.c.SolrResourceLoader new SolrResourceLoader
for directory: '/Users/mrsasdasdr/var/solr'
2017-05-03 13:17:21.060 DEBUG (main) [   ] o.a.s.c.SolrResourceLoader JNDI not configured
for solr (NoInitialContextEx)
2017-05-03 13:17:21.065 INFO  (main) [   ] o.a.s.c.SolrXmlConfig Loading container configuration
from /Users/mredacted/var/solr/solr.xml
2017-05-03 13:17:21.104 DEBUG (main) [   ] o.a.s.c.Config null missing optional solr/@coreLoadThreads
2017-05-03 13:17:21.105 DEBUG (main) [   ] o.a.s.c.Config null missing optional solr/@persistent
2017-05-03 13:17:21.106 DEBUG (main) [   ] o.a.s.c.Config null missing optional solr/@sharedLib
2017-05-03 13:17:21.107 DEBUG (main) [   ] o.a.s.c.Config null missing optional solr/@zkHost
2017-05-03 13:17:21.109 DEBUG (main) [   ] o.a.s.c.Config null missing optional solr/cores
2017-05-03 13:17:21.116 ERROR (main) [   ] o.a.s.s.SolrDispatchFilter Could not start Solr.
Check solr/home property and the logs
2017-05-03 13:17:21.137 ERROR (main) [   ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException:
No system property or default value specified for org.apache.solr.common.cloud.VMParamsSingleSetCredentialsDigestZkCredentialsProvider
value:${org.apache.solr.common.cloud.VMParamsSingleSetCredentialsDigestZkCredentialsProvider}
   at org.apache.solr.util.PropertiesUtil.substituteProperty(PropertiesUtil.java:65)
   at org.apache.solr.util.DOMUtil.substituteProperties(DOMUtil.java:303)
   at org.apache.solr.util.DOMUtil.substituteProperties(DOMUtil.java:311)
   at org.apache.solr.util.DOMUtil.substituteProperties(DOMUtil.java:311)
   at org.apache.solr.util.DOMUtil.substituteProperties(DOMUtil.java:311)
   at org.apache.solr.core.Config.substituteProperties(Config.java:231)
   at org.apache.solr.core.SolrXmlConfig.fromConfig(SolrXmlConfig.java:63)
   at org.apache.solr.core.SolrXmlConfig.fromInputStream(SolrXmlConfig.java:131)
   at org.apache.solr.core.SolrXmlConfig.fromFile(SolrXmlConfig.java:113)
   at org.apache.solr.core.SolrXmlConfig.fromSolrHome(SolrXmlConfig.java:141)
   at org.apache.solr.servlet.SolrDispatchFilter.loadNodeConfig(SolrDispatchFilter.java:267)
   at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:235)
   at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:169)
   at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:137)
   at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:873)
   at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:349)
   at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1404)
   at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1366)
   at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778)
   at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
   at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)
   at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
   at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:41)
   at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
   at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:499)
   at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:147)
   at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:180)
   at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:458)
   at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64)
   at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
   at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
   at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
   at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:313)
   at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
   at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:150)
   at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
   at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:561)
   at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:236)
   at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
   at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
   at org.eclipse.jetty.server.Server.start(Server.java:422)
   at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)
   at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
   at org.eclipse.jetty.server.Server.doStart(Server.java:389)
   at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
   at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1516)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1441)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.eclipse.jetty.start.Main.invokeMain(Main.java:214)
   at org.eclipse.jetty.start.Main.start(Main.java:457)
   at org.eclipse.jetty.start.Main.main(Main.java:75)

2017-05-03 13:17:21.160 INFO  (main) [   ] o.e.j.s.Server Started @940ms




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message