Description
Sometimes user runs DemoClient against secure cluster using the following command:
java -cp `hbase classpath` org.apache.hadoop.hbase.thrift2.DemoClient host 9090
This wouldn't work.
DemoClient should detect the presence of secure cluster - e.g. through the following config:
<property> <name>hbase.thrift.authentication.type</name> <value>kerberos</value> </property>
User can still specify 'false' as the last parameter if the target cluster is insecure.