Created
April 15, 2025 02:44
-
-
Save kenzo0107/b166c0ad1b179b0d7734dd6847c03f9e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import socket | |
msk_host = "<MSK Cluster host>" | |
port = 9098 | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
result = sock.connect_ex((msk_host, port)) | |
if result == 0: | |
print("✅ Glue から MSK への接続成功!") | |
else: | |
print("❌ Glue から MSK への接続失敗!") | |
sock.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment