There is absolutely no guarantee some people won't be upset and won't take it personally and there is no guarantee the company will have a smooth ride without you, but what you can do is give them plenty of notice, say 2-3 months. During this time you can work with them to make the transition as smooth as possible, including training and/or hiring a successor. Whether those months will be good or a total hell, only you can guess - and you may still be wrong.