1.thrift-server启动时,需要带上pg的驱动 2.在beeline中,需要add jar带上pg的驱动;然后再将pg映射为spark的表;最后才可以进行查询: 3.写成python代码类似于: