<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 13, 2016 at 4:49 PM, Olaf Marzocchi <span dir="ltr"><<a href="mailto:lists@marzocchi.net" target="_blank">lists@marzocchi.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I was trying to run hbase 1.2.4 (prerequisite for OpenTSDB) and I found that, contrary to my previous experience with hbase on OS X, it does not run out of the box (+ basic config). Instead, the java process only eats all the CPU.<br>
<br>
I tried to get a stack trace as suggested in the hbase mailing list (see the discussion at the end of this email), but jstack does not seems to work.<br>
<br>
This is the output (as also pasted in the link below):<br>
<br>
$ /usr/java/bin/jstack -m 16177<br>
Attaching to process ID 16177, please wait...<br>
Exception in thread "main" java.lang.reflect.InvocationTa<wbr>rgetException<br>
        at sun.reflect.NativeMethodAccess<wbr>orImpl.invoke0(Native Method)<br>
        at sun.reflect.NativeMethodAccess<wbr>orImpl.invoke(NativeMethodAcce<wbr>ssorImpl.java:57)<br>
        at sun.reflect.DelegatingMethodAc<wbr>cessorImpl.invoke(DelegatingMe<wbr>thodAccessorImpl.java:43)<br>
        at java.lang.reflect.Method.invok<wbr>e(Method.java:606)<br>
        at sun.tools.jstack.JStack.runJSt<wbr>ackTool(JStack.java:136)<br>
        at sun.tools.jstack.JStack.main(J<wbr>Stack.java:102)<br>
Caused by: java.lang.UnsatisfiedLinkError<wbr>: no saproc in java.library.path<br>
        at java.lang.ClassLoader.loadLibr<wbr>ary(ClassLoader.java:1889)<br>
        at java.lang.Runtime.loadLibrary0<wbr>(Runtime.java:849)<br>
        at java.lang.System.loadLibrary(S<wbr>ystem.java:1088)<br>
        at sun.jvm.hotspot.debugger.proc.<wbr>ProcDebuggerLocal.<clinit>(Pro<wbr>cDebuggerLocal.java:660)<br>
        at sun.jvm.hotspot.bugspot.BugSpo<wbr>tAgent.setupDebuggerSolaris(Bu<wbr>gSpotAgent.java:634)<br>
        at sun.jvm.hotspot.bugspot.BugSpo<wbr>tAgent.setupDebugger(BugSpotAg<wbr>ent.java:513)<br>
        at sun.jvm.hotspot.bugspot.BugSpo<wbr>tAgent.go(BugSpotAgent.java:<wbr>492)<br>
        at sun.jvm.hotspot.bugspot.BugSpo<wbr>tAgent.attach(BugSpotAgent.<wbr>java:331)<br>
        at sun.jvm.hotspot.tools.Tool.sta<wbr>rt(Tool.java:163)<br>
        at sun.jvm.hotspot.tools.JStack.m<wbr>ain(JStack.java:86)<br>
        ... 6 more<br>
