Kafka/ElasticSearch errors deploying Portal

Document ID : KB000100036
Last Modified Date : 04/06/2018
Show Technical Document Details
Question:
As per the error, it seems to indicate that max file descriptors [4096] for elasticsearch process is set too low, you may need to increase the limit to unlimited. 
portal_elasticsearch.0.z1au1o6ay93b@apim.cajamar.int | ERROR: [1] bootstrap checks failed 
portal_elasticsearch.0.z1au1o6ay93b@apim.cajamar.int | [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536] 
Environment:
Portal 4.2
Answer:
you need to run the container --ulimit flag. 

For example, 
$ docker run --ulimit nofile=65535:65535 <image-tag> 

First 65535 is soft limit, second 65535 is hard limit. When you launch the container, of course with -it flag, and enter command ulimit -n you’ll see the limit is 65535 now.