This question already has an answer here:

Are there security issues with running the hidden service and non-exit relay on the same Tor instance?

marked as duplicate by Jens Kubieziel Feb 12 '15 at 9:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.