1. 程式人生 > >一、HIVE 初識入門筆記

一、HIVE 初識入門筆記

一、架構
二、常用配置
  • hive-log4j.properties中 hive.log.dir,bin/hive -hiveconf 改變預設引數
  • hive-site.xml中 常用輔助配置 hive.cli.print.current.db 顯示資料庫以及hive.cli.print.header顯示結果集頭
三、運維命令
  • 執行命令
hive -e " sql " hive -f filename > xxx.log & hive -i 與 udf相互使用
  • shell下巧set;檢視環境所有配置
  • 啟動命令
hive --service metastore & hive --service hiveserver2 & 四、其他
  • hive shell下敲dfs -ls /可以直接訪問hdfs 注:前面無需加hdfs字首
  • ! shell命令 hive shell下訪問linux環境
  • exit,quit退出hive shell
  • 當前使用者下,ls -al 可以檢視hivehistory檔案,所有歷史命令在其中