It is because the parent directories do not exist yet either. Try hdfs dfs -mkdir -p /user/Hadoop/twitter_data
. The -p
flag indicates that all nonexistent directories leading up to the given directory are to be created as well.
As for the question you posed in the comments, simply type into your browser http://<host name of the namenode>:<port number>/
.