Apparently, the datanode was in in safemode. The following command got everything working:
sudo -u hdfs hdfs dfsadmin -safemode leave
Unfortunately, it seems every time I restart the VM the datanode is placed into safemode and I have to enter the command every time. Not sure why that's the case.