[Bug] 执行start-all.sh后无法启动集群问题
- Lenguaje dominante
- Java
- Estrellas
- 6.4k
- Forks
- 1.2k
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 115
Descripción
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.
### Version
2.0.10,3C3D集群
### Describe the bug and provide the minimal reproduce step
发现start-all.sh没办法启动集群,排查是ssh到目标主机后找不到java环境变量。我已确认配置了环境变量,在`/etc/profile`,`/etc/bashrc`,`~/.bashrc`,`~/.profile`都加上了环境变量,都执行了`source xxx`,服务器也尝试重启还是提示找不到java。使用ssh测试结果如下:
最后通过在`start-all.sh`文件中的`bash`命令后加上`-lc`解决了该问题,希望能在官方脚本上加上。
### What did you expect to see?
正常启动集群
### What did you see instead?
root@n1:/opt/iotdb# ./sbin/cluster/start-all.sh
The system starts the ConfigNode And DataNode of n1
The system starts the ConfigNode And DataNode of n2
The system starts the ConfigNode And DataNode of n3
Cluster startup complete ...
实际上没启动
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
Guía de contribución
Línea de trabajo
Comienza con sbin/cluster/start-all.sh y reproduce el problema en la configuración de clúster 3C3D documentada, centrándote en la invocación remota de bash y en cómo recibe el entorno de Java. Confirma que el script puede encontrar Java mediante SSH y que los ConfigNodes y DataNodes se inician correctamente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- bash, java
- Área
- distributed-systems
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Tranquilo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 78/100