Ok I have resolved it when I define host for -DzkRun parameter too. 2013/4/28 Furkan KAMACI <furkankam...@gmail.com>
> I am trying to run an embedded Zookeeper ensemble however I get that error: > > Apr 28, 2013 1:02:48 AM org.apache.solr.common.SolrException log > SEVERE: null:java.lang.IllegalArgumentException: port out of range:-1 > at java.net.InetSocketAddress.<init>(InetSocketAddress.java:101) > at java.net.InetSocketAddress.<init>(InetSocketAddress.java:81) > at > org.apache.solr.cloud.SolrZkServerProps.setClientPort(SolrZkServer.java:315) > > at > org.apache.solr.cloud.SolrZkServerProps.getMyServerId(SolrZkServer.java:278) > > at > org.apache.solr.cloud.SolrZkServerProps.parseProperties(SolrZkServer.java:453) > > at org.apache.solr.cloud.SolrZkServer.parseConfig(SolrZkServer.java:90) > at > org.apache.solr.core.CoreContainer.initZooKeeper(CoreContainer.java:228) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:520) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:405) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:337) > > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:110) > > at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:119) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) > > at > org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:724) > > at > org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265) > > at > org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) > > at > org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706) > > at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) > > at > org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:39) > > at > org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:186) > at > org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:494) > > at > org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:141) > > at > org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:145) > > at > org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:56) > > at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:609) > at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540) > at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403) > at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) > > at > org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:121) > > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) > > at > org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:555) > > at > org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:230) > > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) > > at > org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:81) > > at > org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58) > > at > org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96) > > at org.eclipse.jetty.server.Server.doStart(Server.java:277) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) > > at > org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1266) > at java.security.AccessController.doPrivileged(Native Method) > at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1189) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at org.eclipse.jetty.start.Main.invokeMain(Main.java:472) > at org.eclipse.jetty.start.Main.start(Main.java:620) > at org.eclipse.jetty.start.Main.main(Main.java:95) > > I used that: > > -DzkRun -DnumShards=2 -Dbootstrap_confdir=./solr/collection1/conf > -Dcollection.configName=myconf -DzkHost=nem:9983,rem:9983,kem:9983 > > I read that thread: > http://lucene.472066.n3.nabble.com/solr4-0-problem-zkHost-with-multiple-hosts-throws-out-of-range-exception-td4014440.htmlI > use hostnames and when I ping I get respones to that hostnames. However > it doesn't work. I use Solr 4.2.1. > Any ideas? > > >