0

Command I have used for creating directory in hdfs :

hadoop fs -mkdir -p /usr/local/hadoop/input_dir

Message I am getting :

14/09/19 15:33:01 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

I have checked ~/,bashrc

export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_INSTALL/lib"
Nishant Kumar
  • 5,995
  • 19
  • 69
  • 95
  • 2
    you can ignore this warning, above command must have created directory,you want to remove warning or you want to create directory ? – user3484461 Sep 19 '14 at 11:14
  • This is irrelevant to what command you are running. The result should be a new direcoty, as @user3484461 says. See this post for potential help: http://stackoverflow.com/questions/19943766/hadoop-unable-to-load-native-hadoop-library-for-your-platform-error-on-centos – vefthym Sep 19 '14 at 15:27
  • Just ignore it. This warning is just because you didn't compile Hadoop locally, but download from website. That's totally fine. It will do your work. – Chong Tang Feb 05 '15 at 05:21
  • be careful, with that command you are creating a directory in the hadoop filesystem, you aren't forced to follow the same names that exist in local filesystem (you shouldn't imho, tutorials all over the web recommend use `/user/hduser/input`, for example) – chomp May 12 '15 at 13:51

1 Answers1

0

Appending the below path in /.bashrc file will remove the warning. However, your command will still execute and create the directory.

export HADOOP_PREFIX="$HADOOP_PREFIX -Djava.library.path=/usr/local/hadoop/lib/native"
Nidhi
  • 304
  • 1
  • 4
  • 15