我正在嘗試使用flink將實木複合地板文件編寫爲實木複合地板。 我正在使用以下代碼並獲取錯誤。Flink轉換爲實木複合地板錯誤
val parquetFormat = new HadoopOutputFormat[Void, String](new AvroParquetOutputFormat, job)
FileOutputFormat.setOutputPath(job, new Path(outputPath))
我得到以下的生成錯誤。有人可以幫忙嗎?
類型不匹配;發現:parquet.avro.AvroParquetOutputFormat 必需: org.apache.hadoop.mapreduce.OutputFormat [Void,String] ingestion.scala/flink-scala/src/main/scala/com/sc/edl/flink line 75 Scala問題
謝謝Fabian,很抱歉,但我對此有所瞭解,請您提供正確的語法或錯誤信息 – Niki
我擴展了我的答案 –