0

次のような構造を持つHadoop上のxmlファイルをどのように解析しますか:

<row Id="2292" PostTypeId="2" ParentId="2284" CreationDate="2008-08-05T13:28:06.700" Score="0" ViewCount="0" Body="&lt;p&gt;The first thing you should do is contact the main people who run the open source project. Ask them if it is ok to contribute to the code and go from there.&lt;/p&gt;&#xD;&#xA;&#xD;&#xA;&lt;p&gt;Simply writing your improved code and then giving it to them may result in your code being rejected.&lt;/p&gt;" OwnerUserId="383" LastActivityDate="2008-08-05T13:28:06.700" />

注: コードを書きましたが、正しく動作しません。新鮮なアプローチが必要...

前もって感謝します...

4

1 に答える 1

1

XMLInputFormatを見てください。少し変更する必要があるかもしれません。

于 2013-10-20T11:32:03.853 に答える