Tuesday, November 6, 2012

EOF Exception Running Twitbase Examples


I tried running the first example program UsersTool.java and after the following message I get an error message.
zookeeper.ClientCnxn: Session establishment complete on server Inferno/127.0.0.1:2181, sessionid = 0x13ad53b961d0009, negotiated timeout = 40000

Exception in thread "main" java.lang.RuntimeException: java.io.IOException: Call to Inferno/127.0.0.1:58275 failed on local exception: java.io.EOFException

Though, the package compiles well, I get this runtime exception.

Solution:
HBase starts and runs successfully but the problem is with the connection. After, a bit of delving, I found that this is due to the difference in
versions of HBase used for compiling and running.
So, first check if the version of HBase started and the version of HBase indicated in pom.xml are compatible.
I run hbase 0.90.4 and the version I used in to compile was 0.92.1.

Changing the version in pom.xml to the hbase version running on the system does the trick.

---------------------------------
<dependency>
      <groupId>org.apache.hbase</groupId>
      <artifactId>hbase</artifactId>
      <version>0.92.1</version>    <!-- Change this to the version of hbase running on the system)   -->
      <exclusions>
        <exclusion>
          <artifactId>maven-release-plugin</artifactId>
          <groupId>org.apache.maven.plugins</groupId>
        </exclusion>
      </exclusions>
    </dependency>


-------------------------
#No-SQL databases

2 comments:

  1. If we consider the Google cloud big data services, then adaptive learning is an excellent way to make it successful.

    ReplyDelete
  2. Nice Blog, When I was read this blog, I learnt new things & it’s truly have well stuff related to developing technology, Thank you for sharing this blog. If Someone wants to know about Top Big Data Companies this is the Right place for you!

    ReplyDelete