According to the link here <https://cwiki.apache.org/Hive/hiveclient.html#HiveClient-ThriftJavaClient>. It says that 

> 
> Thrift Java Client 
>  Operates both in embedded mode and on standalone
>  server.
> 
> 
> 

How do I run the thrift java client with hive in embedded mode?