I am new to big data; technically I am a Java developer and decided to learn big data concepts. I am just able to install Hadoop and Hive, and now I want to connect my Java program to Hive. I have configured MySQL as a back-end db.
Tried to Google it and found a few Java program sample where they are using something like this URL jdbc:hive2://172.16.149.158:10000/default,"",""
.
My question is I didn't made any setting like this in hive-sites.xml
. Where should I made these setting or if not than where to find out which setting I should use?
Port 10000 is the default port for
HiveServer2
, which enables clients to execute queries against Hive.This configuration is set in
hive-site.xml
via the propertyhive.server2.thrift.port
More details on
HiveServer2
are hereAlso, the
default
in the URL is the default Hive database.