When you get poked by a spine, do the spines hang on? If so, its a Cholla. What do the flowers look like? Tanzania is not where I would expect to find a cholla, especially a lot of cholla.
If it has white sap, its a Euphorbia. It really looks like a cholla.