You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use rusoto_core::Region;
use rusoto_kafka::{Kafka, KafkaClient, ListClustersRequest};
use std::error::Error;
use env_logger;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let _ = env_logger::try_init();
let client = KafkaClient::new(Region::UsEast1);
let mut req = ListClustersRequest::default();
req.cluster_name_filter = Some("kafka-log-".to_string());
// req.max_results = Some(100);
let res = client.list_clusters(req).await?;
println!("{:?}", res);
Ok(())
}
And my Cargo.toml:
[package]
name = "kafka-tail-logs"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = "2.33.3"
env_logger = "0.9.0"
log = "0.4.14"
rdkafka = "0.26.0"
rusoto_core = "0.47.0"
rusoto_kafka = "0.47.0"
tokio = { version = "1.11.0", features = ["full"] }
When I run this with debug logging, I get the following:
The response I get back from rusoto_kafka is empty, yet you can see from the debug output that it got the correct results.
One thing I can see from the response is that the JSON fields are different than expected, e.g. "clusterInfoList" instead of "ClusterInfoList". I'm not sure if this is an artifact of the debugging, because when I use the Amazon CLI, the field values are correct.
The text was updated successfully, but these errors were encountered:
Hi, here's my code:
And my Cargo.toml:
When I run this with debug logging, I get the following:
The response I get back from rusoto_kafka is empty, yet you can see from the debug output that it got the correct results.
One thing I can see from the response is that the JSON fields are different than expected, e.g. "clusterInfoList" instead of "ClusterInfoList". I'm not sure if this is an artifact of the debugging, because when I use the Amazon CLI, the field values are correct.
The text was updated successfully, but these errors were encountered: