Open rahulvramesh opened 1 year ago
Is there any more logs on the console?
/Users/user/miniconda3/envs/graphscope-k8/bin/python /Users/user/workspace/try/graphscope-k8/main.py
['python3', '-m', 'gscoordinator', '--cluster_type', 'k8s', '--port', '59513', '--num_workers', '2', '--preemptive', 'True', '--instance_id', 'sydkbc', '--log_level', 'INFO', '--k8s_namespace', 'gs-gkcpcj', '--k8s_service_type', 'NodePort', '--k8s_image_repository', 'graphscope', '--k8s_image_pull_policy', 'IfNotPresent', '--k8s_coordinator_name', 'coordinator-sydkbc', '--k8s_coordinator_service_name', 'coordinator-sydkbc', '--k8s_vineyard_image', 'vineyardcloudnative/vineyardd:latest', '--k8s_vineyard_cpu', '0.5', '--k8s_vineyard_mem', '512Mi', '--vineyard_shared_mem', '4Gi', '--k8s_engine_cpu', '0.2', '--k8s_engine_mem', '1Gi', '--k8s_mars_worker_cpu', '0.2', '--k8s_mars_worker_mem', '4Mi', '--k8s_mars_scheduler_cpu', '0.2', '--k8s_mars_scheduler_mem', '2Mi', '--k8s_with_mars', 'False', '--k8s_enabled_engines', 'analytical,interactive,learning', '--k8s_with_dataset', 'False', '--timeout_seconds', '600', '--dangling_timeout_seconds', '600', '--waiting_for_delete', 'False', '--k8s_delete_namespace', 'True', '--k8s_image_registry', 'registry.cn-hongkong.aliyuncs.com', '--k8s_image_tag', '0.23.0', '--k8s_deploy_mode', 'eager']
ââââââââââââââââââââââ Traceback (most recent call last) âââââââââââââââââââââââŪ
â /Users/user/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/client/rpc.py:68 in waiting_service_ready â
â â
â 65 â â â â â â f"Start coordinator failed with exit code {cod â
â 66 â â â â â ) â
â 67 â â â try: â
â âą 68 â â â â self._stub.HeartBeat(request) â
â 69 â â â â logger.info("GraphScope coordinator service connected. â
â 70 â â â â break â
â 71 â â â except grpc.RpcError as e: â
â â
â /Users/user/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/grpc/_channel.py:1030 in __call__ â
â â
â 1027 â â â â compression: Optional[grpc.Compression] = None) -> A â
â 1028 â â state, call, = self._blocking(request, timeout, metadata, cre â
â 1029 â â â â â â â â â wait_for_ready, compression) â
â âą 1030 â â return _end_unary_response_blocking(state, call, False, None) â
â 1031 â â
â 1032 â def with_call( â
â 1033 â â self, â
â â
â /Users/user/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/grpc/_channel.py:910 in _end_unary_response_blocking â
â â
â 907 â â else: â
â 908 â â â return state.response â
â 909 â else: â
â âą 910 â â raise _InactiveRpcError(state) # pytype: disable=not-instant â
â 911 â
â 912 â
â 913 def _stream_unary_invocation_operations( â
â°âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââŊ
_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: UNKNOWN:
ipv4:192.168.3.241:30243: Failed to connect to remote host: Operation timed out"
debug_error_string = "UNKNOWN:failed to connect to all addresses; last
error: UNKNOWN: ipv4:192.168.3.241:30243: Failed to connect to remote host:
Operation timed out {created_time:"2023-07-20T11:01:29.43457+07:00",
grpc_status:14}"
>
During handling of the above exception, another exception occurred:
ââââââââââââââââââââââ Traceback (most recent call last) âââââââââââââââââââââââŪ
â /Users/user/workspace/try/graphscope-k8/main.py:7 in <module> â
â â
â 4 from graphscope.dataset.ogbn_mag import load_ogbn_mag â
â 5 â
â 6 # Set up the GraphScope session â
â âą 7 graphscope_session = graphscope.session(cluster_type='k8s', show_log=T â
â 8 â
â 9 # Load the dataset â
â 10 g = load_ogbn_mag(graphscope_session) â
â â
â /Users/user/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/client/utils.py:400 in wrapper â
â â
â 397 â â â assert len(original_defaults) == len(new_defaults), "set d â
â 398 â â â func.__defaults__ = tuple(new_defaults) â
â 399 â â â â
â âą 400 â â â return_value = func(*args, **kwargs) â
â 401 â â â â
â 402 â â â # Restore original defaults. â
â 403 â â â func.__defaults__ = original_defaults â
â â
â /Users/user/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/client/session.py:676 in __init__ â
â â
â 673 â â atexit.register(self.close) â
â 674 â â # create and connect session â
â 675 â â with CaptureKeyboardInterrupt(self.close): â
â âą 676 â â â self._connect() â
â 677 â â â
â 678 â â self._disconnected: bool = False â
â 679 â
â â
â /Users/user/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/client/session.py:1055 in _connect â
â â
â 1052 â â self._grpc_client = GRPCClient( â
â 1053 â â â self._launcher, self._coordinator_endpoint, self._config_ â
â 1054 â â ) â
â âą 1055 â â self._grpc_client.waiting_service_ready( â
â 1056 â â â timeout_seconds=self._config_params["timeout_seconds"], â
â 1057 â â ) â
â 1058 â
â â
â /Users/user/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/client/rpc.py:78 in waiting_service_ready â
â â
â 75 â â â â if e.code() == grpc.StatusCode.DEADLINE_EXCEEDED: â
â 76 â â â â â logger.warning("Heart beat analytical engine faile â
â 77 â â â â if time.time() - begin_time >= timeout_seconds: â
â âą 78 â â â â â raise ConnectionError(f"Connect coordinator timeou â
â 79 â â â â time.sleep(1) â
â 80 â â
â 81 â def connect(self, cleanup_instance=True, dangling_timeout_seconds= â
â°âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââŊ
ConnectionError: Connect coordinator timeout, code: UNAVAILABLE, details: failed
to connect to all addresses; last error: UNKNOWN: ipv4:192.168.3.241:30243:
Failed to connect to remote host: Operation timed out
@rahulvramesh By default, the 'nodePort' service type will be used in k8s deployment
>>> graphscope_session = graphscope.session(cluster_type='k8s', show_log=True, k8s_service_type='NodePort')
So, please make sure your client node can access the k8s node.
$ kubectl describe node <k8s-node>
...
Addresses:
InternalIP: xxx.xxx.xxx.xxx
...
Or, you can try to use LoadBalancer
service type.
>>> graphscope_session = graphscope.session(cluster_type='k8s', show_log=True, k8s_service_type='LoadBalancer.')
thanks @lidongze0629 i tried with LoadBalancer as well, its getting created but having same issue. let me give a try again. also, to reach the internal ip, i should be running the script on same network ? local execution won't work ?
with LoadBalancer
2023-07-20 07:31:52,706 [WARNING][op_executor:349]: Connecting to analytical engine... tried 1 time, will retry in 2 seconds
2023-07-20 07:31:52,707 [WARNING][op_executor:354]: Error code: StatusCode.UNAVAILABLE, details failed to connect to all addresses; last error: UNKNOWN: ipv4:192.168.22.227:56458: Failed to connect to remote host: Connection refused
2023-07-20 07:31:54,779 [WARNING][op_executor:349]: Connecting to analytical engine... tried 2 time, will retry in 4 seconds
2023-07-20 07:31:54,780 [WARNING][op_executor:354]: Error code: StatusCode.UNAVAILABLE, details failed to connect to all addresses; last error: UNKNOWN: ipv4:192.168.22.227:56458: Failed to connect to remote host: Connection refused
E0720 07:32:01.000000 531 /home/graphscope/GraphScope/analytical_engine/core/server/dispatcher.cc:153] Worker 0: VineyardError occurred on worker 0: VineyardError occurred on worker 0: /opt/graphscope/include/graphscope/core/loader/arrow_fragment_loader.h:422: operator() -> Arrow error: IOError: Failed to open local file '/Users'. Detail: [errno 2] No such file or directory
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}::operator()() const + 0x537
vineyard::sync_gs_error<gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}&>(grape::CommSpec const&, gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}&)::{lambda()#2}::operator()() const + 0x3B
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int) + 0x265
vineyard::sync_gs_error<gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables()::{lambda()#2}&>(grape::CommSpec const&, gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables()::{lambda()#2}&)::{lambda()#2}::operator()() const + 0x50
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables() + 0x37A
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexEdgeTables() + 0x2D1
2023-07-20 14:32:01,329 [ERROR][rpc:188]: Runstep failed with code: ANALYTICAL_ENGINE_INTERNAL_ERROR, message: Error occurred during RunStep, The traceback is: Traceback (most recent call last):
File "/home/graphscope/.local/lib/python3.10/site-packages/gscoordinator/op_executor.py", line 102, in run_step
for response in responses:
File "/home/graphscope/.local/lib/python3.10/site-packages/grpc/_channel.py", line 475, in __next__
return self._next()
File "/home/graphscope/.local/lib/python3.10/site-packages/grpc/_channel.py", line 864, in _next
raise self
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.INTERNAL
details = "VineyardError occurred on worker 0: VineyardError occurred on worker 0: /opt/graphscope/include/graphscope/core/loader/arrow_fragment_loader.h:422: operator() -> Arrow error: IOError: Failed to open local file '/Users'. Detail: [errno 2] No such file or directory
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}::operator()() const + 0x537
vineyard::sync_gs_error<gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}&>(grape::CommSpec const&, gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}&)::{lambda()#2}::operator()() const + 0x3B
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int) + 0x265
vineyard::sync_gs_error<gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables()::{lambda()#2}&>(grape::CommSpec const&, gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables()::{lambda()#2}&)::{lambda()#2}::operator()() const + 0x50
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables() + 0x37A
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexEdgeTables() + 0x2D1
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::AddLabelsToFragment(unsigned long) + 0x52
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::AddLabelsToFragmentAsFragmentGroup(unsigned long) + 0x3B
AddLabelsToGraph + 0x21E
gs::GrapeInstance::addLabelsToGraph(gs::rpc::GSParams const&) + 0x927
gs::GrapeInstance::OnReceive(std::shared_ptr<gs::CommandDetail>) + 0x1145
gs::Dispatcher::processCmd(std::shared_ptr<gs::CommandDetail>) + 0xEA
gs::Dispatcher::publisherLoop() + 0x246
std::error_code::default_error_condition() const + 0x33
pthread_condattr_setpshared + 0x513
__xmknodat + 0x230
VineyardError occurred on worker 1: VineyardError occurred on worker 1: /opt/graphscope/include/graphscope/core/loader/arrow_fragment_loader.h:422: operator() -> Arrow error: IOError: Failed to open local file '/Users'. Detail: [errno 2] No such file or directory
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}::operator()() const + 0x537
vineyard::sync_gs_error<gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}&>(grape::CommSpec const&, gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}&)::{lambda()#2}::operator()() const + 0x3B
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int) + 0x265
vineyard::sync_gs_error<gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables()::{lambda()#2}&>(grape::CommSpec const&, gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables()::{lambda()#2}&)::{lambda()#2}::operator()() const + 0x50
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables() + 0x37A
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexEdgeTables() + 0x2D1
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::AddLabelsToFragment(unsigned long) + 0x52
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::AddLabelsToFragmentAsFragmentGroup(unsigned long) + 0x3B
AddLabelsToGraph + 0x21E
gs::GrapeInstance::addLabelsToGraph(gs::rpc::GSParams const&) + 0x927
gs::GrapeInstance::OnReceive(std::shared_ptr<gs::CommandDetail>) + 0x1145
gs::Dispatcher::processCmd(std::shared_ptr<gs::CommandDetail>) + 0xEA
gs::Dispatcher::subscriberLoop() + 0x7E
std::error_code::default_error_condition() const + 0x33
pthread_condattr_setpshared + 0x513
__xmknodat + 0x230
"
debug_error_string = "UNKNOWN:Error received from peer ipv4:192.168.22.227:56458 {created_time:"2023-07-20T07:32:01.200169044+00:00", grpc_status:13, grpc_message:"VineyardError occurred on worker 0: VineyardError occurred on worker 0: /opt/graphscope/include/graphscope/core/loader/arrow_fragment_loader.h:422: operator() -> Arrow error: IOError: Failed to open local file \'/Users\'. Detail: [errno 2] No such file or directory\ngs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}::operator()() const + 0x537\nvineyard::sync_gs_error<gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}&>(grape::CommSpec const&, gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}&)::{lambda()#2}::operator()() const + 0x3B\ngs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int) + 0x265\nvineyard::sync_gs_error<gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables()::{lambda()#2}&>(grape::CommSpec const&, gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables()::{lambda()#2}&)::{lambda()#2}::operator()() const + 0x50\ngs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables() + 0x37A\ngs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexEdgeTables() + 0x2D1\ngs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::AddLabelsToFragment(unsigned long) + 0x52\ngs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::AddLabelsToFragmentAsFragmentGroup(unsigned long) + 0x3B\nAddLabelsToGraph + 0x21E\ngs::GrapeInstance::addLabelsToGraph(gs::rpc::GSParams const&) + 0x927\ngs::GrapeInstance::OnReceive(std::shared_ptr<gs::CommandDetail>) + 0x1145\ngs::Dispatcher::processCmd(std::shared_ptr<gs::CommandDetail>) + 0xEA\ngs::Dispatcher::publisherLoop() + 0x246\nstd::error_code::default_error_condition() const + 0x33\npthread_condattr_setpshared + 0x513\n__xmknodat + 0x230\n\nVineyardError occurred on worker 1: VineyardError occurred on worker 1: /opt/graphscope/include/graphscope/core/loader/arrow_fragment_loader.h:422: operator() -> Arrow error: IOError: Failed to open local file \'/Users\'. Detail: [errno 2] No such file or directory\ngs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}::operator()() const + 0x537\nvineyard::sync_gs_error<gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}&>(grape::CommSpec const&, gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int)::{lambda()#3}&)::{lambda()#2}::operator()() const + 0x3B\ngs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::loadVertexTables(std::vector<std::shared_ptr<gs::detail::Vertex>, std::allocator<std::shared_ptr<gs::detail::Vertex> > > const&, int, int) + 0x265\nvineyard::sync_gs_error<gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables()::{lambda()#2}&>(grape::CommSpec const&, gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables()::{lambda()#2}&)::{lambda()#2}::operator()() const + 0x50\ngs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexTables() + 0x37A\ngs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::LoadVertexEdgeTables() + 0x2D1\ngs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::AddLabelsToFragment(unsigned long) + 0x52\ngs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::AddLabelsToFragmentAsFragmentGroup(unsigned long) + 0x3B\nAddLabelsToGraph + 0x21E\ngs::GrapeInstance::addLabelsToGraph(gs::rpc::GSParams const&) + 0x927\ngs::GrapeInstance::OnReceive(std::shared_ptr<gs::CommandDetail>) + 0x1145\ngs::Dispatcher::processCmd(std::shared_ptr<gs::CommandDetail>) + 0xEA\ngs::Dispatcher::subscriberLoop() + 0x7E\nstd::error_code::default_error_condition() const + 0x33\npthread_condattr_setpshared + 0x513\n__xmknodat + 0x230\n\n"}"
>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/graphscope/.local/lib/python3.10/site-packages/gscoordinator/coordinator.py", line 311, in _RunStep
head, bodies = self._operation_executor.run_on_analytical_engine(
File "/home/graphscope/.local/lib/python3.10/site-packages/gscoordinator/monitor.py", line 191, in runOnAnalyticalEngineWarp
res = func(instance, dag_def, dag_bodies, loader_op_bodies)
File "/home/graphscope/.local/lib/python3.10/site-packages/gscoordinator/op_executor.py", line 169, in run_on_analytical_engine
response_head, response_bodies = self.run_step(dag_def, dag_bodies)
File "/home/graphscope/.local/lib/python3.10/site-packages/gscoordinator/op_executor.py", line 116, in run_step
raise AnalyticalEngineInternalError(msg)
graphscope.framework.errors.AnalyticalEngineInternalError: VineyardError occurred on worker 0: VineyardError occurred on worker 0: /opt/graphscope/include/graphscope/core/loader/arrow_fragment_loader.h:422: operator() -> Arrow error: IOError: Failed to open local file '/Users'. Detail: [errno 2] No such file or di ... [truncated]
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::AddLabelsToFragment(unsigned long) + 0x52
gs::ArrowFragmentLoader<long, unsigned long, vineyard::ArrowVertexMap>::AddLabelsToFragmentAsFragmentGroup(unsigned long) + 0x3B
AddLabelsToGraph + 0x21E
gs::GrapeInstance::addLabelsToGraph(gs::rpc::GSParams const&) + 0x927
gs::GrapeInstance::OnReceive(std::shared_ptr<gs::CommandDetail>) + 0x1145
gs::Dispatcher::processCmd(std::shared_ptr<gs::CommandDetail>) + 0xEA
gs::Dispatcher::publisherLoop() + 0x246
std::error_code::default_error_condition() const + 0x33
pthread_condattr_setpshared + 0x513
__xmknodat + 0x230
ââââââââââââââââââââââ Traceback (most recent call last) âââââââââââââââââââââââŪ
â /Users/rahulvramesh/workspace/try/graphscope-k8/main.py:10 in <module> â
â â
â 7 graphscope_session = graphscope.session(cluster_type='k8s', show_log=T â
â 8 â
â 9 # Load the dataset â
â âą 10 g = load_ogbn_mag(graphscope_session) â
â 11 â
â 12 # Process the graph â
â 13 # Here we create a simple PageRank application as an example â
â â
â /Users/rahulvramesh/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/dataset/ogbn_mag.py:79 in load_ogbn_mag â
â â
â 76 â â
â 77 â graph = sess.g() â
â 78 â graph = ( â
â âą 79 â â graph.add_vertices(os.path.join(prefix, "paper.csv"), "paper") â
â 80 â â .add_vertices(os.path.join(prefix, "author.csv"), "author") â
â 81 â â .add_vertices(os.path.join(prefix, "institution.csv"), "instit â
â 82 â â .add_vertices(os.path.join(prefix, "field_of_study.csv"), "fie â
â â
â /Users/rahulvramesh/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/framework/graph.py:1118 in add_vertices â
â â
â 1115 â def add_vertices(self, vertices, label="_", properties=None, vid_ â
â 1116 â â if not self.loaded(): â
â 1117 â â â raise RuntimeError("The graph is not loaded") â
â âą 1118 â â return self._session._wrapper( â
â 1119 â â â self._graph_node.add_vertices(vertices, label, properties â
â 1120 â â ) â
â 1121 â
â â
â /Users/rahulvramesh/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/client/session.py:950 in _wrapper â
â â
â 947 â â
â 948 â def _wrapper(self, dag_node): â
â 949 â â if self.eager(): â
â âą 950 â â â return self.run(dag_node) â
â 951 â â return dag_node â
â 952 â â
â 953 â def run(self, fetches): â
â â
â /Users/rahulvramesh/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/client/session.py:986 in run â
â â
â 983 â â gc.collect() â
â 984 â â â
â 985 â â with self._lock: â
â âą 986 â â â return self.run_fetches(fetches) â
â 987 â â
â 988 â def run_fetches(self, fetches): â
â 989 â â """Run operations of `fetches` without the session lock.""" â
â â
â /Users/rahulvramesh/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/client/session.py:996 in run_fetches â
â â
â 993 â â â raise RuntimeError("Session disconnected.") â
â 994 â â fetch_handler = _FetchHandler(self.dag, fetches) â
â 995 â â try: â
â âą 996 â â â response = self._grpc_client.run(fetch_handler.targets) â
â 997 â â except FatalError: â
â 998 â â â self.close() â
â 999 â â â raise â
â â
â /Users/rahulvramesh/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/client/rpc.py:98 in run â
â â
â 95 â â return str(self) â
â 96 â â
â 97 â def run(self, dag_def): â
â âą 98 â â return self._run_step_impl(dag_def) â
â 99 â â
â 100 â def fetch_logs(self): â
â 101 â â if self._logs_fetching_thread is None: â
â â
â /Users/rahulvramesh/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/client/utils.py:156 in with_grpc_catch â
â â
â 153 â â retries = 0 â
â 154 â â while True: â
â 155 â â â try: â
â âą 156 â â â â return fn(*args, **kwargs) â
â 157 â â â except grpc.RpcError as exc: â
â 158 â â â â code = exc.code() â
â 159 â â â â max_retries = GRPC_MAX_RETRIES_BY_CODE.get(code) â
â â
â /Users/rahulvramesh/miniconda3/envs/graphscope-k8/lib/python3.9/site-package â
â s/graphscope/client/rpc.py:198 in _run_step_impl â
â â
â 195 â â â â if isinstance(exc, tuple): â
â 196 â â â â â raise exc[0](*exc[1:]) â
â 197 â â â â else: â
â âą 198 â â â â â raise exc â
â 199 â â return response â
â 200 â â
â 201 â def create_analytical_instance(self): â
â°âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââŊ
AnalyticalEngineInternalError: VineyardError occurred on worker 0: VineyardError
occurred on worker 0:
/opt/graphscope/include/graphscope/core/loader/arrow_fragment_loader.h:422:
operator() -> Arrow error: IOError: Failed to open local file '/Users'. Detail:
[errno 2] No such file or di ... [truncated]
WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(FileNotFoundError(2, 'No such file or directory'))': /api/v1/namespaces/gs-jubdcn/services/coordinator-nujxgm
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(FileNotFoundError(2, 'No such file or directory'))': /api/v1/namespaces/gs-jubdcn/services/coordinator-nujxgm
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(FileNotFoundError(2, 'No such file or directory'))': /api/v1/namespaces/gs-jubdcn/services/coordinator-nujxgm
Exception ignored in: <function KubernetesClusterLauncher.__del__ at 0x136e50dc0>
Traceback (most recent call last):
File "/Users/rahulvramesh/miniconda3/envs/graphscope-k8/lib/python3.9/site-packages/graphscope/deploy/kubernetes/cluster.py", line 149, in __del__
File "/Users/rahulvramesh/miniconda3/envs/graphscope-k8/lib/python3.9/site-packages/graphscope/deploy/kubernetes/cluster.py", line 566, in stop
File "/Users/rahulvramesh/miniconda3/envs/graphscope-k8/lib/python3.9/site-packages/graphscope/deploy/kubernetes/utils.py", line 394, in delete_kubernetes_object
File "/Users/rahulvramesh/miniconda3/envs/graphscope-k8/lib/python3.9/re.py", line 210, in sub
ImportError: sys.meta_path is None, Python is likely shutting down
/opt/graphscope/include/graphscope/core/loader/arrow_fragment_loader.h:422: operator() -> Arrow error: IOError: Failed to open local file '/Users'. Detail:
Looks like you are using local files to load graphs. On Kubernetes, those data files must be available inside the pods.
@rahulvramesh
1) With 'nodePort': yes, to reach the internal IP, you should be running the script(client) on the same network, and local execution won't work.
2) With 'LoadBalancer', make sure you have the AWS Load Balancer Controller deployed on your cluster
3) From the error above, you need to mount a volume for data loading inside the pod
/opt/graphscope/include/graphscope/core/loader/arrow_fragment_loader.h:422: operator() -> Arrow error: IOError: Failed to open local file '/Users'.
Here are two ways:
1) Use the with_dataset
parameter to mount our built-in datasets
with_dataset: Create a container and mount aliyun demo dataset bucket to the path
/dataset
.>> sess = graphscope.session(cluster_type="k8s", with_dataset=True, k8s_service_type='LoadBalancer') >> g = load_ogbn_mag(sess, '/dataset/ogbn_mag_small') >> # project property graph 'g' to a simple graph to run pagerank >> simple_g = g.project(vertices={"paper": []}, edges={"cites": []}) >> pr = graphscope.pagerank(simple_g, delta=0.85, max_round=10) >> # print the result >> pr.to_dataframe(selector={'node': 'r'})
2) Or you can use k8s_volumes parameter to mount a volume yourself, and load your own datasets
Describe the bug
trying to launch a session using above code but am getting
Expected behavior launch and connect to session
Environment (please complete the following information):