Even if you are insistent on travelling Beppu to Hakpdate all by rail, at least build in an overnight stop.
Sendai or Morioka would be my suggestions.
I have taken long trips like this and really at the end they are not fun at all. Green car or regular, it doesn't matter--Just fly from Kyushu to Hokkaido as others have stated.