Kafka/ElasticSearch errors deploying Portal

Document ID : KB000100036
Last Modified Date : 04/06/2018
Show Technical Document Details
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] 
Portal 4.2
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.