mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 23:11:40 +08:00
Remove the '--include-java' option (#10594)
This commit is contained in:
@@ -65,7 +65,7 @@ if __name__ == "__main__":
|
||||
args = parser.parse_args()
|
||||
titles_file = str(args.titles_file)
|
||||
|
||||
ray.init(_load_code_from_local=True, _include_java=True)
|
||||
ray.init(_load_code_from_local=True)
|
||||
|
||||
ctx = StreamingContext.Builder() \
|
||||
.option(Config.CHANNEL_TYPE, Config.NATIVE_CHANNEL) \
|
||||
|
||||
@@ -8,7 +8,7 @@ from ray.streaming import StreamingContext
|
||||
|
||||
def test_word_count():
|
||||
try:
|
||||
ray.init(_load_code_from_local=True, _include_java=True)
|
||||
ray.init(_load_code_from_local=True)
|
||||
# time.sleep(10) # for gdb to attach
|
||||
ctx = StreamingContext.Builder() \
|
||||
.option("streaming.context-backend.type", "local_file") \
|
||||
|
||||
@@ -35,7 +35,6 @@ def test_hybrid_stream():
|
||||
assert not ray.is_initialized()
|
||||
ray.init(
|
||||
_load_code_from_local=True,
|
||||
_include_java=True,
|
||||
_java_worker_options=java_worker_options,
|
||||
_system_config={"num_workers_per_process_java": 1})
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -5,7 +5,7 @@ from ray.streaming import StreamingContext
|
||||
|
||||
|
||||
def test_union_stream():
|
||||
ray.init(_load_code_from_local=True, _include_java=True)
|
||||
ray.init(_load_code_from_local=True)
|
||||
ctx = StreamingContext.Builder() \
|
||||
.option("streaming.metrics.reporters", "") \
|
||||
.build()
|
||||
|
||||
@@ -4,7 +4,7 @@ from ray.streaming import StreamingContext
|
||||
|
||||
|
||||
def test_word_count():
|
||||
ray.init(_load_code_from_local=True, _include_java=True)
|
||||
ray.init(_load_code_from_local=True)
|
||||
ctx = StreamingContext.Builder() \
|
||||
.build()
|
||||
ctx.read_text_file(__file__) \
|
||||
@@ -23,7 +23,7 @@ def test_word_count():
|
||||
|
||||
|
||||
def test_simple_word_count():
|
||||
ray.init(_load_code_from_local=True, _include_java=True)
|
||||
ray.init(_load_code_from_local=True)
|
||||
ctx = StreamingContext.Builder() \
|
||||
.build()
|
||||
sink_file = "/tmp/ray_streaming_test_simple_word_count.txt"
|
||||
|
||||
Reference in New Issue
Block a user