APACHE-HIVE INSTALLATION ON UBUNTU
Apache-Hive Installation On top Of Hadoop
Note : Before that installation you should installed Hadoop
step 1:
https://downloads.apache.org/hive/hive-3.1.2/ this is download link for apache-hive-3.1.2 through that link you can download the hive.
if you any other latest version use the link - https://hive.apache.org/general/downloads/
now you should start the hadoop
step 2 :
Once you download hive, extract the hive file and set hadoop environmental hive path in you bashrc file :
like..
command for open bashrc file "gedit .bashrc"
add path in your bashrc file..
export HIVE_HOME=<your hive path .......>
export HIVE_CONF_DIR=<you hive conf path.....>
step 3:
Install mysql, it is need for hive..
Note : hive has a inbuilt rdbms derby
command for install mysql-server "sudo apt-get install mysql-server"
if you want login mysql the command "sudo mysql -u root -p"
step 4:
download mysql conncetor jar file:
https://mvnrepository.com/artifact/mysql/mysql-connector-java
download the jar file and paste it into the hive lib folder
go to the hive conf directory and create hive-site.xml and paste the below code
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true</value>
</property>
<property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>com.mysql.jdbc.Driver</value>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>root</value>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>root</value>
</property>
<property>
<name>hive.metastore.schema.verification</name>
<value>false</value>
</property>
</configuration>
step 6:
db command
"bin/schematool -dbType mysql -initSchema"
start the hive command
"bin/hive"
Comments
Post a Comment