Closed linyigang2022 closed 1 year ago
看这个现象好像是qrs容器没拉起来,你是单机模式吗 可以参考这篇文档大概定位一下,看看qrs有没有拉起来,如果没有可以看sql-appmaster日志的hippo.log里面有没有相关信息https://github.com/alibaba/havenask/blob/main/docs/havenask_docs/Hape%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E4%B8%8E%E6%8E%92%E6%9F%A5.md
这个是wsl拉起来的还是linux拉起来的?
是单机模式
这个是使用阿里云服务器拉起来的
确实没看到qrs容器(docker ps没看到带qrs的容器),我按照文档操作,使用hape gs查看了bs,havenask,swift的状态都是running,似乎没什么问题;我在havenask-sql-local_appmaster目录下查看了hippo.log,里面的信息如下,看起来也没啥问题,这是不是可以确定是qrs没有拉起来呢,该如何解决呢,需要手动拉起吗? [2023-09-13 12:56:29.111066] [INFO] [154,aios/hippo/src/sdk/default/DefaultProcessLauncher.cpp -- launch():59] [begin launch] [2023-09-13 12:56:29.111070] [INFO] [154,aios/hippo/src/sdk/default/DefaultProcessLauncher.cpp -- launch():71] [end launch] [2023-09-13 12:56:30.110687] [INFO] [154,aios/hippo/src/sdk/default/DefaultSlotAssigner.cpp -- assign():69] [assign success] [2023-09-13 12:56:30.110721] [INFO] [154,aios/hippo/src/sdk/BasicMasterDriver.cpp -- workLoop():435] [allocate success] [2023-09-13 12:56:30.110726] [INFO] [154,aios/hippo/src/sdk/default/DefaultProcessLauncher.cpp -- launch():59] [begin launch] [2023-09-13 12:56:30.110730] [INFO] [154,aios/hippo/src/sdk/default/DefaultProcessLauncher.cpp -- launch():71] [end launch] [2023-09-13 12:56:31.109856] [INFO] [154,aios/hippo/src/sdk/default/DefaultSlotAssigner.cpp -- assign():69] [assign success] [2023-09-13 12:56:31.109890] [INFO] [154,aios/hippo/src/sdk/BasicMasterDriver.cpp -- workLoop():435] [allocate success]
hape gs havenask虽然是running,但是里面没有qrs是吧 hipppo.log有没有docker run命令启动qrs相关的日志,以及命令输出是什么?
顺便问一下你用的是root账号跑的还是普通账号跑的
是的,hape gs havenask的结果如图 hippo.log无法搜索到任何和qrs相关的信息,我说的hippo.log是指 /root/havenask-sql-local_appmaster/hippo.log。 我是用root账号跑的,会有影响吗,是否需要切换成普通账号跑一下
可以先试一下普通账号,root账号我们后续确认一下
好的,谢谢,我试一下
我使用普通账号,能够运行了,但是还有一个小问题,我用readme里的示例语句创建表并插入数据,但是查询出来后,title和subject这两个文本列都没有数据,这是在哪里出现了问题呢,求助
这个是因为搜索引擎使用上和sql并不完全一致导致的 参见文档https://github.com/alibaba/havenask/blob/main/docs/havenask_docs/Hape%E5%8D%95%E6%9C%BA%E6%A8%A1%E5%BC%8F.md
谢谢,确实有效!
使用runtime镜像创建表,命令是:hape create table -t in1 -p 1 -s /ha3_install/example/cases/normal/in0_schema.json -f /ha3_install/example/data/test.data,此时控制台输出如下: ............. [2023-09-13 13:19:47,902] [INFO] [swift.py:_try_add_topic:152]: Swift Topic status is not ready [2023-09-13 13:19:47,903] [INFO] [retry.py:retry:13]: Check [swift topic created and ready] succeed [2023-09-13 13:19:47,903] [INFO] [hape_cluster.py:create_table:138]: Succeed to create swift topic in2 [2023-09-13 13:19:47,903] [INFO] [hape_cluster.py:create_table:141]: DIRECT type table need to be checked ready [2023-09-13 13:19:47,904] [INFO] [retry.py:retry:8]: Begin to check [Table in2 ready in all qrs] [2023-09-13 13:19:47,906] [INFO] [retry.py:retry:8]: Begin to check [qrs achieve target replicas] [2023-09-13 13:19:47,908] [INFO] [suez.py:check_qrs_replicas:128]: Qrs expect to have 1 replicas started, now 0 [2023-09-13 13:19:47,909] [INFO] [retry.py:retry:11]: Check [qrs achieve target replicas] not succeed by now, retry 0/50, wait up to 250 seconds [2023-09-13 13:19:52,917] [INFO] [suez.py:check_qrs_replicas:128]: Qrs expect to have 1 replicas started, now 0 [2023-09-13 13:19:52,918] [INFO] [retry.py:retry:11]: Check [qrs achieve target replicas] not succeed by now, retry 1/50, wait up to 250 seconds 在retry次数达到50次时仍未成功。 另外,使用hape validate命令的输出如下,所以环境应该是已正常启动: ............ [2023-09-13 14:50:43,105] [INFO] [template_config.py:render:78]: Render template config [/ha3_install/hape_conf/default] to [/root/.hape_local_templates_store/default.9b7ce6fb0007bd77ace83759739ac68b] [2023-09-13 14:50:43,107] [INFO] [infra_manager.py:start_zookeeper:27]: Try to connect to domainZkRoot zfs://172.26.8.77:2181/havenask [2023-09-13 14:50:43,141] [INFO] [infra_manager.py:start_zookeeper:31]: DomainZkRoot zfs://172.26.8.77:2181/havenask can be visited [2023-09-13 14:50:43,159] [INFO] [validate_cmd.py:validate_single:52]: Begin to validate single container [2023-09-13 14:50:43,906] [INFO] [remote_docker_container_service.py:create_container:28]: Begin to create container havenask-validate-single in 172.26.8.77 [2023-09-13 14:50:44,090] [INFO] [remote_docker_container_service.py:check_container:20]: Container havenask-validate-single is started in 172.26.8.77 [2023-09-13 14:50:44,091] [WARNING] [remote_docker_container_service.py:create_container:30]: Container havenask-validate-single already exists in 172.26.8.77, will stop it [2023-09-13 14:50:44,091] [INFO] [remote_docker_container_service.py:stop_container:140]: Stop container havenask-validate-single in 172.26.8.77 [2023-09-13 14:50:45,649] [INFO] [remote_docker_container_service.py:check_container:20]: Container havenask-validate-single is started in 172.26.8.77 [2023-09-13 14:50:45,650] [INFO] [remote_docker_container_service.py:create_container:63]: Succeed to create container havenask-validate-single [2023-09-13 14:50:45,650] [INFO] [validate_cmd.py:validate_single:90]: Succeed to validate single container [2023-09-13 14:50:45,651] [INFO] [validate_cmd.py:validate_schedule:95]: Begin to schedule from 172.26.8.77 to 172.26.8.77 [2023-09-13 14:50:46,271] [INFO] [validate_cmd.py:validate_schedule:111]: Succeed to schedule from 172.26.8.77 to 172.26.8.77 [2023-09-13 14:50:46,272] [INFO] [validate_cmd.py:validate:48]: Succeed to validate basic hape enviroment 请问我该如何解决这个问题呢?