我可以更改hive的默认字段分隔符,但我找不到更改默认行分隔符的方法,我有许多文件,其数据的行分隔符是 '\u0002' ,如果我通过覆盖 next() 函数重写hive的InputFormat:

@Override
        public boolean next(LongWritable key, Text value) throws IOException {
            while (reader.next(key, text)) {                
                String strReplace = text.toString().toLowerCase()
                        .replaceAll("\u0002", "\n");
                Text txtReplace = new Text();
                txtReplace.set(strReplace);
                value.set(txtReplace.getBytes(), 0, txtReplace.getLength());
                return true;
            }
            return false;
        }

但它没有用,所以如果还有其他方法吗?