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.

Install SolrCloud on EC2

Install SolrCloud on EC2

Explorer

Hi,

I am trying to setup SolrCloud on ec2. I have 3 instances and I've installed zookeeper and solr instance on each of them.

Here is my questions:

1) Should I use the private or public IP for the "SOLR_HOST" in the solr.in.sh file? Seems like no matter what I put for that field, it will use the ec2 public IP as solr host and I am afraid that the intercommunication between the solr instance or zookeeper will be charged as bandwidth for this case.

2) For the zookeeper configuration file, should I use private or public IP?

dataDir=/var/lib/zookeeperdata/1

clientPort=2181

initLimit=5

syncLimit=2

server.1=<IP>:2888:3888

server.2=<IP>:2888:3888

server.3=<IP>:2888:3888

Thank you!

-Wing

1 REPLY 1
Highlighted

Re: Install SolrCloud on EC2

@Wing Lo

Theoretically should work with public IP, but I advice you to use private IP and make sure that all nodes are in the same private subnet. Please test that nodes can access each other. To access your master nodes, the best practice is to have an edge node with public IP that is also part of the same private network or use reverse NAT instance.

If you don't want to struggle use this: https://bitnami.com/stack/solr/cloud/aws

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