Hi Udara,
The issue is that the datasource is attempting to connect to a zookeeper
instance at localhost, at port 2818 which of course doesn't exist. Can you
try setting the"hbase.zookeeper.quorum" and
"hbase.zookeeper.property.clientPort" properties as well in the datasource
config?
<configuration>
<property>
<name>hbase.master</name>
<value>10.100.7.80:16000</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>{zookeeper_node}</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>{zookeeper_port, e.g. 2181}</value>
</property>
</configuration>
Thanks,
On 3 July 2015 at 14:28, Udara Liyanage <[email protected]> wrote:
> Hi,
>
> I get the below error when I added the following data source
> to repository/conf/datasources/analytics-datasources.xml. Hbase is running
> on 10.100.7.80
> <datasource>
> <name>WSO2_ANALYTICS_RS_DB_HBASE</name>
> <description>The datasource used for analytics file
> system</description>
> <jndiConfig>
> <name>jdbc/WSO2HBaseDB</name>
> </jndiConfig>
> <definition type="HBASE">
> <configuration>
> <property>
> <name>hbase.master</name>
> <value>10.100.7.80:16000</value>
> </property>
> </configuration>
> </definition>
> </datasource>
>
>
> TID: [-1] [] [2015-07-03 14:19:22,276] INFO
> {org.apache.zookeeper.ZooKeeper} - Client
> environment:zookeeper.version=3.4.5-1392090, built on 09/30/2012 17:52 GMT
> {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,276] INFO
> {org.apache.zookeeper.ZooKeeper} - Client environment:host.name=localhost
> {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,276] INFO
> {org.apache.zookeeper.ZooKeeper} - Client
> environment:java.version=1.7.0_75 {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,276] INFO
> {org.apache.zookeeper.ZooKeeper} - Client environment:java.vendor=Oracle
> Corporation {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,276] INFO
> {org.apache.zookeeper.ZooKeeper} - Client
> environment:java.home=/usr/lib/jvm/jdk1.7.0_75/jre
> {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,277] INFO
> {org.apache.zookeeper.ZooKeeper} - Client
> environment:java.class.path=/usr/lib/jvm/jdk1.7.0_75//lib/tools.jar:/tmp/wso2das-3.0.0-SNAPSHOT/bin/org.wso2.carbon.bootstrap-4.4.0.jar:/tmp/wso2das-3.0.0-SNAPSHOT/bin/tcpmon-1.0.jar:/tmp/wso2das-3.0.0-SNAPSHOT/bin/tomcat-juli-7.0.59.jar:/tmp/wso2das-3.0.0-SNAPSHOT/lib/commons-lang-2.6.0.wso2v1.jar
> {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,277] INFO
> {org.apache.zookeeper.ZooKeeper} - Client
> environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
> {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,277] INFO
> {org.apache.zookeeper.ZooKeeper} - Client
> environment:java.io.tmpdir=/tmp/wso2das-3.0.0-SNAPSHOT/tmp
> {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,277] INFO
> {org.apache.zookeeper.ZooKeeper} - Client environment:java.compiler=<NA>
> {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,277] INFO
> {org.apache.zookeeper.ZooKeeper} - Client environment:os.name=Linux
> {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,277] INFO
> {org.apache.zookeeper.ZooKeeper} - Client environment:os.arch=amd64
> {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,277] INFO
> {org.apache.zookeeper.ZooKeeper} - Client
> environment:os.version=3.13.0-53-generic {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,277] INFO
> {org.apache.zookeeper.ZooKeeper} - Client environment:user.name=root
> {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,277] INFO
> {org.apache.zookeeper.ZooKeeper} - Client environment:user.home=/root
> {org.apache.zookeeper.ZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,277] INFO
> {org.apache.zookeeper.ZooKeeper} - Client
> environment:user.dir=/tmp/wso2das-3.0.0-SNAPSHOT
> {org.apache.zookeeper.ZooKeeper}
> *TID: [-1] [] [2015-07-03 14:19:22,277] INFO
> {org.apache.zookeeper.ZooKeeper} - Initiating client connection,
> connectString=localhost:2181 sessionTimeout=180000
> watcher=hconnection-0x43fb37ae0x0, quorum=localhost:2181, baseZNode=/hbase
> {org.apache.zookeeper.ZooKeeper}*
> *TID: [-1] [] [2015-07-03 14:19:22,291] INFO
> {org.apache.zookeeper.ClientCnxn} - Opening socket connection to server
> localhost/127.0.0.1:2181 <http://127.0.0.1:2181>. Will not attempt to
> authenticate using SASL (unknown error) {org.apache.zookeeper.ClientCnxn}*
> *TID: [-1] [] [2015-07-03 14:19:22,296] WARN
> {org.apache.zookeeper.ClientCnxn} - Session 0x0 for server null,
> unexpected error, closing socket connection and attempting reconnect
> {org.apache.zookeeper.ClientCnxn}*
> *java.net.ConnectException: Connection refused*
> * at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)*
> * at
> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)*
> * at
> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)*
> * at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)*
> *TID: [-1] [] [2015-07-03 14:19:22,404] WARN
> {org.apache.hadoop.hbase.zookeeper.Recov*erableZooKeeper} - Possibly
> transient ZooKeeper, quorum=localhost:2181,
> exception=org.apache.zookeeper.KeeperException$ConnectionLossException:
> KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
> {org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:22,404] INFO
> {org.apache.hadoop.hbase.util.RetryCounter} - Sleeping 1000ms before retry
> #0... {org.apache.hadoop.hbase.util.RetryCounter}
> TID: [-1] [] [2015-07-03 14:19:23,401] INFO
> {org.apache.zookeeper.ClientCnxn} - Opening socket connection to server
> localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL
> (unknown error) {org.apache.zookeeper.ClientCnxn}
> TID: [-1] [] [2015-07-03 14:19:23,402] WARN
> {org.apache.zookeeper.ClientCnxn} - Session 0x0 for server null,
> unexpected error, closing socket connection and attempting reconnect
> {org.apache.zookeeper.ClientCnxn}
> java.net.ConnectException: Connection refused
> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> at
> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
> at
> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
> at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
> TID: [-1] [] [2015-07-03 14:19:23,503] WARN
> {org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper} - Possibly
> transient ZooKeeper, quorum=localhost:2181,
> exception=org.apache.zookeeper.KeeperException$ConnectionLossException:
> KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
> {org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper}
> TID: [-1] [] [2015-07-03 14:19:23,503] INFO
> {org.apache.hadoop.hbase.util.RetryCounter} - Sleeping 2000ms before retry
> #1... {org.apache.hadoop.hbase.util.RetryCounter}
> TID: [-1] [] [2015-07-03 14:19:24,503] INFO
> {org.apache.zookeeper.ClientCnxn} - Opening socket connection to server
> localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL
> (unknown error) {org.apache.zookeeper.ClientCnxn}
> TID: [-1] [] [2015-07-03 14:19:24,503] WARN
> {org.apache.zookeeper.ClientCnxn} - Session 0x0 for server null,
> unexpected error, closing socket connection and attempting reconnect
> {org.apache.zookeeper.ClientCnxn}
> java.net.ConnectException: Connection refused
> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> at
> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
> at
> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
> at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
> TID: [-1] [] [2015-07-03 14:19:25,604] INFO
> {org.apache.zookeeper.ClientCnxn} - Opening socket connection to server
> localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL
> (unknown error) {org.apache.zookeeper.ClientCnxn}
>
>
> 294,71 27%
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>
--
Gokul Balakrishnan
Senior Software Engineer,
WSO2, Inc. http://wso2.com
Mob: +94 77 593 5789 | +1 650 272 9927
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev