Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

problem with Elasticsearch in HDP-2.5 sandbox

Solved Go to solution

problem with Elasticsearch in HDP-2.5 sandbox

New Contributor

I use hdp-2.5,I follow the tutorial in the link -"https://community.hortonworks.com/articles/56121/how-to-pull-data-from-twitter-and-push-data-to-ela.html" in that i Successfully install and run the elasticsearch,it wont show any error,when i use the curl it will show the output but my browser wont get it, i also add the network port in vm But when i follow the same step in HDP-2.4 the web-browser UI works fine when i add a Network-port in VM ware.How i resolve it?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: problem with Elasticsearch in HDP-2.5 sandbox

@Rajesh AJ

If I understand the problem, I think your issue is related to Docker. The HDP 2.5 TP Sandbox didn't have this issue.

The HDP 2.5 Sandbox uses a Docker container within the VM. So you need to forward the 9200 port via the VM and again via the Docker container inside that VM. When you run the curl command, I'm guessing you are doing from within the Sandbox itself which is why it works.

Check out this article on how to add ports to the Sandbox. Elasticsearch uses port 9200, so you need to add that to the Docker container. See this link: https://community.hortonworks.com/articles/65914/how-to-add-ports-to-the-hdp-25-virtualbox-sandbox.h...

Don't forget to read the NOTE on using commit to save the current state of your Sandbox before deleting the container. Otherwise any changes you have made to the Sandbox will be lost.

3 REPLIES 3

Re: problem with Elasticsearch in HDP-2.5 sandbox

@Rajesh AJ

If I understand the problem, I think your issue is related to Docker. The HDP 2.5 TP Sandbox didn't have this issue.

The HDP 2.5 Sandbox uses a Docker container within the VM. So you need to forward the 9200 port via the VM and again via the Docker container inside that VM. When you run the curl command, I'm guessing you are doing from within the Sandbox itself which is why it works.

Check out this article on how to add ports to the Sandbox. Elasticsearch uses port 9200, so you need to add that to the Docker container. See this link: https://community.hortonworks.com/articles/65914/how-to-add-ports-to-the-hdp-25-virtualbox-sandbox.h...

Don't forget to read the NOTE on using commit to save the current state of your Sandbox before deleting the container. Otherwise any changes you have made to the Sandbox will be lost.

Highlighted

Re: problem with Elasticsearch in HDP-2.5 sandbox

New Contributor

thanks for your answer.

ya i use HDP 2.5 Docker Sandbox.your link will resolve my problem.

now its works fine

Re: problem with Elasticsearch in HDP-2.5 sandbox

New Contributor

10589-screenshot-from-2016-12-21-132556.png

it resolve my problem but whenever i use the init 6 the session is closed and i am unable to enable the sandbox.service without reboot my vm.

Don't have an account?
Coming from Hortonworks? Activate your account here