I have successfully cloned & installed a Magento cloud environment Magento 2.4.2 in my local instance.
And also installed elastic search and tested it via the command line and it's working fine.
Note: I have followed his link to install and configure elastic search https://www.emizentech.com/blog/magento-2-4-with-elasticsearch-complete-guide.html
But while running upgrade command throws following error.
Elastic search configuration file
Can anyone please help me to sort out this?