[root@localhost ~]# kafka-console-producer.sh --help
This tool helps to read data from standard input and publish it to Kafka.
Option Description
-------------------batch-size <Integer: size> Number of messages to send in a single
batch if they are not being sent
synchronously.(default:200)--bootstrap-server <String: server to REQUIRED unless --broker-list
connect to>(deprecated) is specified. The server
(s) to connect to. The broker list
string in the form HOST1:PORT1,HOST2:
PORT2.--broker-list <String: broker-list> DEPRECATED, use --bootstrap-server
instead; ignored if--bootstrap-
server is specified. The broker
list string in the form HOST1:PORT1,
HOST2:PORT2.--compression-codec [String: The compression codec: either 'none',
compression-codec]'gzip','snappy','lz4', or 'zstd'.
If specified without value, then it
defaults to 'gzip'--help Print usage information.--line-reader <String: reader_class> The class name of the class to use for
reading lines from standard in. By
default each line is read as a
separate message.(default: kafka.
tools.
ConsoleProducer$LineMessageReader)--max-block-ms <Long: max block on The max time that the producer will
send> block for during a send request
(default:60000)--max-memory-bytes <Long: total memory The total memory used by the producer
in bytes> to buffer records waiting to be sent
to the server.(default:33554432)--max-partition-memory-bytes <Long: The buffer size allocated for a
memory in bytes per partition> partition. When records are received
which are smaller than this size the
producer will attempt to
optimistically group them together
until this size is reached.(default:16384)--message-send-max-retries <Integer> Brokers can fail receiving the message
for multiple reasons, and being
unavailable transiently is just one
of them. This property specifies the
number of retries before the
producer give up and drop this
message.(default:3)--metadata-expiry-ms <Long: metadata The period of time in milliseconds
expiration interval> after which we force a refresh of
metadata even if we haven't seen any
leadership changes.(default:300000)--producer-property <String: A mechanism to pass user-defined
producer_prop> properties in the form key=value to
the producer.--producer.config <String: config file> Producer config properties file. Note
that [producer-property] takes
precedence over this config.--property <String: prop> A mechanism to pass user-defined
properties in the form key=value to
the message reader. This allows
custom configuration for a user-
defined message reader. Default
properties include:
parse.key=true|false
key.separator=<key.separator>
ignore.error=true|false--request-required-acks <String: The required acks of the producer
request required acks> requests (default:1)--request-timeout-ms <Integer: request The ack timeout of the producer
timeout ms> requests. Value must be non-negative
and non-zero (default:1500)--retry-backoff-ms <Integer> Before each retry, the producer
refreshes the metadata of relevant
topics. Since leader election takes
a bit of time, this property
specifies the amount of time that
the producer waits before refreshing
the metadata.(default:100)--socket-buffer-size <Integer: size> The size of the tcp RECV size.(default:102400)--sync If set message send requests to the
brokers are synchronously, one at a
time as they arrive.--timeout <Integer: timeout_ms> If set and the producer is running in
asynchronous mode, this gives the
maximum amount of time a message
will queue awaiting sufficient batch
size. The value is given in ms.(default:1000)--topic <String: topic> REQUIRED: The topic id to produce
messages to.--version Display Kafka version.
Metasploit框架:phish_windows_credentials Metasploit带有内置的后期漏洞利用功能,可帮助我们完成任务。由于它是后渗透的模块,因此只需要输入会话即可:
use post/windows/gather/phish_windows_credentials
set session 1
…
旋转链表
给你一个链表的头节点 head ,旋转链表,将链表每个节点向右移动 k 个位置。
示例 1: 输入:head [1,2,3,4,5], k 2 输出:[4,5,1,2,3]
解题思路
要将链表每个节点向右移动 k 个位置:
计算链表…
题目截图 题目分析
每次1操作将会分裂成两块区间长度,以最近右端点记录左侧区间的长度即可 因此涉及到单点更新和区间查询 然后左右侧最近端点则使用redBlackTree,也就是python中的sortedlist
ac code
type seg []int// 把 i 处的值改成 val
func (t …
1. 基础知识
1.1. verdi
VCS和Verdi这两个工具,这两个工具目前都属于synopsys公司。VCS主要负责编译运行Testbench和RTL,并负责生成相应的波形文件。而verdi主要负责加载波形文件,查看信号的波形及其对应的代码来进行调试验证。Verdi最开始…