Description
- MULTITON only allows one instance per thread, a second Unit Test fails (That seems like it would also cause problems when MR's JVM reuse feature is enabled)
- whole point is so that we can have a static `KuduTableOutputFormat.getKuduTable` to have this `getTableFromContext` method in the KuduTableMapReduceUtil
- `getTableFromContext` is used by two sample mapper implementations in kudu-client-tools, the importcsvmapper and importparquetmapper:
- Insert insert = this.table.newInsert();
PartialRow row = insert.getRow();
- Insert insert = this.table.newInsert();
- the whole point of having an OutputFormat is to not have to worry how your data gets written when you work on the mapper/reducer
- You write to the OutputFormat not get it’s internals and write yourself
To Do: remove those static methods and think about how importparquetmapper and csvmapper can properly use a KuduTableOutputFormat without having to rely on its internals
remove the Multiton if it's not needed any more.
Attachments
Issue Links
- relates to
-
KUDU-3142 Deprecate and remove kudu-mapreduce integration
- Resolved