ubutun安装MySQL hive配置_Hive安装以及部署(Ubuntu-MySql)
下載Hive安裝包
http://hive.apache.org/downloads.html
根據需求下載相應的安裝包解壓安裝
默認的數據存放路徑hdfs:/user/hive/warehouse/user
Hive配置文件主要從默認模版創建hive-site.xml和hive-env.sh
cp hive-default.xml.template hive-site.xml
cp hive-env.sh.template hive-env.sh
hive-site.xml修改以下屬性
? ??? javax.jdo.option.ConnectionURL? ? ??? jdbc:mysql://Master:3306/hive? ? ? ? ??? javax.jdo.option.ConnectionDriverName? ? ??? com.mysql.jdbc.Driver? ? ? ??? javax.jdo.option.ConnectionPassword? ? ??? hive? ? ? ? ??? hive.hwi.listen.port? ? ??? 9999? ? ??? This?is?the?port?the?Hive?Web?Interface?will?listen?on? ? ? ? ??? datanucleus.autoCreateSchema? ? ??? false? ? ? ? ??? datanucleus.fixedDatastore? ? ??? true? ? ? ? ????????? hive.metastore.local? ? ????????? true? ? ????????? controls?whether?to?connect?to?remove?metastore?server?or?open?a?new?metastore?server?in?Hive?Client?JVM? ?
hive-env.sh下修改以下屬性 配置Hive的配置文件路徑 export HIVE_CONF_DIR= .../hive/conf 配置Hadoop的安裝路徑 HADOOP_HOME= .../hadoop
MySQL數據庫安裝 Ubuntu 采用apt-get安裝 sudo apt-get install mysql-server 建立數據庫hive create?database?hive? 創建hive用戶,并授權 grant?all?on?hive.*?to?hive@'%'??identified?by?'hive'; ? flush?privileges;
#hive
hive>create table test(key string);
show tables;
總結
以上是生活随笔為你收集整理的ubutun安装MySQL hive配置_Hive安装以及部署(Ubuntu-MySql)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python 函数递归一次增加一次变量_
- 下一篇: linux cmake编译源码,linu