Warn Util.nativecodeloader: No se puede cargar la biblioteca nativa de hadopía para su plataforma ... utilizando clases Builtin-Java donde corresponda

Sounds silly, but if you've copied .bashrc lines from somewhere
check that the quotation marks are like this:
    export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib/native"
and not like this
    export HADOOP_OPTS=”-Djava.library.path=$HADOOP_HOME/lib/native”

...took me some time
Index out of bounds