How to avoid data shuffling in spark

Hi Team,

Group by/join will cause a data shuffling, how to avoid / tune data shuffling in spark? Could you please advise me on this.