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 <gabor.g.somo...@gmail.com> 于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, <shicheng31...@gmail.com> 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 ? >> >> >