我尝试设置hadoop并在 Ubuntu 中输入env
中的所有bashrc
个变量。问题是如果我在终端中执行以下操作,
hadoop checknative
我收到回复:
14/07/23 01:48:10 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Native library checking:
hadoop: false
zlib: false
snappy: false
lz4: false
bzip2: false
但如果我使用sudo
sudo hadoop/bin/hadoop checknative
我收到回复:
14/07/23 01:48:36 WARN bzip2.Bzip2Factory: Failed to load/initialize native-bzip2 library system- native, will use pure-Java version
14/07/23 01:48:36 INFO zlib.ZlibFactory: Successfully loaded & initialized native-zlib library
Native library checking:
hadoop: true /home/ubuntu/hadoop/lib/native/libhadoop.so.1.0.0
zlib: true /lib/i386-linux-gnu/libz.so.1
snappy: false
lz4: true revision:99
bzip2: false
我应该怎么做才能看到没有sudo的库?我是否必须始终使用root?