What is the conventional directory to install Hadoop into?

Hadoop can be installed as a snap package in all currently supported versions of Ubuntu. Open the terminal and type:

sudo snap install hadoop --channel latest/beta

This snap installs Hadoop 2.7.3 from the Apache Bigtop 1.2.0 release.