0

I'm trying to set up hadoop and put in all the env variables in my bashrc on an Ubuntu. The problem is if I do the following in a terminal,

hadoop checknative

I get the response:

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

but if I use sudo

sudo hadoop/bin/hadoop checknative

I get the response:

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

What should I do so I see the libraries without sudo? Am I going to have to use root always?

John Powell
  • 12,253
  • 6
  • 59
  • 67
Majid alDosari
  • 133
  • 1
  • 2
  • 13

0 Answers0