[英]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.