Elasticsearch service failed

I have installed elasticsearch on linux and i get the below error, and unable to access on port 9200. please provide your inputs

Aug 04 20:15:15 ip-172-31-21-248.us-east-2.compute.internal systemd[1]: Starting Starts and stops a single elasticsearch instance on this system...
Aug 04 20:15:15 ip-172-31-21-248.us-east-2.compute.internal systemd[1]: PID file /var/run/elasticsearch/elasticsearch.pid not readable (yet?) after start.
Aug 04 20:15:15 ip-172-31-21-248.us-east-2.compute.internal systemd[1]: Started Starts and stops a single elasticsearch instance on this system.
Aug 04 20:15:20 ip-172-31-21-248.us-east-2.compute.internal systemd[1]: elasticsearch.service: main process exited, code=exited, status=3/NOTIMPLEMENTED
Aug 04 20:15:20 ip-172-31-21-248.us-east-2.compute.internal systemd[1]: Unit elasticsearch.service entered failed state.
Aug 04 20:15:20 ip-172-31-21-248.us-east-2.compute.internal systemd[1]: elasticsearch.service failed.

Duplicate of Unit elasticsearch.service entered failed state.--X