I've just double check one of the hive server tests and there's nothing special about my setup. Note that I'm talking the hard road - using Hive client on Win machine (my dev one) accessing Hive server on a Win machine (the same) talking to a Hadoop cluster on a remote/VM machine (*nix).
First make sure the Hive libraries are in place - you typically get CNFE if you don't. In my case this meant hive-builtins/hive-metastore added to the classpath. Also make sure you're using a proper version of antlr (antlr-runtime 3.0.x) - this can be an issue if you have pig in the classpath which will pull in a more recent version of antlr which whom Hive is not compatible (and you'll know get a cryptic NoSuchField error).
Below are my config file and the artifact dependencies from gradle:
Code:
<hdp:hive-server properties-ref="props" properties-location="cfg-1.properties, cfg-2.properties" port="${hive.port}" configuration-ref="hadoopConfiguration">
star=chasing
return=captain eo
train=last
</hdp:hive-server>
<hdp:hive-client-factory host="${hive.host}" port="${hive.port}"/>
gradle dependencies (note this is based on the SHDP trunk so you'll get some extra dependencies in there like pig):
https://gist.github.com/costin/7459c90dc8d589247a5e