apache / apache/iotdb

[Bug] 执行start-all.sh后无法启动集群问题

Aperta Adatta ai principianti
#18,462 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
6.4k
Fork
1.2k
Merge medio
1g 23h
PR unite (30g)
115

Descrizione

### 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测试结果如下:

Image

最后通过在`start-all.sh`文件中的`bash`命令后加上`-lc`解决了该问题,希望能在官方脚本上加上。

Image

### 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!

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia da sbin/cluster/start-all.sh e riproduci il problema sulla configurazione del cluster 3C3D documentata, concentrandoti sull’invocazione remota di bash e su come riceve l’ambiente Java. Verifica che lo script riesca a trovare Java tramite SSH e che i ConfigNodes e i DataNodes si avviino effettivamente correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
bash, java
Ambito
distributed-systems
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
78/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.