<br>
Both java and jdk packages are installed from main OmniOS repo and compiled for r151020, the OS version I'm running right now<br></blockquote><div><br></div><div>You're using the openjdk 1.7.0_101 that comes with omnios?<br><br></div><div>You don't need hbase to trigger this. I just tested jstack with an arbitrary pid, and it<br>fails the same way. I'm not sure why, libsaproc.so is installed where I would expect it<br></div><div>to be, but jstack looks for it somewhere else.<br><br></div><div>However, the one thing I would say is that for any real work, don't use the jdk that<br></div><div>omnios supplies. It's old (java 7) and 32-bit only. At $DAYJOB, we use the Oracle<br></div><div>jdk8 and it works fine. (Although my own builds of openjdk7 and openjdk8 are<br></div><div>also fine, but it's easier to rely on someone else for maintaining something<br></div><div>like java.)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I would appreciate help in the solution of this problem so that the guys from the hbase mailing list can pinpoint the issue about hbase under OmniOS.<br>
Of course, if anyone has experience with hbase on OmniOS and has seen similar issues, or is successfully running previous versions, feel free to let me know. I haven't checked any previous version, I only tested the current stable.<br>
<br>
Thanks<br>
Olaf<br>
<br>
<br>
<br>
-------- Forwarded Message --------<br>
Subject: Re: "Quickstart" on OmniOS/illumos not working, java eats CPU<br>
Date: Sun, 13 Nov 2016 08:28:42 -0800<br>
From: Ted Yu <<a href="mailto:yuzhihong@gmail.com" target="_blank">yuzhihong@gmail.com</a>><br>
Reply-To: <a href="mailto:user@hbase.apache.org" target="_blank">user@hbase.apache.org</a><br>
To: <a href="mailto:user@hbase.apache.org" target="_blank">user@hbase.apache.org</a> <<a href="mailto:user@hbase.apache.org" target="_blank">user@hbase.apache.org</a>><br>
<br>
bq. Caused by: java.lang.UnsatisfiedLinkError<wbr>: no saproc in<br>
java.library.path<br>
<br>
Was the jstack of version 1.7.0_101 ?<br>
I used google and found:<br>
<a href="http://umchee.blogspot.com/p/i-recently-needed-to-investigate.html" rel="noreferrer" target="_blank">http://umchee.blogspot.com/p/i<wbr>-recently-needed-to-investigat<wbr>e.html</a><br>
<br>
but it was about Java 1.5<br>
<br>
You can use this command to find the commandline for hbase process<br>
(replace 16059<br>
with the new process Id):<br>
ps aux | grep 16059<br>
<br>
Then use the jstack from same path as java to capture stack trace:<br>
<br>
Thanks<br>
<br>
On Sun, Nov 13, 2016 at 8:16 AM, Olaf Marzocchi <<a href="mailto:lists@marzocchi.net" target="_blank">lists@marzocchi.net</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm not 100% sure about the stack trace (not a developer myself), but I<br>
searched online and used jstack:<br>
<a href="http://pastebin.com/AT6pScBv" rel="noreferrer" target="_blank">http://pastebin.com/AT6pScBv</a><br>
<br>
Additional info: after turning on DEBUG, the java process did not<br>
immediately jump to 100% cpu as it used to do, it ramped up and it took 3<br>
minutes to get there. It may however be a coincidence.<br>
<br>
Hope this can help pinpointing the issue.<br>
<br>
Olaf<br>
<br>
<br>
<br>
On 13/11/2016 01:18, Ted Yu wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can you turn on DEBUG logging ?<br>
In log4j.properties :<br>
<br>
log4j.logger.org.apache.hadoop<wbr>.hbase=DEBUG<br>
<br>
Since this is reproducible, can you capture one or two stack traces before<br>
killing the server ?<br>
<br>
Thanks<br>
<br>
On Sat, Nov 12, 2016 at 3:09 PM, Olaf Marzocchi <<a href="mailto:lists@marzocchi.net" target="_blank">lists@marzocchi.net</a>><br>
wrote:<br>
<br>
Hello,<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I tested HBase with OpenTSDB some time ago on OS X locally and the<br>
quickstart guide worked perfectly, merged with<br>
<a href="http://opentsdb.net/setup-hbase.html" rel="noreferrer" target="_blank">http://opentsdb.net/setup-hbas<wbr>e.html</a> where necessary.<br>
<br>
I tried yesterday to do the same on my OmniOS/illumos server and I<br>
encountered issues with HBase.<br>
<br>
First of all I set "JAVA_HOME=/usr/java" in "conf/hbase-env.sh".<br>
<br>
$ /usr/java/bin/java -version<br>
openjdk version "1.7.0_101"<br>
OpenJDK Runtime Environment (build 1.7.0_101-b00)<br>
OpenJDK Server VM (build 24.101-b00, mixed mode)<br>
<br>
I edited also "hbase-site.xml":<br>
<br>
<configuration><br>
  <property><br>
    <name>hbase.rootdir</name><br>
    <value>file:///export/home/ola<wbr>f/hbase</value><br>
  </property><br>
  <property><br>
    <name>hbase.zookeeper.property<wbr>.dataDir</name><br>
    <value>/export/home/olaf/zooke<wbr>eper</value><br>
  </property><br>
</configuration><br>
<br>
I then launched "bin/start-hbase.sh" and it quits apparently normally. A<br>
directory "/export/home/olaf/zookeeper" appeared, but no<br>
/export/home/olaf/hbase.<br>
<br>
$ ls -l /export/home/olaf/<br>
drwxrwxr-x   3 olaf     olaf           3 Nov 12 01:16 zookeeper<br>
<br>
I also checked with prstat ("top") and I see that java is taking a full<br>
CPU. After some minutes it's still crunching something.<br>
If I launch "./bin/hbase shell" it never gets to "hbase(main):001:0>".<br>
At this point the only way is to kill -9 both java processes: the stop<br>
script doesn't work, it outputs dots forever.<br>
<br>
I uploaded the two log files (.log and .out) to Pastebin:<br>
<a href="http://pastebin.com/aFMXmWYU" rel="noreferrer" target="_blank">http://pastebin.com/aFMXmWYU</a><br>
<br>
I'm not sure where to begin with the debugging, since I did no<br>
customisation at all and I don't see any error logged.<br>
<br>
I would be grateful for some help.<br>
<br>
Thanks<br>
Olaf<br>
<br>
<br>
</blockquote>
<br>
</blockquote></blockquote>
<br>
______________________________<wbr>_________________<br>
OmniOS-discuss mailing list<br>
<a href="mailto:OmniOS-discuss@lists.omniti.com" target="_blank">OmniOS-discuss@lists.omniti.co<wbr>m</a><br>
<a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" rel="noreferrer" target="_blank">http://lists.omniti.com/mailma<wbr>n/listinfo/omnios-discuss</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">-Peter Tribble<br><a href="http://www.petertribble.co.uk/" target="_blank">http://www.petertribble.co.uk/</a> - <a href="http://ptribble.blogspot.com/" target="_blank">http://ptribble.blogspot.com/</a></div>
</div></div>