LM317 voltage regulator R2 is getting very hot? why?

You started "making it personal" by declaring we were confused. You might be starving your constant-current-source LM317 for voltage so that it can't supply the current it wants to. But that is making it a current limit not a constant current.