_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
FrontPage › WebHDFS

#

Windows 殊 HDFS襦 襦
curl -i -X PUT -L -T "c:\temp\list.txt" "http://webhdfs:50070/webhdfs/v1/user/hive/warehouse/gamelog/list.txt?op=CREATE&user.name=hdfs&overwrite=true"

1 #

cluster1 1螳襷 朱 覦蠑語 螳覃伎 一危郁 碁.
webhdfs襯 伎 10覿襷 豢螳 一危磯ゼ 螳語り 矩.

hdfs /tmp/test.txt t1 一危
{"id":1,"nm":"aaa"}
{"id":2,"nm":"aaaa"}
{"id":3,"nm":"aaaaa"}
{"id":4,"nm":"aaaa"}
{"id":5,"nm":"aaaaa"}
{"id":6,"nm":"aaa"}
{"id":7,"nm":"aaa"}
{"id":8,"nm":"aa"}
{"id":9,"nm":"a"}
{"id":10,"nm":"aa"}
t1 203 byte.

hdfs /tmp/test.txt t2 一危
{"id":1,"nm":"aaa"}
{"id":2,"nm":"aaaa"}
{"id":3,"nm":"aaaaa"}
{"id":4,"nm":"aaaa"}
{"id":5,"nm":"aaaaa"}
{"id":6,"nm":"aaa"}
{"id":7,"nm":"aaa"}
{"id":8,"nm":"aa"}
{"id":9,"nm":"a"}
{"id":10,"nm":"aa"}
{"id":11,"nm":"aa"} ---> 蠍磯 豢螳. 
{"id":12,"nm":"aa"}
{"id":13,"nm":"aa"}

solution
offset 覃 .

t1
wget "http://192.168.0.10:50070/webhdfs/v1/tmp/test.txt?op=OPEN&offset=0" -O test1.txt

t2
wget "http://192.168.0.10:50070/webhdfs/v1/tmp/test.txt?op=OPEN&offset=204" -O test2.txt

hadoop metadata螳 伎 .
蠍 蠍郁鍵..
企: : るジ讓曙 襦螻豺 企Ν 譯殊語. 襦螻豺
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2021-05-13 17:16:26

襷 願 蟇企 るΜ手 螳. るΜ螳 朱 轟 蟇企 讌 蟾.