Pavan Kumar
Pavan Kumar

Reputation: 1

Hadoop file system commands not found

I have installed Hadoop 2.6.0 on my laptop which runs Ubuntu 14.04 lts.

Below is the link I followed for Hadoop installation: https://github.com/ev2900/YouTube_Vedio/blob/master/Install%20Hadoop%202.6%20on%20Ubuntu%2014.04%20LTS/Install%20Hadoop%202.6%20--%20Virtual%20Box%20Ubuntu%2014.04%20LTS.txt

After installation, I ran two commands:

  1. hadoop namenode -format - It works fine
  2. hadoop fs -ls - It is giving the following error

    15/11/15 16:15:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

    ls: `.': No such file or directory

    help me solve the error.

Upvotes: 0

Views: 1310

Answers (1)

Ben Watson
Ben Watson

Reputation: 5531

15/11/15 16:15:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable is a perpetual annoyance and not an error, so don't worry about that.

The ls: '.': No such file or directory error means that you haven't made your home directory yet, so you're trying to ls on a folder that doesn't exist. Do the following (as HDFS root user) to create your home folder. Ensure it has the correct permissions (which I guess depends on what specifically you want to do re: groups etc):

hdfs dfs -mkdir -p /user/'your-username'

Upvotes: 1

Related Questions