Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> Accessing HBase using java native api from weblogic


Copy link to this message
-
Re: Accessing HBase using java native api from weblogic
You see anything in zk logs at the time of your connectionloss?
192.168.56.101:2181 is where a zk ensemble member resides (and is up and
running)?

St.Ack
On Fri, Jul 19, 2013 at 11:33 AM, rjoshi <[EMAIL PROTECTED]> wrote:

> Hello,
>
>   I have a java native api to access HBase and it works fine as a
> standalone
> program. But when I deploy same jar file as part of JAX-RS service, it's
> not
> able to get zookeeper.
>
> I have given below both logs when accessed (doesn't work) from weblogic and
> accessed (works fine) as a standalone java program using same jar.
>
> Any help would be appreciated.
>
>
> Below is the log when accessed within WebLogic 10.3.5 and it doesn't work.
>
> <pre>
> 2013-07-19 14:15:30 INFO  class:68 -
> *************************************************
> 2013-07-19 14:15:30 INFO  class:69 - HBase configuration info ::
> zookeeperQuorum -->192.168.56.101, zookeeperClientPort -->2181, hbaseMaster
> -->192.168.56.101:60000
> 2013-07-19 14:15:30 INFO  class:72 -
> *************************************************
> 2013-07-19 14:15:30 DEBUG MutableMetricsFactory:42 - field
> org.apache.hadoop.metrics2.lib.MutableRate
> org.apache.hadoop.security.UserGroupInformation$UgiMetrics.loginSuccess
> with
> annotation @org.apache.hadoop.metrics2.annotation.Metric(valueName=Time,
> about=, value=[Rate of successful kerberos logins and latency
> (milliseconds)], type=DEFAULT, always=false, sampleName=Ops)
> 2013-07-19 14:15:30 DEBUG MutableMetricsFactory:42 - field
> org.apache.hadoop.metrics2.lib.MutableRate
> org.apache.hadoop.security.UserGroupInformation$UgiMetrics.loginFailure
> with
> annotation @org.apache.hadoop.metrics2.annotation.Metric(valueName=Time,
> about=, value=[Rate of failed kerberos logins and latency (milliseconds)],
> type=DEFAULT, always=false, sampleName=Ops)
> 2013-07-19 14:15:30 DEBUG MetricsSystemImpl:220 - UgiMetrics, User and
> group
> related metrics
> 2013-07-19 14:15:30 DEBUG Groups:180 -  Creating new Groups object
> 2013-07-19 14:15:30 DEBUG NativeCodeLoader:46 - Trying to load the
> custom-built native-hadoop library...
> 2013-07-19 14:15:30 DEBUG NativeCodeLoader:55 - Failed to load
> native-hadoop
> with error: java.lang.UnsatisfiedLinkError: no hadoop in java.library.path
> 2013-07-19 14:15:30 DEBUG NativeCodeLoader:56 -
>
> java.library.path=C:\Java\JROCKI~1.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Oracle\MIDDLE~3\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~3\patch_ocp360\profiles\default\native;C:\Oracle\MIDDLE~3\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~3\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~3\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~3\modules\ORGAPA~1.1\bin;C:\Java\JROCKI~1.0\jre\bin;C:\Java\JROCKI~1.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
> Files (x86)\Microsoft Application Virtualization
> Client;C:\Java\jrockit-jdk1.6.0_37-R28.2.5-4.1.0;C:\Program
>
> Files\TortoiseSVN\bin;C:\Oracl;C:\Users\user123\AppData\Local\Enthought\Canopy32\User\Scripts;C:\Softwares\npp.6.3.2.bin\unicode\notepad++.exe;C:\Python\Python27;C:\Softwares\apache-maven-3.0.5\bin;C:\Softwares\depot_tools;C:\Softwares\apache-ant-1.9.1\bin;;C:\Oracle\MIDDLE~3\WLSERV~1.3\server\native\win\32\oci920_8;.
> 2013-07-19 14:15:30 WARN  NativeCodeLoader:62 - Unable to load
> native-hadoop
> library for your platform... using builtin-java classes where applicable
> 2013-07-19 14:15:30 DEBUG JniBasedUnixGroupsMappingWithFallback:40 -
> Falling
> back to shell based
> 2013-07-19 14:15:30 DEBUG JniBasedUnixGroupsMappingWithFallback:44 - Group
> mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping
> 2013-07-19 14:15:30 DEBUG Groups:66 - Group mapping
> impl=org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback;
> cacheTimeout=300000
> 2013-07-19 14:15:30 DEBUG UserGroupInformation:175 - hadoop login
> 2013-07-19 14:15:30 DEBUG UserGroupInformation:124 - hadoop login commit
> 2013-07-19 14:15:30 DEBUG UserGroupInformation:154 - using local
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB