在整个贡献代码过程中,应该牢记以下几个环境。其实绝大部分的操作都是在我们的本地电脑完成。
- 别人的github项目A: https://github.com/rwx------/zabbix-templates
- 我的github账号B: https://github.com/RickieL
- 我的本地电脑C: local
后面的介绍中,每个步骤的操作环境都会以[A]、[B]、[C]来标示。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/zsh | |
DirConf="/usr/local/etc" | |
PIDPATH="/usr/local/var/run" | |
PHPVersion="5.6" | |
MYSQL="/usr/local/bin/mysql.server" | |
NGINX="/usr/local/bin/nginx" | |
PHPFPM="/usr/local/sbin/php-fpm" | |
MEMCACHED="/usr/local/bin/memcached -m 24 -P $PIDPATH/memcached.pid -u root" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Producer | |
Setup | |
bin/kafka-topics.sh --zookeeper hdp-241:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1 | |
bin/kafka-topics.sh --zookeeper hdp-241:2181 --create --topic test --partitions 6 --replication-factor 3 | |
Single thread, no replication | |
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=hdp-241:9092 buffer.memory=67108864 batch.size=8196 |