標籤:web root 連結 comm tla setting path 切換 event
前提: 假設已安裝ignite,並且安裝路徑為:/usr/apache-ignite-fabric-2.1.0-bin
1.下載Web Agent
開啟連結:https://console.gridgain.com/configuration/advanced/clusters
2.部署Web Agent
解壓1中下載的Web Agent,部署到安裝Ignite的一個節點,比如:/usr/ignite-web-agent-2.1.3/
3.編輯default.properties
編輯/usr/ignite-web-agent-2.1.3/default.properties
tokens=從官網獲得server-uri=https://console.gridgain.com#Uncomment following options if needed:node-uri=http://安裝ignote的節點IP:8080driver-folder=./jdbc-drivers
其中tokens獲得方式如下:
4.拷貝ignite-rest-http檔案夾
將ignite 一個節點下的libs/optional/ignite-rest-http檔案夾,拷貝到上一層,即libs目錄下:
cp /usr/apache-ignite-fabric-2.1.0-bin/libs/optional/ignite-rest-http /usr/apache-ignite-fabric-2.1.0-bin/libs/ignite-rest-http
5.拷貝jdbc驅動程式
將mysql的jdbc驅動程式,拷貝到web agent的jdbc-drivers目錄下
6.啟動ignite節點
7.啟動Web Agent
切換到Web Agent安裝目錄,執行如下Shell指令碼
[[email protected] ignite-web-agent-2.1.3]# ./ignite-web-agent.sh
[2017-08-24 15:14:19,546][INFO ][main][AgentLauncher] Starting Apache Ignite Web Console Agent...
Agent configuration:
User‘s security tokens : ****************ZcoI
URI to Ignite node REST server: http://10.20.0.6:8080
URI to Ignite Console server : https://console.gridgain.com
Path to agent property file : default.properties
Path to JDBC drivers folder : ./jdbc-drivers
Demo mode : enabled
[2017-08-24 15:14:20,601][INFO ][main][AgentLauncher] Connecting to: https://console.gridgain.com
GLib-GIO-Message: Using the ‘memory‘ GSettings backend. Your settings will not be saved or shared with other applications.
[2017-08-24 15:14:22,609][INFO ][EventThread][AgentLauncher] Connection established.
[2017-08-24 15:14:23,873][INFO ][EventThread][AgentLauncher] Authentication success.
[2017-08-24 15:14:24,395][INFO ][pool-1-thread-1][ClusterListener] Connection successfully established to cluster with nodes: [3C2012D9]
8.訪問Web控制台
重新整理https://console.gridgain.com/configuration/advanced/clusters
【注意】 Web Agent啟動時,預設訪問的ignite 節點連接埠是8080,這很容易和已有的連接埠重複,暫時未找到使用其他連接埠的解決方案。
Ignite Web 控制台(使用官方免費部署的控制台)