timed out waiting for all nodes to process published state
timed out waiting for all nodes to process published state [43] (timeout [30s], pending nodes:
You can do that by setting following properties in elasticsearch.yml:
discovery.zen.fd.ping_timeout: 50s
discovery.zen.fd.ping_retries: 5
Please refer the documentation for more information.