|
@@ -55,18 +55,12 @@ public class SerializationFactory extends Configured {
|
|
|
*/
|
|
|
public SerializationFactory(Configuration conf) {
|
|
|
super(conf);
|
|
|
- if (conf.get(CommonConfigurationKeys.IO_SERIALIZATIONS_KEY).equals("")) {
|
|
|
- LOG.warn("Serialization for various data types may not be available. Please configure "
|
|
|
- + CommonConfigurationKeys.IO_SERIALIZATIONS_KEY
|
|
|
- + " properly to have serialization support (it is currently not set).");
|
|
|
- } else {
|
|
|
- for (String serializerName : conf.getTrimmedStrings(
|
|
|
- CommonConfigurationKeys.IO_SERIALIZATIONS_KEY, new String[] {
|
|
|
- WritableSerialization.class.getName(),
|
|
|
- AvroSpecificSerialization.class.getName(),
|
|
|
- AvroReflectSerialization.class.getName() })) {
|
|
|
- add(conf, serializerName);
|
|
|
- }
|
|
|
+ for (String serializerName : conf.getTrimmedStrings(
|
|
|
+ CommonConfigurationKeys.IO_SERIALIZATIONS_KEY,
|
|
|
+ new String[]{WritableSerialization.class.getName(),
|
|
|
+ AvroSpecificSerialization.class.getName(),
|
|
|
+ AvroReflectSerialization.class.getName()})) {
|
|
|
+ add(conf, serializerName);
|
|
|
}
|
|
|
}
|
|
|
|