由于在Hive1中使用的RcFile格式存储并且没有指定Serde,当把数据文件拷贝的Hive2的目录下查询时发现数据错乱
原因:
hive1不指定Serde默认采用 org.apache.hadoop.hive.serde2.columnar.LazyBinaryColumnarSerDe
hive2不指定Serde默认采用 org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe
只需要建表时指定对序列化类即可。
由于在Hive1中使用的RcFile格式存储并且没有指定Serde,当把数据文件拷贝的Hive2的目录下查询时发现数据错乱
原因:
hive1不指定Serde默认采用 org.apache.hadoop.hive.serde2.columnar.LazyBinaryColumnarSerDe
hive2不指定Serde默认采用 org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe
只需要建表时指定对序列化类即可。