我用于在hdfs中创建目录的命令:
hadoop fs -mkdir -p /usr/local/hadoop/input_dir
我收到的消息:
14/09/19 15:33:01 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
我已查看~/,bashrc
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_INSTALL/lib"
答案 0 :(得分:0)
在/.bashrc文件中追加以下路径将删除警告。但是,您的命令仍将执行并创建目录。
export HADOOP_PREFIX="$HADOOP_PREFIX -Djava.library.path=/usr/local/hadoop/lib/native"