简体   繁体   English

连接到SAP HANA:ConnectionRefusedError:[Errno 111]连接被拒绝

[英]connecting to SAP HANA : ConnectionRefusedError: [Errno 111] Connection refused

I am trying to connect SAP HANA DB through Python using Putty(Ubuntu) with the below script but receiving Connection Refused error. 我正在尝试使用带有以下脚本的Putty(Ubuntu)通过Python连接SAP HANA DB,但收到Connection Refused错误。

Error: ConnectionRefusedError: [Errno 111] Connection refused 错误:ConnectionRefusedError:[Errno 111]连接被拒绝

Note: The SAP HANA which I am trying to connect is hosted on AWS server. 注意:我尝试连接的SAP HANA托管在AWS服务器上。

import pyhdb
class hana(object):
     def opencon(self):
     conn= pyhdb.connect(host='10.1.3.66',
                         port=XXXXX,
                         user='XXXXX',
                         password='XXXXX')
   cursor = conn.cursor()
   print(conn.isconnected())
HanaDB = hana()
HanaDB.opencon()

Have you been able to connect to your instance with other HANA clients, like SAP HANA Studio or hdbsql ? 您是否能够使用其他HANA客户端(例如SAP HANA Studio或hdbsql连接到实例?

Right now, it just looks like the connection gets refused on the TCP/IP level, maybe due to some firewall setting!? 现在,好像只是由于某些防火墙设置而导致在TCP / IP级别拒绝连接!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 WebRTC 的 GPU 加速流未连接 [ConnectionRefusedError: [Errno 111] Connection denied] - GPU-accelerated streaming using WebRTC not connecting [ConnectionRefusedError: [Errno 111] Connection refused] Ftplib ConnectionRefusedError: [Errno 111] 连接被拒绝 (python 3.5) - Ftplib ConnectionRefusedError: [Errno 111] Connection refused (python 3.5) python-valve rcon minecraft'ConnectionRefusedError:[Errno 111]连接被拒绝' - python-valve rcon minecraft 'ConnectionRefusedError: [Errno 111] Connection refused' PythonAnywhere ConnectionRefusedError:[Errno 111] 与 Twilio 一起使用时连接被拒绝 - PythonAnywhere ConnectionRefusedError: [Errno 111] Connection refused when used with Twilio 在Python(多处理)中正确酸洗和取消代理对象? “ConnectionRefusedError:[Errno 111] 解压时连接被拒绝” - Properly pickling and unpickling proxy objects in Python (multiprocessing)? "ConnectionRefusedError: [Errno 111] Connection refused while unpickling" Mysql([Errno 111] 连接被拒绝)”) - Mysql ([Errno 111] Connection refused)") Pythonanywhere - ConnectionRefusedError: [Errno 111] - Pythonanywhere - ConnectionRefusedError: [Errno 111] 在连接到Heroku上的mongoDB时出现错误:“ localhost:27017:[Errno 111]连接被拒绝”,但在我的计算机上工作正常 - Getting error: “localhost:27017: [Errno 111] Connection refused” while connecting to mongoDB on Heroku but works fine on my computer Python套接字编程ConnectionRefusedError:[Errno 61]连接被拒绝 - Python Socket Programming ConnectionRefusedError: [Errno 61] Connection refused Docker。 无法建立新连接:[Errno 111] Connection refused' - Docker. Failed to establish a new connection: [Errno 111] Connection refused'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM