Download IDEA 3.1 or 3.2 (already compatible with the latest version)
2. The IDEA installation directory
- javaagent: C: \ Program Files \ JetBrains \ IntelliJ IDEA 2019.3.2 \ bin \ JetBrains - agent. The jarCopy the code
3. Obtain the jetBrains – Agent. jar file
The 2020-12-1 update, if it fails please use: document: jetbrains – agent. The jar links: link: pan.baidu.com/s/1MjJa3d0y… Extract code: 11JJ Copy this section of content after opening Baidu web disk mobile App, operation is more convenient oh click save can download invalid please contact me
4. Enter the activation code
A82DEE284F-eyJsaWNlbnNlSWQiOiJBODJERUUyODRGIiwibGljZW5zZWVOYW1lIjoiaHR0cHM6Ly96aGlsZS5pbyIsImFzc2lnbmVlTmFtZSI6IiIsImFzc 2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJVbmxpbWl0ZWQgbGljZW5zZSB0aWxsIGVuZCBvZiB0aGUgY2VudHVyeS4iLCJjaGVja0Nvb mN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiUlMwIiwicGFpZFVwV G8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiV1MiLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJSRCIsInBhaWRVcFRvIjoiMjA4OS0wNy0wN yJ9LHsiY29kZSI6IlJDIiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiREMiLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJEQ iIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IlJNIiwicGFpZFVwVG8iOiIyMDg5LTA3LTA3In0seyJjb2RlIjoiRE0iLCJwYWlkVXBUbyI6I jIwODktMDctMDcifSx7ImNvZGUiOiJBQyIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IkRQTiIsInBhaWRVcFRv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skqvaJd3RH8r7cnRj6Y2hltkja82HlpDURDxD TRvv+krbwMr26SB/40BjpMUrDRCeKuiBahC0DCoU/4+ze1l94wVUhdkCfL0GpJrMSCDEK+XEurU18Hb7WT+ThXbkdl6VpFdHsRvqAnhR2g4b+Qzgidmuky5N UZVfEaZqV/g==Copy the code
5. No comments are welcome!!
Next is the kafka cluster setup:
6. You need to download scala, Kafka, and SLf4J. You are recommended to download the latest stable version from the official website
Scala: link: https://pan.baidu.com/s/1iavYH7w9EqyED57CMgQKkg extracted code: 8 s2h kafka: Link: https://pan.baidu.com/s/1SycMLCErwTlaiKl_uUpxQQ extracted code: 8 di2 slf4j: Link: https://pan.baidu.com/s/1OPs9fU9JdA2j8bZhhZHpYw extraction code: rxydCopy the code
Tar -zxvf scala-2.11.4. TGZ Rename the scala directory: mv scala-2.11.4 scala #3. Configure the Scala-related environment variable vi ~/.bashrc
export SCALA_HOME=/usr/local/scala
export PATH=$SCALA_HOME/bin
Copy the code
Source ~/.bashrc Check whether Scala is successfully installed: scala -version ## Follow the steps above to install Scala on all other machines. Copy Scala and.bashrc to the other two machines using SCP. Copy kafka to the /usr/local directory. TGZ: tar -zxvf kafka_2.9.2-0.8.1 TGZ Rename the kafka directory: mv kafka_2.9.2-0.8.1 kafka
Configuration kafka vim/usr/local/kafka/config/server properties
Broker. Id: growth in turn integer, 0, 1, 2, and the only id zookeeper broker in the cluster. The connect = 192.168.31.187:2181192168 31.19:2181192168 31.227:2181Copy the code
Install slf4j-nop-1.7.6.jar to kafka libs directory cp slf4j-nop-1.7.6.jar /usr/local/kafka/libs/
Solve the kafka Unrecognized VM option ‘UseCompressedOops’ problem
vim /usr/local/kafka/bin/kafka-run-class.sh
if [ -z "$KAFKA_JVM_PERFORMANCE_OPTS" ]; then
KAFKA_JVM_PERFORMANCE_OPTS="-server -XX:+UseCompressedOops -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -XX:+DisableExplicitGC -Djava.awt.headless=true"
fi
Copy the code
Drop -xx :+UseCompressedOops
#### Follow the steps above to install Kafka on the other two machines. Use SCP to copy Kafka to another machine. The only difference is that broker.id in server.properties is set to 1 and 2
In the kafka directory on the three machines, run the following commands: nohup bin/kafka-server-start.sh config/server.properties &
Use JPS to check whether the startup was successful
As a programmer, the ability to quickly set up environments and quickly test locally is essential.
Thank you for reading this, if this article is well written and if you feel there is something to it
Ask for a thumbs up 👍 ask for attention ❤️ ask for share 👥 for 8 abs I really very useful!!
If there are any mistakes in this blog, please comment, thank you very much! ❤ ️ ❤ ️ ❤ ️ ❤ ️