The respective changes in the kibana.yml and elasticsearch.yml were done and finally after running the below command where the passwords got generated (auto). And was able to login using the password for elastic and then created the superuser from the Management > Stack Management > Security > [Users, Roles].
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.