Messed up sed syntactics in hadoop startup script after reinstalling JVM Messed up sed syntactics in hadoop startup script after reinstalling JVM hadoop hadoop

Messed up sed syntactics in hadoop startup script after reinstalling JVM


So i found an answer to this question: My guess was wrong, and everything with sed is fine. Problem however was in how Oracle JVM works with external libraries compare to OpenJDK. It did throw exception where script was not expecting it, and it ruin whole sed input.You can fix it by adding following system variables: HADOOP_COMMON_LIB_NATIVE_DIR which should point to /lib/native folder of your Hadoop installation and add -Djava.library.path=/opt/hadoop/lib to whatever options you already have in HADOOP_OPTS variable (notice that /opt/hadoop is my installation folder, you might need to change it in order for stuff to work properly). I personally add export commands to hadoop-env.sh script, but adding it to .bash file or start-all.sh should work as well.