Hadoop – TaskTracker – Error – An unexpected error has been detected by Java Runtime Environment – SIGSEGV (0xb) – Problematic frame: libjvm.so

An unexpected error has been detected by Java Runtime Environment – SIGSEGV (0xb) – Problematic frame: libjvm.so

/var/log/hadoop/hduser/hadoop-hduser-tasktracker.log


#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0619c0f3, pid=7036, tid=3076180800
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing linux-x86)
# Problematic frame:
# V  [libjvm.so+0x19c0f3]
#
# An error report file with more information is saved as:
# /usr/local/hadoop/hs_err_pid7036.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

Seeing that the file /usr/local/hadoop/hs_err_pid7036.log
is referenced, went looking for that file:



#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0619c0f3, pid=7036, tid=3076180800
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing linux-x86)
# Problematic frame:
# V  [libjvm.so+0x19c0f3]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0xb7406c00):  JavaThread "main" [_thread_in_vm, id=7066, stack(0xb755c000,0xb75ad000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x00000022

....
....
...

vm_info: Java HotSpot(TM) Client VM (10.0-b22) for linux-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 00:39:19 by "java_re" with gcc 3.2.1-7a (J2SE release)

So here I am facing this “stupid” java error, and I am thinking I have so many other things to worry about.

But, I remember that I installed an update to Java a fortnight or so ago.

So I do need to rollback.

But, before doing so, I need to record the current version of Java.



Syntax:
java -version

Output:
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

Interpretation:

Java JRE Version: 1.6.0_06-b02
Java HotSpot Version: 10.0-b22, mixed mode, sharing

And, so what to do, but check my install standard — And, that is whatever Michael Noll says it is:

http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/



user@ubuntu:~# java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

Explanation:

Java JRE –> 1.60_20-b02
Java HotSpot –> 16.3-b01, mixed mode, sharing

And, so I am thiking I have to get back to Michael’s published version.

To do so:

Uninstall



Syntax:
  sudo apt-get remove --purge sun-java6-jdk

Output:

  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  The following packages will be REMOVED:
     sun-java6-jdk*

     0 upgraded, 0 newly installed, 1 to remove 
     and 152 not upgraded.

    After this operation, 32.4 MB disk space will be freed.

    Do you want to continue [Y/n]? Y
    (Reading database ... 200295 files and 
      directories currently installed.)

    Removing sun-java6-jdk ...

Clean



sudo apt-get clean


Install



Syntax:
  sudo apt-get install sun-java6-jdk

Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  sun-java6-demo sun-java6-doc sun-java6-source
The following NEW packages will be installed:
  sun-java6-jdk
0 upgraded, 1 newly installed, 0 to remove and 152 not upgraded.
Need to get 9,625 kB of archives.
After this operation, 32.4 MB of additional disk space will be used.


Effect Java Alternatives



Syntax:

  sudo update-java-alternatives -s java-6-sun

References

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s