Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slice.db.py error: ValueError: RDD is empty #15

Open
zhangxushuaib opened this issue May 26, 2023 · 0 comments
Open

slice.db.py error: ValueError: RDD is empty #15

zhangxushuaib opened this issue May 26, 2023 · 0 comments

Comments

@zhangxushuaib
Copy link

Traceback (most recent call last):
File "./slice_db.py", line 119, in
main()
File "./slice_db.py", line 108, in main
slice_df = slice_db_action.run()
File "./slice_db.py", line 52, in run
.flatMap(_enumerate))
File "/home/zhangxu/usr/local/envs/reinvent-scaffold-decorator/lib/python3.6/site-packages/pyspark/sql/session.py", line 746, in createDataFrame
rdd, schema = self._createFromRDD(data.map(prepare), schema, samplingRatio)
File "/home/zhangxu/usr/local/envs/reinvent-scaffold-decorator/lib/python3.6/site-packages/pyspark/sql/session.py", line 390, in _createFromRDD
struct = self._inferSchema(rdd, samplingRatio, names=schema)
File "/home/zhangxu/usr/local/envs/reinvent-scaffold-decorator/lib/python3.6/site-packages/pyspark/sql/session.py", line 361, in _inferSchema
first = rdd.first()
File "/home/zhangxu/usr/local/envs/reinvent-scaffold-decorator/lib/python3.6/site-packages/pyspark/rdd.py", line 1381, in first
raise ValueError("RDD is empty")
ValueError: RDD is empty
when i use my data ,This problem always occurs.how to solve it? thankyou

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant