pyflink1.18.0 报错 TypeError: cannot pickle ‘_thread.lock‘ object

完整报错

Traceback (most recent call last):
  File "/Users//1.py", line 851, in 
    ds1 = my_datastream.key_by(lambda x: x[0]).process(MyProcessFunction())  # 返回元组即: f0 f1 f2 三列
  File "/Users/thomas990p/bigdataSoft/minicondaarm/miniconda3/envs/py39/lib/python3.9/site-packages/pyflink/datastream/data_stream.py", line 1634, in process
    _get_one_input_stream_operator(
  File "/Users/thomas990p/bigdataSoft/minicondaarm/miniconda3/envs/py39/lib/python3.9/site-packages/pyflink/datastream/data_stream.py", line 2782, in _get_one_input_stream_operator
    j_data_stream_python_function_info = _create_j_data_stream_python_function_info(func, func_type)
  File "/Users/thomas990p/bigdataSoft/minicondaarm/miniconda3/envs/py39/lib/python3.9/site-packages/pyflink/datastream/data_stream.py", line 2899, in _create_j_data_stream_python_function_info
    serialized_func = cloudpickle.dumps(func)
  File "/Users/thomas990p/b

你可能感兴趣的:(总结,pyflink)