我已經使用完整模式在流式數據幀上應用聚合。爲了在本地保存數據幀,我實現了foreach接收器。我能夠以文本形式保存數據幀。但我需要將它保存爲鑲木地板格式。 val writerForText = new ForeachWriter[Row] {
var fileWriter: FileWriter = _
override def process(value: Row): U
我的基礎數據使用HIVE輸出格式(org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat) 嘗試使用以讀取該數據寫入本地Java地圖降低 byte[] b = value.getBinary(value.getType().getFieldIndex(field), 0).getBytes();
HiveDecimal hd