Created 03-29-2017 02:53 AM
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
Created 03-29-2017 07:28 AM
Have you tried adding a /etc/hosts entry for:
127.0.0.1 sandbox sandbox.hortonworks.com
Created 03-29-2017 11:22 PM
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.
Created 03-29-2017 04:51 PM
In the PutSolrContentStream processor, did include the Collection name in the properties? What are the other properties that you have set in processor.
Created 03-29-2017 11:23 PM
Please find attached then screenshot of PutSolrContentStream properties. Please let me know if I'm missing anything.
Created 03-30-2017 03:33 AM
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.
Created 03-31-2017 01:45 AM
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.
Created 03-31-2017 07:27 AM
I didn't realise you were using Windows - that was what my comment above was instructing you to do, sorry for not being clearer.