07【線上日誌分析】之kafka-manager監控工具的搭建(sbt安裝與編譯)
1.下載sbt
[root@sht-sgmhadoopnn-01 app]# rz
rz waiting to receive.
Starting zmodem transfer. Press Ctrl+C to cancel.
Transferring sbt-0.13.13.tgz...
100% 1025 KB 1025 KB/sec 00:00:01 0 Errors
2.解壓
[root@sht-sgmhadoopnn-01 app]# tar -zxvf sbt-0.13.13.tgz
sbt-launcher-packaging-0.13.13/
sbt-launcher-packaging-0.13.13/conf/
sbt-launcher-packaging-0.13.13/conf/sbtconfig.txt
sbt-launcher-packaging-0.13.13/conf/sbtopts
sbt-launcher-packaging-0.13.13/bin/
sbt-launcher-packaging-0.13.13/bin/sbt.bat
sbt-launcher-packaging-0.13.13/bin/sbt
sbt-launcher-packaging-0.13.13/bin/sbt-launch.jar
sbt-launcher-packaging-0.13.13/bin/sbt-launch-lib.bash
[root@sht-sgmhadoopnn-01 app]# mv sbt-launcher-packaging-0.13.13 sbt
3.新增指令碼檔案
[root@sht-sgmhadoopnn-01 bin]# vi sbt
#!/usr/bin/env bash
BT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"
java $SBT_OPTS -jar /root/learnproject/app/sbt/bin/sbt-launch.jar "$@"
4.修改許可權和環境變數
[root@sht-sgmhadoopnn-01 bin]# chmod u+x sbt
[root@sht-sgmhadoopnn-01 bin]# vi /etc/profile
export SBT_HOME=/root/learnproject/app/sbt
export PATH=$SBT_HOME/bin:$SPARK_HOME/bin:$SCALA_HOME/bin:$HADOOP_HOME/bin:$MAVEN_HOME/bin:$JAVA_HOME/bin:$PATH
"/etc/profile" 94L, 2265C written
[root@sht-sgmhadoopnn-01 bin]# source /etc/profile
5.測試
/*第一次執行時,會下載一些檔案包,然後才能正常使用,要確保聯網了,安裝成功後顯示如下*/
[root@sht-sgmhadoopnn-01 bin]# sbt sbt-version
[info] Set current project to bin (in build file:/root/learnproject/app/sbt/bin/)
[info] 0.13.13
[info] Set current project to bin (in build file:/root/learnproject/app/sbt/bin/)
[info] 0.13.13
[root@sht-sgmhadoopnn-01 bin]#
---------------------------------------------------------------------------------------------
因為kafka-manager編譯需要jdk1.8
1.安裝jdk1.8
[root@sht-sgmhadoopnn-01 app]# cd /usr/java
[root@sht-sgmhadoopnn-01 java]# ll
total 4
drwxr-xr-x 8 root root 4096 Nov 17 2015 jdk1.7.0_67-cloudera
[root@sht-sgmhadoopnn-01 java]# rz
rz waiting to receive.
Starting zmodem transfer. Press Ctrl+C to cancel.
Transferring jdk-8u102-linux-x64.tar.gz...
100% 177183 KB 425 KB/sec 00:06:56 0 Errors
[root@sht-sgmhadoopnn-01 java]# ll
total 177192
drwxr-xr-x 8 root root 4096 Nov 17 2015 jdk1.7.0_67-cloudera
-rw-r--r-- 1 root root 181435897 Jun 28 00:02 jdk-8u102-linux-x64.tar.gz
[root@sht-sgmhadoopnn-01 java]# tar -xzvf jdk-8u102-linux-x64.tar.gz
[root@sht-sgmhadoopnn-01 java]# vi /etc/profile
export PATH=/usr/java/jdk1.8.0_102/bin:$SBT_HOME/bin:$SPARK_HOME/bin:$SCALA_HOME/bin:$HADOOP_HOME/bin:$MAVEN_HOME/bin:$JAVA_HOME/bin:$PATH
[root@sht-sgmhadoopnn-01 java]# source /etc/profile
---------------------------------------------------------------------------------------------
Requirements:
Kafka 0.8.1.1 or 0.8.2.* or 0.9.0.*
Java 8+
1.下載,使用sbt編繹
[root@sht-sgmhadoopnn-01 ~]# cd /root/learnproject/compilesoft
[root@sht-sgmhadoopnn-01 compilesoft]# git clone
[root@sht-sgmhadoopnn-01 compilesoft]# cd kafka-manager/
[root@sht-sgmhadoopnn-01 kafka-manager]# sbt clean dist
[info] Your package is ready in /root/learnproject/compilesoft/kafka-manager/target/universal/kafka-manager-1.3.2.1.zip
[info]
[success] Total time: 126 s, completed Dec 26, 2016 2:44:17 PM
2.解壓
[root@sht-sgmhadoopnn-01 kafka-manager]# mv /root/learnproject/compilesoft/kafka-manager/target/universal/kafka-manager-1.3.2.1.zip /root/learnproject/app/
[root@sht-sgmhadoopnn-01 kafka-manager]# cd ../
[root@sht-sgmhadoopnn-01 app]# unzip kafka-manager-1.3.2.1.zip
[root@sht-sgmhadoopnn-01 app]# cd kafka-manager-1.3.2.1/conf
[root@sht-sgmhadoopnn-01 conf]# vi application.conf
kafka-manager.zkhosts="172.16.101.58:2181,172.16.101.59:2181,172.16.101.60:2181/kafka"
3.後臺執行
[root@sht-sgmhadoopnn-01 kafka-manager-1.3.2.1]# nohup ./bin/kafka-manager -Dconfig.file=./conf/application.conf -Dhttp.port=9999 -java-home /usr/java/jdk1.8.0_102 >kafka-manager.log 2>&1 &
4.新增Cluster
a.Add Cluster
Cluster Name: onlinelog_analysis_kafkacluster
Cluster Zookeeper Hosts: 172.16.101.58:2181,172.16.101.59:2181,172.16.101.60:2181/kafka
勾選上 Enable JMX Polling (Set JMX_PORT env variable before starting kafka server)
再勾選下方的指標資訊(參考截圖)
單擊Save按鈕
b.Brokers
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30089851/viewspace-2132052/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 06【線上日誌分析】之KafkaOffsetMonitor監控工具的搭建Kafka
- 12【線上日誌分析】之RedisLive監控工具的詳細安裝Redis
- Centos7編譯安裝kafka-manager教程CentOS編譯Kafka
- 03【線上日誌分析】之hadoop-2.7.3編譯和搭建叢集環境(HDFS HA,Yarn HA)Hadoop編譯Yarn
- protobuf 編譯工具安裝與使用編譯
- zabbix分散式監控環境完全編譯安裝部署分散式編譯
- Munin監控的安裝與配置
- 安裝使用OSWatcher監控工具
- 常見 APK 反編譯工具安裝與使用APK編譯
- 本地搭建Dubbo監控中心的安裝步驟
- Xopsed的編譯與安裝編譯
- ffmpeg安裝之linux編譯安裝Linux編譯
- 04【線上日誌分析】之Flume Agent的3臺收集+1臺聚合到hdfs的搭建
- zabbix監控系統的安裝與配置
- 小程式日誌監控工具
- LNMP網站框架搭建(編譯安裝)LNMP網站框架編譯
- LAMP純原始碼編譯安裝日誌LAMP原始碼編譯
- 05【線上日誌分析】之Kafka 0.10.1.0 Cluster的搭建和Topic簡單操作實驗Kafka
- 16【線上日誌分析】之grafana-4.1.1 Install和新建日誌分析的DashBoardGrafana
- 深入理解JVM:效能分析與監控工具JVM
- percona-monitoring-plugin監控工具的安裝Plugin
- 反編譯之安裝Apktool編譯APK
- 【監控】Zabbix安裝
- nginx 編譯安裝與配置使用Nginx編譯
- redis效能監控工具redis-stat安裝初探Redis
- CentOS.56安裝Redis監控工具RedisLiveCentOSRedis
- MySQL監控工具之orzdbaMySql
- 黑盒監控、日誌監控
- PHP的編譯安裝PHP編譯
- Kubernetes Ingress 日誌分析與監控的最佳實踐
- centos7搭建lnmp編譯安裝php【一】CentOSLNMP編譯PHP
- centos7搭建lnmp編譯安裝nginx【二】CentOSLNMP編譯Nginx
- 硬碟監控和分析工具:Smartctl硬碟
- 效能監控和分析工具--nmon
- Zabbix監控安裝部署
- 效能測試之資料庫監控分析工具PMM資料庫
- jvisualvm.exe監控工具安裝外掛LVM
- Elasticsearch叢集監控工具bigdesk外掛安裝Elasticsearch