在设置Kafka Broker集群并创建几个主题后,我们发现Kafka自动创建了以下两个主题:
这些主题的重要性和用途是什么?
我有一个REST API,它需要数据。我们正在使用以下curl命令发送数据和标头信息:
curl -X "POST" "https://xxx.xxx.xxx/xapplication/xwebhook/xxxx-xxxx" -d "Hello, This is data"
Run Code Online (Sandbox Code Playgroud)
什么是等效的Groovy脚本?
以下是我的 Knife.rb 配置,受尊重的文件位于上述位置
# See http://docs.chef.io/config_rb_knife.html for more information on knife configuration options
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "anshulp25"
client_key "#{current_dir}/anshulp25.pem"
validation_client_name "deathstartatooine-validator"
validation_key "#{current_dir}/deathstartatooine-validator.pem"
chef_server_url "https://api.chef.io/organizations/deathstartatooine"
cookbook_path ["#{current_dir}/../cookbooks"]
Run Code Online (Sandbox Code Playgroud)
但当我这样做时
knife client list
Run Code Online (Sandbox Code Playgroud)
我得到以下输出
$ knife client list
deathstartatooine-validator
Run Code Online (Sandbox Code Playgroud)
该条目不应该anshulp25被列出吗?
以下为厨师详情
$ chef --version
Chef Development Kit Version: 0.10.0
chef-client version: 12.5.1
berks version: 4.0.1
kitchen version: 1.4.2
Run Code Online (Sandbox Code Playgroud)