this is a late response but I actually ran into the same problem so I thought I would put my solution to avoid this situation: http://xkcd.com/979/
In my case it was dut to the fact that I had a wrong dependency in my pom.
I running cloudera and was trying to connect using the standard jdbc client.
To connect to cdh, use the dependencies listed there:
http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.0/CDH4-Installation-Guide/cdh4ig_topic_31.html
or whichever version of cloudera you are using
So the dependencies of your client should look like:
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>2.0.0-mr1-cdh4.0.0</version>
</dependency>
and not:
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>2.2.0</version>
</dependency>
Also, pay attention to the kind of hadoop running, YARN or mr1.
Of course your problem might be different, but I still hope this helps.