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

Thursday, July 12, 2012

Yakuake - Useful Terminal Emulator

It has been many days I wrote my laaast post , and here this post about a simple, useful terminal emulator - yakuake.

Of late, I came to know of this terminal Emulator Yakuake (Yet Another Kuake).
If one is frequently switching between a tty and other programs, yakuake would
be of great use. A single press of a key slides down the emulator and then slides it up.
Could be useful for playing media files or playing songs.
The way in which the emulator can be activated with animation effects with a single press looks cool ;)

Profiles can be configured to suit it to our needs.


More about the Emulator here in wikipedia

Linux tools,