Embedded Elasticsearch 2.3

Hi, I've seen in projects like elasticsearch-hadoop that they use an embedded elasticsearch server. So questions one is that, is it recommended to use elasticsearch embedded in production ?

Question two. When I start the embedded Node using version 2.3 it starts up and then exits. If i remember correctly in version 1.5 it stays started. So do I need to use something like an anti shutdown hook to keep the embedded server started in version 2.3 ?

Any help will be highly appreciated.