計算機 | 檢視各種系統,軟體版本合集(更新中...)
阿新 • • 發佈:2021-07-02
檢視scala版本
Linux系統
方法1: 安裝了spark會自帶scala
,命令列輸入spark-shell
,即可檢視spark
版本和scala
版本資訊
Spark session available as 'spark'. Welcome to ____ __ / __/__ ___ _____/ /__ _\ \/ _ \/ _ `/ __/ '_/ /___/ .__/\_,_/_/ /_/\_\ version 2.1.0 /_/ Using Scala version 2.11.8 (OpenJDK 64-Bit Server VM, Java 1.8.0_292) Type in expressions to have them evaluated. Type :help for more information.
方法2: 單純的scala,進入scala輸入util.Properties.versionString
scala> util.Properties.versionString
res0: String = version 2.11.8
⚠️ 上述的scala
都是2.11.8
,而且方法一也知道了spark
版本是2.1.0
檢視kafka版本
linux系統
方法: 進入kafka
的安裝目錄,輸入find ./libs/ -name \*kafka_\* | head -1 | grep -o '\kafka[^\n]*'
hadoop@nathan:/usr/local/kafka$ find ./libs/ -name \*kafka_\* | head -1 | grep -o '\kafka[^\n]*' kafka_2.11-0.10.1.0-javadoc.jar
REF: linux檢視kafka版本號
其中,2.11
為scala
版本,0.10.1.0
為kafka版本。
檢視Zookeeper版本
linux系統
方法: 命令列輸入telnet localhost 2181
,然後接著在輸入內容下輸入stats
。
hadoop@nathan:~$ telnet localhost 2181 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. stats # <- 手動輸入 Zookeeper version: 3.4.8--1, built on 02/06/2016 03:18 GMT Clients: /127.0.0.1:59112[1](queued=0,recved=826,sent=828) /127.0.0.1:59556[0](queued=0,recved=1,sent=0) Latency min/avg/max: 0/0/25 Received: 1351 Sent: 1379 Connections: 2 Outstanding: 0 Zxid: 0x183 Mode: standalone Node count: 48 Connection closed by foreign host.
上述zookeeper
版本是3.4.8--1