Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Impalad - debug port is 30000 + x , where x is the running number of impalads started. If 3 daemons are started, the ports range from 3000[0-2].
  • Catalogd - debug port is 30000 + x, where x is the size of the cluster. If 3 daemons are started the debug port is 3000330030.

As soon as the JVM is started, it is possible to connect using the above ports. The simplest debugger is jdb:

Code Block
jdb -attach localhost:3000030030

Using Eclipse to attach to a running Impalad JVM

...

Code Block
languagetext
title.gdbinit
define hook-stop
  handle SIGSEGV stop print pass
end
define hook-run
  handle SIGSEGV nostop noprint pass
end
define hook-continue
  handle SIGSEGV nostop noprint pass
end

 

...



The follow bash function is useful for getting the stack traces of all the threads (there are usually plenty of them).

...