Remove the '--include-java' option (#10594)

This commit is contained in:
Kai Yang
2020-09-09 17:01:17 +08:00
committed by GitHub
parent ccf27a9ad2
commit afa0216280
17 changed files with 40 additions and 69 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ from ray.streaming import StreamingContext
def test_data_stream():
ray.init(_load_code_from_local=True, _include_java=True)
ray.init(_load_code_from_local=True)
ctx = StreamingContext.Builder().build()
stream = ctx.from_values(1, 2, 3)
java_stream = stream.as_java_stream()
@@ -17,7 +17,7 @@ def test_data_stream():
def test_key_data_stream():
ray.init(_load_code_from_local=True, _include_java=True)
ray.init(_load_code_from_local=True)
ctx = StreamingContext.Builder().build()
key_stream = ctx.from_values(
"a", "b", "c").map(lambda x: (x, 1)).key_by(lambda x: x[0])
@@ -32,7 +32,7 @@ def test_key_data_stream():
def test_stream_config():
ray.init(_load_code_from_local=True, _include_java=True)
ray.init(_load_code_from_local=True)
ctx = StreamingContext.Builder().build()
stream = ctx.from_values(1, 2, 3)
stream.with_config("k1", "v1")