Support Questions

Find answers, ask questions, and share your expertise

adding to /etc/hosts does not seem to make a difference and that seems to be a problem for Banana

New Contributor

Hello. I have been going through the Analyzing Twitter Data With Apache NiFi and HDP Search tutorial using Sandbox VM I downloaded a couple of weeks ago.

I did run 'echo >> /etc/hosts' (I am assuming the partial quotation marks in 'echo " >> /etc/hosts' in the instructions are a typo), and my /etc/hosts file now looks like this: localhost.localdomain localhost sandbox

However, the following links never work:

So, I replace '' with '' and NiFi and Solr seem to work fine, based on my limited understanding. However, when I get to starting Banana, and, go to '' (I am assuming that leaving out 'index.html' from '' in the instructions is just an oversight, since without it we just see contents of the directory), I do get the basic Banana dashboard layout with black/gray background and buttons and rows and headers, but no data. I get the following two errors:

'Error Could not contact Solr at Please ensure that Solr is reachable from your system.' 'Error Could not retrieve collections from Solr (error status = 0)'

I thought, perhaps, if I replaced '' with '' in the 'default.json' file I downloaded from github earlier in the tutorial that might fix the problem, but Banana still saw no data, even though the error messages have changed slightly:

'Error Collection not found at Please check your configuration or create the collection. If you are using a proxy ensure it is configured correctly.' 'Error Could not retrieve collections from Solr (error status = 404)'

The 'tweets' collection DOES exist, from what I can tell. If I enter the command we are given to create it, I am told it already exists. I can delete it and create it again, but that does not seem to make a difference for Banana.

Why does adding '' to /etc/hosts not seem to work for me, does that mess anything else up besides Banana that I perhaps do not realize, and is there a workaround?

Many thanks!


Expert Contributor

This may not have been specified but you should add "" to your HOST machine. This is not the sandbox. It is the machine which you have installed virtualbox/vmware on

On a windows machine you'll find your hosts file at


If you are using *nix system or Mac OS X it is simply


After editing the correct file on the host machine it should work

View solution in original post


Expert Contributor

@Ali Bajwa I will see that I get this incorporated into the tutorial.


Sounds good!