Closed xhe closed 9 years ago
As is shown in the log,the hbase client cannot conenct to zookeeper port(localhost:2181). Did you start hbase in the same machine with the client? If not,change https://github.com/spring-projects/spring-data-book/blob/master/hadoop/hbase/src/main/resources/hbase.properties to relfect your hbase server configuration.
By the way,I don't think this is not the proper place to ask a question about spring-data-book project. Maybe you should post your question to stackoverflow or somewhere else.
Created hbase example based on the Spring Data book example. Updated to current versions. Continue discussion on StackOverflow - http://stackoverflow.com/questions/31232486/spring-hbasetemplate-throws-java-lang-illegalargumentexception-not-a-hostport
I am a newbie for Hbase and I want to continue to use spring solution, hBaseTemplate to access HBase. But I tested a lot of times and can never be successful in doing so. This is what I did. The sample I am using is: https://github.com/spring-projects/spring-data-book/tree/master/hadoop/hbase
I am using latest stable HBase build, version 1.0.1.1 When I start UserApp, I got this error:
So I google this error: Not a host:port pair: PBUF
checking the POM file,
People said it is because version is different from client and server. so I donwload hbaseServer 0.92.1, start HBaseServer and then start project again, now error is:
Even if I am using Hbase Shell, it is throwing a lot exceptions, so I gave up old version of hBase server.
I tried to use same hBaseClient in the POM to match latest HBase Server, 1.0.1.1, but it is either jar not available error, or some other major minor version exceptions.
Can anyone who has such experiences tell me how you fixed it and use hbaseTemplate to work with latest stable hBaseBuild? How do you config the spring project etc? Can you show me your working solution?
Thanks very much.