still not able to solve this issue please help thanks
On Fri, Jan 31, 2014 at 8:17 PM, jeevi tesh <[email protected]> wrote: > One interesting thing, is even if i shutdown the linux system or stop > hbase same error I get. so it proves it is not even able to establishes > connection to hadoop server so it is the problem in my client code > > > On Fri, Jan 31, 2014 at 8:12 PM, jeevi tesh <[email protected]>wrote: > >> Thanks for taking effort to help me >> In "http://192.168.1.42:60010/master-status" >> I found >> " Zookeeper Quorum localhost:2181 Addresses of all registered ZK >> servers. For more, see zk dump." >> accordingly I updated my code with proper port number >> still error persists... >> please check my code and error also >> It will be of great help if you can help me. >> I'm trying to run the below code from windows machine and hadoop and >> hbase are installed in oracle linux single node cluster >> Now i removed Zookeeper >> import java.io.IOException; >> >> import org.apache.hadoop.conf.Configuration; >> import org.apache.hadoop.hbase.HBaseConfiguration; >> import org.apache.hadoop.hbase.client.HTable; >> import org.apache.hadoop.hbase.client.Put; >> import org.apache.hadoop.hbase.util.Bytes; >> >> public class testDB { >> >> /** >> * @param args >> */ >> public static void main(String[] args) { >> try { >> System.out.println("1 Before HBASE COnfiguration"); >> Configuration config = HBaseConfiguration.create(); >> //config.clear(); >> System.out.println("2 Before HBASE COnfiguration"); >> config.set("hbase.master", "192.168.1.42:60010"); >> config.set("hbase.zookeeper.quorum.", "192.168.1.42:2181"); >> System.out.println("HBase is running!"); >> HTable table; >> table = new HTable(config, "mytable"); >> System.out.println("Table mytable obtained "); >> >> Put put = new Put(Bytes.toBytes("row1")); >> >> put.add(Bytes.toBytes("colfam1"),Bytes.toBytes("qual1"),Bytes.toBytes("val1")); >> >> put.add(Bytes.toBytes("colfam1"),Bytes.toBytes("qual2"),Bytes.toBytes("val2")); >> table.put(put); >> } catch (IOException e) { >> e.printStackTrace(); >> } >> >> } >> >> } >> 1 Before HBASE COnfiguration >> 2 Before HBASE COnfiguration >> HBase is running! >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client >> environment:zookeeper.version=3.3.2-1031432, built on 11/05/2010 05:32 GMT >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client environment:host.name >> =DELL-75.unilog >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client >> environment:java.version=1.6.0_16 >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client >> environment:java.vendor=Sun Microsystems Inc. >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client >> environment:java.home=C:\Program Files\Java\jdk1.6.0_16\jre >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client >> environment:java.class.path=E:\jeevi\XRFWorkSpace200\testdbcon\bin;E:\jeevi\XRF100\WebContent\WEB-INF\lib\apache-logging-log4j.jar;E:\jeevi\XRF100\WebContent\WEB-INF\lib\asm-3.1.jar;E:\jeevi\XRF100\WebContent\WEB-INF\lib\commons-logging-1.1.3.jar;E:\jeevi\XRF100\WebContent\WEB-INF\lib\hadoop-core-0.19.0.jar;E:\jeevi\XRF100\WebContent\WEB-INF\lib\hbase-0.90.2.jar;E:\jeevi\XRF100\WebContent\WEB-INF\lib\zookeeper-3.3.2.jar >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client >> environment:java.library.path=C:\Program >> Files\Java\jdk1.6.0_16\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program >> Files\Common Files\Acronis\SnapAPI\;C:\Program >> Files\Java\jdk1.6.0_16\bin;C:\apache-maven-3.1.1\bin >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client >> environment:java.io.tmpdir=C:\Users\jems\AppData\Local\Temp\ >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client >> environment:java.compiler=<NA> >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client >> environment:os.name=Windows >> 7 >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client environment:os.arch=x86 >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client >> environment:os.version=6.1 >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client environment:user.name >> =jems >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client >> environment:user.home=C:\Users\jems >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Client >> environment:user.dir=E:\jeevi\XRFWorkSpace200\testdbcon >> 14/01/31 20:04:47 INFO zookeeper.ZooKeeper: Initiating client connection, >> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection >> 14/01/31 20:04:47 INFO zookeeper.ClientCnxn: Opening socket connection to >> server localhost/127.0.0.1:2181 >> 14/01/31 20:04:48 WARN zookeeper.ClientCnxn: Session 0x0 for server null, >> unexpected error, closing socket connection and attempting reconnect >> java.net.ConnectException: Connection refused: no further information >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574) >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119) >> 14/01/31 20:04:48 INFO zookeeper.ClientCnxn: Opening socket connection to >> server localhost/0:0:0:0:0:0:0:1:2181 >> 14/01/31 20:04:48 WARN zookeeper.ClientCnxn: Session 0x0 for server null, >> unexpected error, closing socket connection and attempting reconnect >> java.net.SocketException: Address family not supported by protocol >> family: connect >> at sun.nio.ch.Net.connect(Native Method) >> at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507) >> at >> org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1050) >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1077) >> 14/01/31 20:04:50 INFO zookeeper.ClientCnxn: Opening socket connection to >> server localhost/127.0.0.1:2181 >> 14/01/31 20:04:51 WARN zookeeper.ClientCnxn: Session 0x0 for server null, >> unexpected error, closing socket connection and attempting reconnect >> java.net.ConnectException: Connection refused: no further information >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574) >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119) >> 14/01/31 20:04:51 INFO zookeeper.ClientCnxn: Opening socket connection to >> server localhost/0:0:0:0:0:0:0:1:2181 >> 14/01/31 20:04:51 WARN zookeeper.ClientCnxn: Session 0x0 for server null, >> unexpected error, closing socket connection and attempting reconnect >> java.net.SocketException: Address family not supported by protocol >> family: connect >> at sun.nio.ch.Net.connect(Native Method) >> at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507) >> at >> org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1050) >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1077) >> 14/01/31 20:04:53 INFO zookeeper.ClientCnxn: Opening socket connection to >> server localhost/127.0.0.1:2181 >> 14/01/31 20:04:54 WARN zookeeper.ClientCnxn: Session 0x0 for server null, >> unexpected error, closing socket connection and attempting reconnect >> java.net.ConnectException: Connection refused: no further information >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574) >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119) >> 14/01/31 20:04:54 INFO zookeeper.ClientCnxn: Opening socket connection to >> server localhost/0:0:0:0:0:0:0:1:2181 >> 14/01/31 20:04:54 WARN zookeeper.ClientCnxn: Session 0x0 for server null, >> unexpected error, closing socket connection and attempting reconnect >> java.net.SocketException: Address family not supported by protocol >> family: connect >> at sun.nio.ch.Net.connect(Native Method) >> at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507) >> at >> org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1050) >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1077) >> 14/01/31 20:04:56 INFO zookeeper.ClientCnxn: Opening socket connection to >> server localhost/127.0.0.1:2181 >> 14/01/31 20:04:57 WARN zookeeper.ClientCnxn: Session 0x0 for server null, >> unexpected error, closing socket connection and attempting reconnect >> java.net.ConnectException: Connection refused: no further information >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574) >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119) >> org.apache.hadoop.hbase.ZooKeeperConnectionException: >> org.apache.hadoop.hbase.ZooKeeperConnectionException: >> org.apache.zookeeper.KeeperException$ConnectionLossException: >> KeeperErrorCode = ConnectionLoss for /hbase >> at >> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getZooKeeperWatcher(HConnectionManager.java:1000) >> at >> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:303) >> at >> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:294) >> at >> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:156) >> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:167) >> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:145) >> at pack1.testDB.main(testDB.java:27) >> Caused by: org.apache.hadoop.hbase.ZooKeeperConnectionException: >> org.apache.zookeeper.KeeperException$ConnectionLossException: >> KeeperErrorCode = ConnectionLoss for /hbase >> at >> org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:147) >> at >> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getZooKeeperWatcher(HConnectionManager.java:998) >> ... 6 more >> Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException: >> KeeperErrorCode = ConnectionLoss for /hbase >> at org.apache.zookeeper.KeeperException.create(KeeperException.java:90) >> at org.apache.zookeeper.KeeperException.create(KeeperException.java:42) >> at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:637) >> at >> org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:902) >> at >> org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:133) >> ... 7 more >> >> >> >> >> >> On Fri, Jan 31, 2014 at 7:47 PM, Sukumar Maddineni < >> [email protected]> wrote: >> >>> If you didn't then hbase by default starts zookeeper internally. Please >>> check the *Zookeeper Quorum* value in *attributes* section at webpage " >>> http://192.168.1.42:60010/master-status" . Use that value in your code. >>> >>> PFA >>> >>> >>> Thanks >>> Sukumar >>> >>> >>> On Fri, Jan 31, 2014 at 5:54 PM, jeevi tesh <[email protected]>wrote: >>> >>>> I have not even installed zookeeper is it mandatory.. No installation >>>> documents talk about installing the same.. >>>> Any how i'll install and try.. >>>> Thanks for your efforts to help me out... >>>> >>>> >>>> On Fri, Jan 31, 2014 at 5:14 PM, ramkrishna vasudevan < >>>> [email protected]> wrote: >>>> >>>> > Is your zookeeper started? I have not tried this in windows till now. >>>> > >>>> > >>>> > On Fri, Jan 31, 2014 at 5:04 PM, jeevi tesh <[email protected]> >>>> > wrote: >>>> > >>>> > > as you said I have added in my client code >>>> > > like >>>> > > config.set("hbase.master", "192.168.1.42:60010"); >>>> > > config.set("hbase.zookeeper.quorum.", "localhost"); >>>> > > Please correct me if I'm wrong.. Still same error persists >>>> > > Now even I changed my installation to hbase-0.96.1.1-hadoop2 >>>> > > Thanks >>>> > > >>>> > > >>>> > > >>>> > > On Fri, Jan 31, 2014 at 4:53 PM, ramkrishna vasudevan < >>>> > > [email protected]> wrote: >>>> > > >>>> > > > The hbase-site.xml is available on your client also? And if not >>>> you >>>> > need >>>> > > > to add this configuration in your client code explicitly. >>>> > > > >>>> > > > >>>> > > > On Fri, Jan 31, 2014 at 4:21 PM, jeevi tesh < >>>> [email protected]> >>>> > > > wrote: >>>> > > > >>>> > > > > Not able to understand what you referring can please explain bit >>>> > > more... >>>> > > > > Are asking me to add windows client machine ip address to quorum >>>> > > > > >>>> > > > > >>>> > > > > On Fri, Jan 31, 2014 at 3:50 PM, ramkrishna vasudevan < >>>> > > > > [email protected]> wrote: >>>> > > > > >>>> > > > > > Your client side also you should have this. Are you using >>>> the same >>>> > > > > > machine/location for client also? >>>> > > > > > >>>> > > > > > >>>> > > > > > On Fri, Jan 31, 2014 at 3:38 PM, jeevi tesh < >>>> > [email protected]> >>>> > > > > > wrote: >>>> > > > > > >>>> > > > > > > Hi, >>>> > > > > > > Thanks for taking initiative to help me.. >>>> > > > > > > Note : my set up is single node cluster, so >>>> > > > > > > I added a entry in hbase-site.xml >>>> > > > > > > like >>>> > > > > > > <property> >>>> > > > > > > <name>hbase.zookeeper.quorum</name> >>>> > > > > > > <value>localhost</value> >>>> > > > > > > </property> >>>> > > > > > > But still almost same error persists >>>> > > > > > > and my /etc/hosts >>>> > > > > > > looks like >>>> > > > > > > 127.0.0.1 localhost.localdomain.com >>>> > > localhost >>>> > > > > > > 127.0.0.1 database.companyname.com >>>> database >>>> > > > > > > If you have noted any issue in using hbase-0.96.0-hadoop2 >>>> please >>>> > > let >>>> > > > me >>>> > > > > > > know it will be very useful >>>> > > > > > > thanks >>>> > > > > > > >>>> > > > > > > >>>> > > > > > > >>>> > > > > > > On Fri, Jan 31, 2014 at 2:36 PM, Ted Yu < >>>> [email protected]> >>>> > > wrote: >>>> > > > > > > >>>> > > > > > > > In the config, you should set zookeeper quorum >>>> > > > > > > > >>>> > > > > > > > BTW please use 0.96.1.1-hadoop2 release. >>>> > > > > > > > >>>> > > > > > > > Cheers >>>> > > > > > > > >>>> > > > > > > > On Jan 30, 2014, at 11:51 PM, jeevi tesh < >>>> > [email protected] >>>> > > > >>>> > > > > > wrote: >>>> > > > > > > > >>>> > > > > > > > > Hi all, >>>> > > > > > > > > >>>> > > > > > > > > I'm writing simple java program to connect to HBase. >>>> > > > > > > > > >>>> > > > > > > > > Versions of software used >>>> > > > > > > > > >>>> > > > > > > > > Hbase 0.96.0-hadoop2 >>>> > > > > > > > > >>>> > > > > > > > > Hadoop:hadoop-2.2.0. >>>> > > > > > > > > >>>> > > > > > > > > I'm trying to connect from my windows 7 (32 bit)machine >>>> to >>>> > > oracle >>>> > > > > > linux >>>> > > > > > > > > machine (Details :VM, 64 bit).Note I have not installed >>>> > > > ZooKeeper. >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > Any suggestion or comments will be of great help >>>> > > > > > > > > >>>> > > > > > > > > Thanks >>>> > > > > > > > > >>>> > > > > > > > > Here is the script... >>>> > > > > > > > > >>>> > > > > > > > > *package* pack1; >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > *import* java.io.IOException; >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > *import* org.apache.hadoop.conf.Configuration; >>>> > > > > > > > > >>>> > > > > > > > > *import* org.apache.hadoop.hbase.HBaseConfiguration; >>>> > > > > > > > > >>>> > > > > > > > > *import* org.apache.hadoop.hbase.client.HTable; >>>> > > > > > > > > >>>> > > > > > > > > *import* org.apache.hadoop.hbase.client.Put; >>>> > > > > > > > > >>>> > > > > > > > > *import* org.apache.hadoop.hbase.util.Bytes; >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > *public* *class* testDB { >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > /** >>>> > > > > > > > > >>>> > > > > > > > > * *@param* args >>>> > > > > > > > > >>>> > > > > > > > > */ >>>> > > > > > > > > >>>> > > > > > > > > *public* *static* *void* main(String[] args) { >>>> > > > > > > > > >>>> > > > > > > > > *try* { >>>> > > > > > > > > >>>> > > > > > > > > System.*out*.println("1 Before HBASE >>>> > > COnfiguration"); >>>> > > > > > > > > >>>> > > > > > > > > Configuration config = >>>> > > HBaseConfiguration.*create*(); >>>> > > > > > > > > >>>> > > > > > > > > config.clear(); >>>> > > > > > > > > >>>> > > > > > > > > System.*out*.println("2 Before HBASE >>>> > > COnfiguration"); >>>> > > > > > > > > >>>> > > > > > > > > config.set("hbase.master", " >>>> 192.168.1.42:60010"); >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > System.*out*.println("HBase is running!"); >>>> > > > > > > > > >>>> > > > > > > > > HTable table; >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > table = *new* HTable(config, >>>> > "mytable"); >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > System.*out*.println("Table mytable obtained >>>> "); >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > Put put = *new* Put(Bytes.*toBytes*("row1")); >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > put.add(Bytes.*toBytes*("colfam1"),Bytes.*toBytes*("qual1" >>>> > > > > > > > > ),Bytes.*toBytes*("val1")); >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > put.add(Bytes.*toBytes*("colfam1"),Bytes.*toBytes*("qual2" >>>> > > > > > > > > ),Bytes.*toBytes*("val2")); >>>> > > > > > > > > >>>> > > > > > > > > table.put(put); >>>> > > > > > > > > >>>> > > > > > > > > } *catch* (IOException e) { >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > e.printStackTrace(); >>>> > > > > > > > > >>>> > > > > > > > > } >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > } >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > >>>> > > > > > > > > } >>>> > > > > > > > > >>>> > > > > > > > > Error message >>>> > > > > > > > > >>>> > > > > > > > > 1 Before HBASE COnfiguration >>>> > > > > > > > > >>>> > > > > > > > > 2 Before HBASE COnfiguration >>>> > > > > > > > > >>>> > > > > > > > > HBase is running! >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > > > > > > > > environment:zookeeper.version=3.3.2-1031432, built on >>>> > > 11/05/2010 >>>> > > > > > 05:32 >>>> > > > > > > > GMT >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > environment: >>>> > > > > > > host.name >>>> > > > > > > > > =DELL-75.unilog >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > > > > > > > > environment:java.version=1.6.0_16 >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > > > > > > > > environment:java.vendor=Sun Microsystems Inc. >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > > > > > > > > environment:java.home=C:\Program >>>> Files\Java\jdk1.6.0_16\jre >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> environment:java.class.path=E:\jeevi\XRFWorkSpace200\testdbcon\bin;E:\jeevi\XRF100\WebContent\WEB-INF\lib\apache-logging-log4j.jar;E:\jeevi\XRF100\WebContent\WEB-INF\lib\asm-3.1.jar;E:\jeevi\XRF100\WebContent\WEB-INF\lib\commons-logging-1.1.3.jar;E:\jeevi\XRF100\WebContent\WEB-INF\lib\hadoop-core-0.19.0.jar;E:\jeevi\XRF100\WebContent\WEB-INF\lib\hbase-0.90.2.jar;E:\jeevi\XRF100\WebContent\WEB-INF\lib\zookeeper-3.3.2.jar >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > > > > > > > > environment:java.library.path=C:\Program >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> Files\Java\jdk1.6.0_16\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program >>>> > > > > > > > > Files\Common Files\Acronis\SnapAPI\;C:\Program >>>> > > > > > > > > Files\Java\jdk1.6.0_16\bin;C:\apache-maven-3.1.1\bin >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > > > > > > > > >>>> environment:java.io.tmpdir=C:\Users\jems\AppData\Local\Temp\ >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > > > > > > > > environment:java.compiler=<NA> >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > environment: >>>> > > > > > os.name >>>> > > > > > > > =Windows >>>> > > > > > > > > 7 >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > > > > > > > environment:os.arch=x86 >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > > > > > > > > environment:os.version=6.1 >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > environment: >>>> > > > > > > user.name >>>> > > > > > > > > =jems >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > > > > > > > > environment:user.home=C:\Users\jems >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Client >>>> > > > > > > > > environment:user.dir=E:\jeevi\XRFWorkSpace200\testdbcon >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ZooKeeper: Initiating >>>> client >>>> > > > > > > connection, >>>> > > > > > > > > connectString=localhost:2181 sessionTimeout=180000 >>>> > > > > > watcher=hconnection >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:55 INFO zookeeper.ClientCnxn: Opening >>>> socket >>>> > > > > > connection >>>> > > > > > > to >>>> > > > > > > > > server localhost/127.0.0.1:2181 >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:56 WARN zookeeper.ClientCnxn: Session >>>> 0x0 for >>>> > > > server >>>> > > > > > > null, >>>> > > > > > > > > unexpected error, closing socket connection and >>>> attempting >>>> > > > > reconnect >>>> > > > > > > > > >>>> > > > > > > > > *java.net.ConnectException*: Connection refused: no >>>> further >>>> > > > > > information >>>> > > > > > > > > >>>> > > > > > > > > at >>>> sun.nio.ch.SocketChannelImpl.checkConnect(*Native >>>> > > > Method*) >>>> > > > > > > > > >>>> > > > > > > > > at sun.nio.ch.SocketChannelImpl.finishConnect( >>>> > > > > > > > > *SocketChannelImpl.java:574*) >>>> > > > > > > > > >>>> > > > > > > > > at org.apache.zookeeper.ClientCnxn$SendThread.run( >>>> > > > > > > > > *ClientCnxn.java:1119*) >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:56 INFO zookeeper.ClientCnxn: Opening >>>> socket >>>> > > > > > connection >>>> > > > > > > to >>>> > > > > > > > > server localhost/0:0:0:0:0:0:0:1:2181 >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:56 WARN zookeeper.ClientCnxn: Session >>>> 0x0 for >>>> > > > server >>>> > > > > > > null, >>>> > > > > > > > > unexpected error, closing socket connection and >>>> attempting >>>> > > > > reconnect >>>> > > > > > > > > >>>> > > > > > > > > *java.net.SocketException*: Address family not >>>> supported by >>>> > > > > protocol >>>> > > > > > > > > family: connect >>>> > > > > > > > > >>>> > > > > > > > > at sun.nio.ch.Net.connect(*Native Method*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > > > > > >>>> > > sun.nio.ch.SocketChannelImpl.connect(*SocketChannelImpl.java:507*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > org.apache.zookeeper.ClientCnxn$SendThread.startConnect( >>>> > > > > > > > > *ClientCnxn.java:1050*) >>>> > > > > > > > > >>>> > > > > > > > > at org.apache.zookeeper.ClientCnxn$SendThread.run( >>>> > > > > > > > > *ClientCnxn.java:1077*) >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:58 INFO zookeeper.ClientCnxn: Opening >>>> socket >>>> > > > > > connection >>>> > > > > > > to >>>> > > > > > > > > server localhost/127.0.0.1:2181 >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:59 WARN zookeeper.ClientCnxn: Session >>>> 0x0 for >>>> > > > server >>>> > > > > > > null, >>>> > > > > > > > > unexpected error, closing socket connection and >>>> attempting >>>> > > > > reconnect >>>> > > > > > > > > >>>> > > > > > > > > *java.net.ConnectException*: Connection refused: no >>>> further >>>> > > > > > information >>>> > > > > > > > > >>>> > > > > > > > > at >>>> sun.nio.ch.SocketChannelImpl.checkConnect(*Native >>>> > > > Method*) >>>> > > > > > > > > >>>> > > > > > > > > at sun.nio.ch.SocketChannelImpl.finishConnect( >>>> > > > > > > > > *SocketChannelImpl.java:574*) >>>> > > > > > > > > >>>> > > > > > > > > at org.apache.zookeeper.ClientCnxn$SendThread.run( >>>> > > > > > > > > *ClientCnxn.java:1119*) >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:59 INFO zookeeper.ClientCnxn: Opening >>>> socket >>>> > > > > > connection >>>> > > > > > > to >>>> > > > > > > > > server localhost/0:0:0:0:0:0:0:1:2181 >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:14:59 WARN zookeeper.ClientCnxn: Session >>>> 0x0 for >>>> > > > server >>>> > > > > > > null, >>>> > > > > > > > > unexpected error, closing socket connection and >>>> attempting >>>> > > > > reconnect >>>> > > > > > > > > >>>> > > > > > > > > *java.net.SocketException*: Address family not >>>> supported by >>>> > > > > protocol >>>> > > > > > > > > family: connect >>>> > > > > > > > > >>>> > > > > > > > > at sun.nio.ch.Net.connect(*Native Method*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > > > > > >>>> > > sun.nio.ch.SocketChannelImpl.connect(*SocketChannelImpl.java:507*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > org.apache.zookeeper.ClientCnxn$SendThread.startConnect( >>>> > > > > > > > > *ClientCnxn.java:1050*) >>>> > > > > > > > > >>>> > > > > > > > > at org.apache.zookeeper.ClientCnxn$SendThread.run( >>>> > > > > > > > > *ClientCnxn.java:1077*) >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:15:00 INFO zookeeper.ClientCnxn: Opening >>>> socket >>>> > > > > > connection >>>> > > > > > > to >>>> > > > > > > > > server localhost/127.0.0.1:2181 >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:15:01 WARN zookeeper.ClientCnxn: Session >>>> 0x0 for >>>> > > > server >>>> > > > > > > null, >>>> > > > > > > > > unexpected error, closing socket connection and >>>> attempting >>>> > > > > reconnect >>>> > > > > > > > > >>>> > > > > > > > > *java.net.ConnectException*: Connection refused: no >>>> further >>>> > > > > > information >>>> > > > > > > > > >>>> > > > > > > > > at >>>> sun.nio.ch.SocketChannelImpl.checkConnect(*Native >>>> > > > Method*) >>>> > > > > > > > > >>>> > > > > > > > > at sun.nio.ch.SocketChannelImpl.finishConnect( >>>> > > > > > > > > *SocketChannelImpl.java:574*) >>>> > > > > > > > > >>>> > > > > > > > > at org.apache.zookeeper.ClientCnxn$SendThread.run( >>>> > > > > > > > > *ClientCnxn.java:1119*) >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:15:02 INFO zookeeper.ClientCnxn: Opening >>>> socket >>>> > > > > > connection >>>> > > > > > > to >>>> > > > > > > > > server localhost/0:0:0:0:0:0:0:1:2181 >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:15:02 WARN zookeeper.ClientCnxn: Session >>>> 0x0 for >>>> > > > server >>>> > > > > > > null, >>>> > > > > > > > > unexpected error, closing socket connection and >>>> attempting >>>> > > > > reconnect >>>> > > > > > > > > >>>> > > > > > > > > *java.net.SocketException*: Address family not >>>> supported by >>>> > > > > protocol >>>> > > > > > > > > family: connect >>>> > > > > > > > > >>>> > > > > > > > > at sun.nio.ch.Net.connect(*Native Method*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > > > > > >>>> > > sun.nio.ch.SocketChannelImpl.connect(*SocketChannelImpl.java:507*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > org.apache.zookeeper.ClientCnxn$SendThread.startConnect( >>>> > > > > > > > > *ClientCnxn.java:1050*) >>>> > > > > > > > > >>>> > > > > > > > > at org.apache.zookeeper.ClientCnxn$SendThread.run( >>>> > > > > > > > > *ClientCnxn.java:1077*) >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:15:03 INFO zookeeper.ClientCnxn: Opening >>>> socket >>>> > > > > > connection >>>> > > > > > > to >>>> > > > > > > > > server localhost/127.0.0.1:2181 >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:15:04 WARN zookeeper.ClientCnxn: Session >>>> 0x0 for >>>> > > > server >>>> > > > > > > null, >>>> > > > > > > > > unexpected error, closing socket connection and >>>> attempting >>>> > > > > reconnect >>>> > > > > > > > > >>>> > > > > > > > > *java.net.ConnectException*: Connection refused: no >>>> further >>>> > > > > > information >>>> > > > > > > > > >>>> > > > > > > > > at >>>> sun.nio.ch.SocketChannelImpl.checkConnect(*Native >>>> > > > Method*) >>>> > > > > > > > > >>>> > > > > > > > > at sun.nio.ch.SocketChannelImpl.finishConnect( >>>> > > > > > > > > *SocketChannelImpl.java:574*) >>>> > > > > > > > > >>>> > > > > > > > > at org.apache.zookeeper.ClientCnxn$SendThread.run( >>>> > > > > > > > > *ClientCnxn.java:1119*) >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:15:05 INFO zookeeper.ClientCnxn: Opening >>>> socket >>>> > > > > > connection >>>> > > > > > > to >>>> > > > > > > > > server localhost/0:0:0:0:0:0:0:1:2181 >>>> > > > > > > > > >>>> > > > > > > > > 14/01/31 13:15:05 WARN zookeeper.ClientCnxn: Session >>>> 0x0 for >>>> > > > server >>>> > > > > > > null, >>>> > > > > > > > > unexpected error, closing socket connection and >>>> attempting >>>> > > > > reconnect >>>> > > > > > > > > >>>> > > > > > > > > *java.net.SocketException*: Address family not >>>> supported by >>>> > > > > protocol >>>> > > > > > > > > family: connect >>>> > > > > > > > > >>>> > > > > > > > > at sun.nio.ch.Net.connect(*Native Method*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > > > > > >>>> > > sun.nio.ch.SocketChannelImpl.connect(*SocketChannelImpl.java:507*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > org.apache.zookeeper.ClientCnxn$SendThread.startConnect( >>>> > > > > > > > > *ClientCnxn.java:1050*) >>>> > > > > > > > > >>>> > > > > > > > > at org.apache.zookeeper.ClientCnxn$SendThread.run( >>>> > > > > > > > > *ClientCnxn.java:1077*) >>>> > > > > > > > > >>>> > > > > > > > > *org.apache.hadoop.hbase.ZooKeeperConnectionException*: >>>> > > > > > > > > *org.apache.hadoop.hbase.ZooKeeperConnectionException*: >>>> > > > > > > > > >>>> > *org.apache.zookeeper.KeeperException$ConnectionLossException*: >>>> > > > > > > > > KeeperErrorCode = ConnectionLoss for /hbase >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getZooKeeperWatcher( >>>> > > > > > > > > *HConnectionManager.java:1000*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers( >>>> > > > > > > > > *HConnectionManager.java:303*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>( >>>> > > > > > > > > *HConnectionManager.java:294*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > > > > >>>> org.apache.hadoop.hbase.client.HConnectionManager.getConnection( >>>> > > > > > > > > *HConnectionManager.java:156*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > > > >>>> org.apache.hadoop.hbase.client.HTable.<init>(*HTable.java:167*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > > > >>>> org.apache.hadoop.hbase.client.HTable.<init>(*HTable.java:145*) >>>> > > > > > > > > >>>> > > > > > > > > at pack1.testDB.main(*testDB.java:27*) >>>> > > > > > > > > >>>> > > > > > > > > Caused by: >>>> > > > *org.apache.hadoop.hbase.ZooKeeperConnectionException*: >>>> > > > > > > > > >>>> > *org.apache.zookeeper.KeeperException$ConnectionLossException*: >>>> > > > > > > > > KeeperErrorCode = ConnectionLoss for /hbase >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>( >>>> > > > > > > > > *ZooKeeperWatcher.java:147*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > > > > > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getZooKeeperWatcher( >>>> > > > > > > > > *HConnectionManager.java:998*) >>>> > > > > > > > > >>>> > > > > > > > > ... 6 more >>>> > > > > > > > > >>>> > > > > > > > > Caused by: >>>> > > > > > > > >>>> *org.apache.zookeeper.KeeperException$ConnectionLossException*: >>>> > > > > > > > > KeeperErrorCode = ConnectionLoss for /hbase >>>> > > > > > > > > >>>> > > > > > > > > at org.apache.zookeeper.KeeperException.create( >>>> > > > > > > > > *KeeperException.java:90*) >>>> > > > > > > > > >>>> > > > > > > > > at org.apache.zookeeper.KeeperException.create( >>>> > > > > > > > > *KeeperException.java:42*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > org.apache.zookeeper.ZooKeeper.create(*ZooKeeper.java:637*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > > org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent( >>>> > > > > > > > > *ZKUtil.java:902*) >>>> > > > > > > > > >>>> > > > > > > > > at >>>> > > > org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>( >>>> > > > > > > > > *ZooKeeperWatcher.java:133*) >>>> > > > > > > > > >>>> > > > > > > > > ... 7 more >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> >>> >>> >> >
