Folder not created with $HADOOP_HOME/bin/hadoop fs -mkdir /user/hive/warehouse
you can give with -p, which will create parent path
$HADOOP_HOME/bin/hadoop fs -mkdir -p /user/hive/warehouse
you should create one b one, which means for creating /user/hive/warehouse
folder first you should have /user
folder and inside it you should have /user/hive
folder, then only you can create /user/hive/warehouse
folder. You cannot directly create with it.