檢視hive的版本

2021-08-10 07:03:50 字數 4898 閱讀 8605

hive比較坑的一點就是沒有類似hive -version的方便地檢視版本的方法,我們只能自己去hive的安裝目錄裡去看各個jar包的版本。可是,我們怎麼找到hive的安裝目錄呢?

這裡有個方便的方法:

$ locate */hive/lib

/hive*jar

這樣可以方便地定位到hive/lib目錄下檢視各個jar包的版本

通常,hive-exec的那個jar包的版本就是hive的版本號

比如我這裡:

[dev@rmdata2 ~]$ locate */hive/lib/hive*jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-accumulo-handler-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-accumulo-handler.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-ant-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-ant.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-beeline-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-beeline.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-cli-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-cli

.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-common-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-common.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-contrib-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-contrib.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-exec-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-exec.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-hbase-handler-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-hbase-handler.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-hwi-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-hwi.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-jdbc-1.1

.0-cdh5.8

.0-standalone.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-jdbc-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-jdbc-standalone.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-jdbc.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-metastore-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-metastore.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-serde-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-serde.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-service-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-service.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-shims-0.23-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-shims-0.23

.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-shims-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-shims-common-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-shims-common.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-shims-scheduler-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-shims-scheduler.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-shims.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-testutils-1.1

.0-cdh5.8

.0.jar

/opt/cloudera/parcels/cdh-5.8

.0-1.cdh5.8

.0.p0.42/lib/hive/lib/hive-testutils.jar

可以看到我的hive的版本為1.1.0

hive 檢視版本號

在使用hive的時候,有時候需要檢視當前的hive的版本。命令為 hive hive.hwi.war.file 例如 hive set hive.hwi.war.file set hive.hwi.war.file hive.hwi.war.file lib hive hwi 0.12.0.war ...

hive 日誌怎麼檢視 HIVE 如何檢視執行日誌

hive既然是執行在hadoop上,最後又被翻譯為mapreduce程式,通過yarn來執行。所以我們如果想解決hive 現的錯誤,需要分成幾個過程 hive自身翻譯成為mr之前的解析錯誤 hadoop檔案系統的錯誤 yarn排程過程中的錯誤 1.hive預設log檔案儲存的地方 tmp 資料夾的h...

檢視hive配置

在啟動hive時設定配置屬性資訊 hive config hive 0.9.0 conf 重新載入新的配置檔案 bin hive hiveconf 檢視當前所有的配置資訊 hive set hive set hive.metastore.uris hive db hive set system us...