Following links might be a good starting point:
Let's describe the environment and the problem first. Could you elaborate a little bit. The question is way to open ended.
What version of HDP do you run? Which services? How much data and how do you plan to process and consume via applications?
The above links are a good start, but you should think about tuning the hardware, the OS, the services and the applications. Each has some best practices, however, the specifics of the application will allow you to tune an end-to-end solution.