Skip to content

Apache DataFusion SQL Query Engine

Pass local address host so we do not get mismatch between IPv4 and IP… (#1466)

Dan Harrisecfc7d857ce7
diff --git a/ballista/rust/executor/src/standalone.rs b/ballista/rust/executor/src/standalone.rs
index 39a899c6c6..04174d4de2 100644
--- a/ballista/rust/executor/src/standalone.rs
+++ b/ballista/rust/executor/src/standalone.rs
@@ -20,6 +20,7 @@ use std::sync::Arc;
use arrow_flight::flight_service_server::FlightServiceServer;
use ballista_core::{
error::Result,
+ serde::protobuf::executor_registration::OptionalHost,
serde::protobuf::{scheduler_grpc_client::SchedulerGrpcClient, ExecutorRegistration},
BALLISTA_VERSION,
};
@@ -59,7 +60,7 @@ pub async fn new_standalone_executor(
);
let executor_meta = ExecutorRegistration {
id: Uuid::new_v4().to_string(), // assign this executor a unique ID
- optional_host: None,
+ optional_host: Some(OptionalHost::Host("localhost".to_string())),
port: addr.port() as u32,
};
tokio::spawn(execution_loop::poll_loop(