My brick gets warm but not hot when charging. I don't notice the cable getting warm--certainly not too warm to almost burn skin. I suspect there might be a problem with your charger. I assume you are using it where air can freely circulate to keep it cool? If you have access to an Apple Store, take it in for evaluation. It shouldn't be getting so hot you can't touch it--that is not normal.
My Mac gets warm when it's charging, and I don't think it used to--at least not as much. The battery is approaching the end of its useful life, and I suspect that may be the reason. Mine is over 3 years old, with 268 cycles and 86%-88% of original capacity. The run time seems a bit shorter, and I think it takes longer to charge completely than it used to, although I never timed it. So the Mac getting warm when charging may be normal.
Good luck!