Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2025 06:18 AM - edited 01-07-2025 06:44 AM
Hello there @Alberto_Umana ,
After the architecture team asociated the subnet, when I run the command:
nc
!nc -zv 172.XY.ZKL.MN 30013
[REDACTED]: inverse host lookup failed: Unknown host
(UNKNOWN) [[REDACTED]] 30013 (?) open
ping
!ping -c 4 172.XY.ZKL.MN
PING [REDACTED] ([REDACTED]) 56(84) bytes of data.
64 bytes from [REDACTED]: icmp_seq=1 ttl=57 time=138 ms
64 bytes from [REDACTED]: icmp_seq=2 ttl=57 time=130 ms
64 bytes from [REDACTED]: icmp_seq=3 ttl=57 time=127 ms
64 bytes from [REDACTED]: icmp_seq=4 ttl=57 time=127 ms
--- [REDACTED] ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 126.922/130.489/137.854/4.449 ms
telnet:
telnet 172.XY.ZKL.MN 30013
Trying [REDACTED]...
Connected to [REDACTED].
Escape character is '^]'.
Connection closed by foreign host.
Even though the connection is ok, the query is not working by authentication:
df_my_table = (spark.read
.format("jdbc")
.option("driver","com.sap.db.jdbc.Driver")
.option("url", f'jdbc:sap://{jdbcHostname}:30013/?autocommit=false')
.option("dbtable", "MY_TABLE")
.option("user", jdbcUsername) ## should be using databricks secrets instead of putting credentials in code
.option("password", jdbcPassword) ## should be using databricks secrets instead of putting credentials in code
.load()
)
Py4JJavaError: An error occurred while calling o1040.load.
: com.sap.db.jdbc.exceptions.jdbc40.SQLInvalidAuthorizationSpecException: [10]: authentication failed
at com.sap.db.jdbc.exceptions.jdbc40.SQLInvalidAuthorizationSpecException.createException(SQLInvalidAuthorizationSp
I was following the url that you provided me