HDFS のパス /user/admin/foo.txt に単純なファイルを作成しました
このファイルの内容を Hue で見ることができます。
コマンドの発行方法
curl -i http://namenode:50070/webhdfs/v1/user/admin/foo.txt?op=OPEN
私は応答を得る
HTTP/1.1 307 TEMPORARY_REDIRECT
Cache-Control: no-cache
Expires: Tue, 24 Nov 2015 16:20:15 GMT
Date: Tue, 24 Nov 2015 16:20:15 GMT
Pragma: no-cache
Expires: Tue, 24 Nov 2015 16:20:15 GMT
Date: Tue, 24 Nov 2015 16:20:15 GMT
Pragma: no-cache
Location: http://datanode:50075/webhdfs/v1/user/admin/foo.txt?op=OPEN&namenoderpcaddress=nameservice1&offset=0
Content-Type: application/octet-stream
Content-Length: 0
Server: Jetty(6.1.26.cloudera.4)
content-length が 0 なのはなぜですか?? これがファイルの内容をリストすることを望んでいました。