hdfs クラスター (hadoop 2.7.1) があり、namenode が 1 つ、セカンダリ namenode が 1 つ、datanode が 3 つあります。
webhdfs を有効にしてテストすると、データノードとして構成されていない "localhost:50075" に常にリダイレクトされることがわかりました。
csrd@secondarynamenode:~/lybica-hdfs-viewer$ curl -i -L "http://10.56.219.30:50070/webhdfs/v1/demo.zip?op=OPEN"
HTTP/1.1 307 TEMPORARY_REDIRECT
Cache-Control: no-cache
Expires: Tue, 01 Dec 2015 03:29:21 GMT
Date: Tue, 01 Dec 2015 03:29:21 GMT
Pragma: no-cache
Expires: Tue, 01 Dec 2015 03:29:21 GMT
Date: Tue, 01 Dec 2015 03:29:21 GMT
Pragma: no-cache
Location: http://localhost:50075/webhdfs/v1/demo.zip?op=OPEN&namenoderpcaddress=10.56.219.30:9000&offset=0
Content-Type: application/octet-stream
Content-Length: 0
Server: Jetty(6.1.26)
curl: (7) Failed to connect to localhost port 50075: Connection refused
etc/hadoop/slaves は次のように構成されています。
10.56.219.32
10.56.219.33
10.56.219.34
これに関する設定はありますか?
ありがとう!