stackabletech / stackabletech/hdfs-operator
NameNode UI only listens on HOSTNAME:9870
Nessuno ha ancora preso questa issue.
- Lingua principale
- Rust
- Stelle
- 53
- Fork
- 9
- Merge medio
- 1g 13h
- PR unite (30g)
- 10
Descrizione
The UI of the NameNode is only accessible via http://HOSTNAME:9870/ but not localhost or 127.0.0.1.
Port-forwarding with kubectl does not work and proxies, like the oauth-proxy, must specify the hostname.
NameNode logs:
INFO hdfs.DFSUtil (DFSUtil.java:httpServerTemplateForNNAndJN(1716)) - Starting Web-server for hdfs at: http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default.default.svc.cluster.local:9870
INFO http.HttpServer2 (HttpServer2.java:bindListener(1355)) - Jetty bound to port 9870
Trying to access the UI on 127.0.0.1:
$ kubectl exec -ti simple-hdfs-namenode-default-0 -c namenode -- curl -L -I http://127.0.0.1:9870/
curl: (7) Failed to connect to 127.0.0.1 port 9870: Connection refused
On the other hand, the UI of the DataNode listens on 0.0.0.0:
INFO web.DatanodeHttpServer (DatanodeHttpServer.java:start(318)) - Listening HTTP traffic on /0.0.0.0:9864
and can be accessed via 127.0.0.1:
$ kubectl exec -ti simple-hdfs-datanode-default-0 -c datanode -- curl -L -I http://127.0.0.1:9864/
HTTP/1.1 302 Found
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con la configurazione HTTP di NameNode relativa a DFSUtil.httpServerTemplateForNNAndJN e HttpServer2.bindListener, quindi confrontala con il comportamento di DataNode riportato da DatanodeHttpServer.start. Riproduci le richieste a 127.0.0.1:9870 e al hostname del servizio e considera completato l’issue quando la UI di NameNode accetta l’accesso tramite localhost e kubectl port-forwarding senza richiedere l’hostname del pod.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- kubernetes
- Ambito
- infrastructure, networking
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100