pyspark 调 UnicodeEncodeError: 'ascii' codec can't encode characters in position 94-103:

源码节点 发布于 01/19 16:59
阅读 300
收藏 0

【DevOps必读】产品经理与程序员之间如何破局?>>>

 line 37, in <module>
    main(sys.argv) 
  File "/root/test/19pymq.py", line 29, in main
    print(jdbcDf.select('job_name').show(2))
  File "/opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/lib/spark/python/lib/pyspark.zip/pyspark/sql/dataframe.py", line 378, in show
UnicodeEncodeError: 'ascii' codec can't encode characters in position 94-103: ordinal not in range(128)
20/01/19 17:02:03 INFO spark.SparkContext: Invoking stop() from shutdown hook
20/01/19 17:02:03 INFO server.AbstractConnector: Stopped Spark@5cc29096{HTTP/1.1,[http/1.1]}{0.0.0.0:4048}
20/01/19 17:02:03 INFO ui.SparkUI: Stopped Spark web UI at http://master:4048
 

加载中
返回顶部
顶部