Hiking is a much more demanding application than camping. When you're in camp, even if all your lights fail, usually you'll be okay. You just go to bed, and wait for the morning light. On the trail, however, things can get very serious if your lights stop working.
That said, I often like starting a day hike in the late afternoon, watching the sunset on the mountain, and coming home in the dark. It's a great way to beat the crowds. It also puts you on the mountain during the best picture-taking time. That, of course, is the final hour or two before sunset, when the 'magic light" photographers love shows up.
In the 1990s and early 2000s, I used to carry a 2xAA headlamp, plus two 1xAA flashlights. I figured, hey, my spare batteries come with spare flashlights, so I should be okay. Frankly, however, that wasn't enough. The AAs just didn't have enough juice. I should have carried 4 to 6 spare batteries along with the ones already in the lights. I learned this lesson the hard way, on a 13-mile hike in Yosemite.. Nearly had to bed-down on the trail (without a sleeping bag!).
For serious hiking today, where you might spend 3, 4 or 5 hours in the dark, I strongly recommend Li-ion batteries. My personal choice (from the small set of lights I own) would be to carry the ZebraLight H600Fd Mark III headlamp as my main light and the ZebraLight SC62w hand-held as backup. The zebras are small, light-weight, and sturdy. On medium settings, they will last more than 10 hours each. Nevertheless, I would also carry an additional spare battery, sealed water-tight in a carrier, or possibly inside a third flashlight, such as the BLF D80 or a C8.
Although there is nothing wrong with having a tiny AAA as a last resort, my own preference is for all the lights I carry on a hike to share a common battery type.. That's why my "last resort," third flashlight would be a some sort of C8 that takes the same 18650 batteries as my ZebraLights. Heck, maybe the C8, which has a bit of throw, should be my second light.. That way, the SC62w could be my third, serving double duty as both a last-resort flashlight and a water-proof battery carrier.
With three 18650 batteries on board, I am confident I could hike all night, use however much light I need, and not come close to running out of juice.