Answer:
It was written in the 19th century. Some believe it to be of African American origin, a song that slaves sang in the field. Many others think it was actually a song from the Native American Hupa tribe and was modifed to have christian lyrics.