-
Notifications
You must be signed in to change notification settings - Fork 328
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
[BUG]Test on ray cluster: TypeError: __init__() missing 1 required positional argument: 'pid' #3197
Comments
@chaokunyang @wjsi It seems that the |
Could you try this? import ray
import time
import mars
import mars.tensor as mt
import mars.dataframe as md
def ray_init():
while True:
try:
print(ray.init(address='xx.xx.xx.xx:9999',
log_to_driver=True,
ignore_reinit_error=True,
))
break
except ConnectionError:
print("Ray head is not ready yet, retry")
time.sleep(RAY_WORKER_DELAY)
ray_init()
# cluster = mars.new_cluster_in_ray(worker_num=2, worker_mem=2 * 1024 ** 3)
mars.new_session(backend="ray")
mt.random.RandomState(0).rand(1000_000000, 5).sum().execute()
df = md.DataFrame(
mt.random.rand(1000_0000, 4, chunk_size=500_0000),
columns=list('abcd'))
print(df.sum().execute())
print(df.describe().execute())
# Convert mars dataframe to ray dataset
ds = md.to_ray_dataset(df)
print(ds.schema(), ds.count())
ds.filter(lambda row: row["a"] > 0.5).show(5) |
@fyrestone Thanks for reply.
What confuses me is the initial code I provide before can work on this line with the output
|
The latest master will be OK. The feature is not contained in previous releases, so the document has not been updated. |
@fyrestone cool! The laster master works well! |
Describe the bug
When I run the example code in mars documentation, I got the error msg
my code like this
To Reproduce
To help us reproducing this bug, please provide information below:
i. numpy: 1.23.0
ii. ray: 1.13.0
iii. scipy: 1.8.1
iv. pandas: 1.4.2
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Find #2860 has the similar error msg
The text was updated successfully, but these errors were encountered: