Hi,

I'm running solr in tomcat. I am trying to upgrade to solr 4.4 but I can't get it to work. If someone can point me at what I'm doing wrong.

tomcat context:
<Context docBase="/opt/solr4.4/dist/solr-4.4.0.war" debug="0" crossContext="true"> <Environment name="solr/home" type="java.lang.String" value="/opt/solr4.4/solr_address" override="true" />
</Context>


core.properties:
name=address
collection=address
coreNodeName=address
dataDir=/opt/indexes4.1/address


solr.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<solr>
<solrcloud>
<str name="host">${host:}</str>
<int name="hostPort">8080</int>
<str name="hostContext">solr_address</str>
<int name="zkClientTimeout">${zkClientTimeout:15000}</int>
<bool name="genericCoreNodeNames">false</bool>
</solrcloud>

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


In solrconfig.xml I have:
<luceneMatchVersion>4.1</luceneMatchVersion>

<dataDir>/opt/indexes4.1/address</dataDir>


And the log4j logs in catalina.out:
...
INFO: Deploying configuration descriptor solr_address.xml
0 [main] INFO org.apache.solr.servlet.SolrDispatchFilter – SolrDispatchFilter.init() 24 [main] INFO org.apache.solr.core.SolrResourceLoader – Using JNDI solr.home: /opt/solr4.4/solr_address 26 [main] INFO org.apache.solr.core.SolrResourceLoader – new SolrResourceLoader for directory: '/opt/solr4.4/solr_address/' 176 [main] INFO org.apache.solr.core.ConfigSolr – Loading container configuration from /opt/solr4.4/solr_address/solr.xml 272 [main] INFO org.apache.solr.core.SolrCoreDiscoverer – Looking for cores in /opt/solr4.4/solr_address 276 [main] INFO org.apache.solr.core.SolrCoreDiscoverer – Looking for cores in /opt/solr4.4/solr_address/conf 276 [main] INFO org.apache.solr.core.SolrCoreDiscoverer – Looking for cores in /opt/solr4.4/solr_address/conf/xslt 277 [main] INFO org.apache.solr.core.SolrCoreDiscoverer – Looking for cores in /opt/solr4.4/solr_address/conf/lang 278 [main] INFO org.apache.solr.core.SolrCoreDiscoverer – Looking for cores in /opt/solr4.4/solr_address/conf/velocity 283 [main] INFO org.apache.solr.core.CoreContainer – New CoreContainer 991552899 284 [main] INFO org.apache.solr.core.CoreContainer – Loading cores into CoreContainer [instanceDir=/opt/solr4.4/solr_address/] 301 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting socketTimeout to: 0 301 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting urlScheme to: http:// 301 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting connTimeout to: 0 302 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting maxConnectionsPerHost to: 20 302 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting corePoolSize to: 0 303 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting maximumPoolSize to: 2147483647 303 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting maxThreadIdleTime to: 5 303 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting sizeOfQueue to: -1 303 [main] INFO org.apache.solr.handler.component.HttpShardHandlerFactory – Setting fairnessPolicy to: false 320 [main] INFO org.apache.solr.client.solrj.impl.HttpClientUtil – Creating new http client, config:maxConnectionsPerHost=20&maxConnections=10000&socketTimeout=0&connTimeout=0&retry=false 420 [main] INFO org.apache.solr.logging.LogWatcher – Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)] 422 [main] INFO org.apache.solr.core.ZkContainer – Zookeeper client=192.168.10.206:2181 429 [main] INFO org.apache.solr.client.solrj.impl.HttpClientUtil – Creating new http client, config:maxConnections=500&maxConnectionsPerHost=16&socketTimeout=0&connTimeout=0 487 [main] INFO org.apache.solr.common.cloud.ConnectionManager – Waiting for client to connect to ZooKeeper 540 [main-EventThread] INFO org.apache.solr.common.cloud.ConnectionManager – Watcher org.apache.solr.common.cloud.ConnectionManager@7dc21ece name:ZooKeeperConnection Watcher:192.168.10.206:2181 got event WatchedEvent state:SyncConnected type:None path:null path:null type:None 541 [main] INFO org.apache.solr.common.cloud.ConnectionManager – Client is connected to ZooKeeper 562 [main] INFO org.apache.solr.common.cloud.SolrZkClient – makePath: /overseer/queue 578 [main] INFO org.apache.solr.common.cloud.SolrZkClient – makePath: /overseer/collection-queue-work 591 [main] INFO org.apache.solr.common.cloud.SolrZkClient – makePath: /live_nodes 595 [main] INFO org.apache.solr.cloud.ZkController – Register node as live in ZooKeeper:/live_nodes/192.168.10.206:8080_solr_address 600 [main] INFO org.apache.solr.common.cloud.SolrZkClient – makePath: /live_nodes/192.168.10.206:8080_solr_address 606 [main] INFO org.apache.solr.common.cloud.SolrZkClient – makePath: /collections 613 [main] INFO org.apache.solr.common.cloud.SolrZkClient – makePath: /overseer_elect/election 649 [main] INFO org.apache.solr.common.cloud.SolrZkClient – makePath: /overseer_elect/leader 654 [main] INFO org.apache.solr.cloud.Overseer – Overseer (id=90474615489036288-192.168.10.206:8080_solr_address-n_0000000000) starting 675 [main] INFO org.apache.solr.common.cloud.SolrZkClient – makePath: /overseer/queue-work 690 [Overseer-90474615489036288-192.168.10.206:8080_solr_address-n_0000000000] INFO org.apache.solr.cloud.OverseerCollectionProcessor – Process current queue of collection creations 691 [main] INFO org.apache.solr.common.cloud.SolrZkClient – makePath: /clusterstate.json 697 [main] INFO org.apache.solr.common.cloud.SolrZkClient – makePath: /aliases.json 706 [main] INFO org.apache.solr.common.cloud.ZkStateReader – Updating cluster state from ZooKeeper... 719 [main] INFO org.apache.solr.cloud.ZkController – bootstraping config for 0 cores into ZooKeeper using solr.xml from /opt/solr4.4/solr_address/ 725 [Thread-2] INFO org.apache.solr.cloud.Overseer – Starting to work on the main queue 738 [main] INFO org.apache.solr.servlet.SolrDispatchFilter – user.dir=/opt/solr
...

Thanks for your help.

Regards,

Marc

Reply via email to