AFAIK there is no other way. In the latest release JDBC connection provider API is added but it also needs some code modification. BTW, if there would be a hook API then code changes need to be added too, right?
On Fri, 25 Dec 2020, 02:35 lec ssmi, <[email protected]> wrote: > Thanks. > But there is a problem that the classes referenced in the code need to be > modified. I want to try not to change the existing code. > > Gabor Somogyi <[email protected]> 于2020年12月25日周五 上午12:16写道: > >> One can wrap the JDBC driver and such a way eveything can be sniffed. >> >> On Thu, 24 Dec 2020, 03:51 lec ssmi, <[email protected]> wrote: >> >>> Hi: >>> guys, I have some spark programs that have database connection >>> operations. I want to acquire the connection information, such as jdbc >>> connection properties , but not too intrusive to the code. >>> Any good ideas ? Can java agent make it ? >>> >>> >>
