整個文件這是我讀了包含HL7消息,並使用哈皮迭代器遍歷它們(從http://hl7api.sourceforge.net)文件 File file = new File("/home/training/Documents/msgs.txt");
InputStream is = new FileInputStream(file);
is = new BufferedInputStream(is
我試圖通過Hapi解析HL7消息在map-reduce函數中我得到了EncodingNotSupportedException當我運行地圖任務時。 我試圖添加\ n或\ r到每個段的結尾,但我面臨着同樣的錯誤。 消息保存在文本文件中並上傳到HDFS。我應該需要補充的東西,這是我的代碼 String v = value.toString();
InputStream is = new Strin