How to add third party java jars for use in pyspark

前端 未结 9 1852
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 03:08

I have some third party Database client libraries in Java. I want to access them through

java_gateway.py

E.g: to make the client class (not

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 03:44

    Apart from the accepted answer, you also have below options:

    1. if you are in virtual environment then you can place it in

      e.g. lib/python3.7/site-packages/pyspark/jars

    2. if you want java to discover it then you can place where your jre is installed under ext/ directory

提交回复
热议问题