Support Questions

Find answers, ask questions, and share your expertise

Error on putsolrcontentstream processor on nifi when configuring it with Solr

Hi,

I have spinned up solr through Ambari and Nifi is installed on hortonworks sandbox. When I added processor "putsolrcontentstream" it gave me an error "IOException occured when talking to server at: http://sandbox.hortonworks.com:8983/solr/tweets_shard1_replica1". My guess is that Nifi is trying to connect to http://sandbox.hortonworks.com:8983/solr/tweets_shard1_replica1 whereas tweets_shard1_replical is in below address and i can see it in my browser http://127.0.0.1:8983/solr/tweets_shard1_replica1 I checked on solr UI --> Java properties that HOST is given as sandbox.hortonworks.com and ZKHOST is given as sandbox.hortonworks.com:2181/solr QUESTION: How to replace and where to replace sandbox.hortonworks.com with 127.0.0.1 so that I no longer get error on putsolrcontentstream processor on nifi. Attached are relevant screenshots for reference purpose. Please help.

Thanks! in Advance

nifi-screenshot-1.png

solr-screenshot-1.png

solr-screenshot-2.png

7 REPLIES 7

Have you tried adding a /etc/hosts entry for:

127.0.0.1 sandbox sandbox.hortonworks.com

Yes, I tried that also. Alongside localhost I gave sandbox.hortonworks.com (i.e 127.0.0.1 localhost sandbox.hortonworks.com) too and then restarted the service, surprisingly it had reset again to 127.0.0.1 localhost.

Not sure how can I do it.

In the PutSolrContentStream processor, did include the Collection name in the properties? What are the other properties that you have set in processor.

Please find attached then screenshot of PutSolrContentStream properties. Please let me know if I'm missing anything.

properties.png

when you started solr, did you specify localhost:2181/solr as the zk location? i.e. /solr.sh start -c -z localhost:2181/solr. If not, make sure the zk location you started in the solr setup is the same in the PutSolr properties. I've also had times where I had to recreate the index to get this error message to go away.

Thanks for responding guys. I anyway got the issue resolved by doing entry like 127.0.0.1 sandbox.hortonworks.com in C:/Windows/Sytem32/driver/etc/hosts file on my windows machine.

I didn't realise you were using Windows - that was what my comment above was instructing you to do, sorry for not being clearer.