hadoop - How to confirm hive mode of running in CDH 4.2? - local or remote -


in cluster, uses cdh 4.2, see 2 different hive-site.xml files. 1. hive-site.xml file in hive conf directory. 2. hive-site.xml file can view webui of cdh 4.2

my problem both these files have different content in terms of hive execution mode. hive-site.xml file in conf directory lists mode of execution "remote". has "false" value of parameter - hive.metastore.local , defines parameter - >hive.metastore.uris -

thrift://<machine_name>:9083 

but hive-site.xml file can view using webui, lists local mode true , sets following parameters.

  <property>     <name>javax.jdo.option.connectionurl</name>     <value>jdbc:postgresql://<machine_name>:7432/hive</value>   </property>   <property>     <name>javax.jdo.option.connectiondrivername</name>     <value>org.postgresql.driver</value>   </property> 

i think running in local mode, because webui states hive metastore running in hive process , listening on port 9083. also, per configuration, hiveserver2 should running on port 10000 default, not case.

so have 2 queries 1. why there 2 different configuration xml files? 2. there "litmus" test confirm hive indeed running in local mode? thanks.

per explanation of jira ticket collapse hive.metastore.uris , hive.metastore.local, if property hive.metastore.uris set, in case, hive metastore running in remote mode. if property hive.metastore.uris not set, hive metastore running in local mode.

the above implies property hive.metastore.local removed of hive 0.10 version in cdh4.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -