Member since
06-23-2016
4
Posts
0
Kudos Received
0
Solutions
06-23-2016
10:49 AM
I have wrote a hard code in class org.apache.hadoop.hive.serde2.OpenCSVSerde, but it doesn't work when I replace the old jar "/usr/hdp/current/hive-client/lib/hive-serde-1.2.1.2.3.0.0-2557.jar". what should I do to make the new jar work? @Override
public Object deserialize(final Writable blob) throws SerDeException {
Text rowText = (Text) blob;
String text = rowText.toString().replace("\\N","\"\"");
CSVReader csv = null;
try {
csv = newReader(new CharArrayReader(text.toCharArray()), separatorChar,
quoteChar, escapeChar);
... View more
06-23-2016
10:43 AM
when uploading a CSV file containing "\N", I simply get the string value "N" instead of NULL in hive is there someone help to solve it ? https://github.com/ogrodnek/csv-serde/issues/15 , when uploading a CSV file containing "\N", I simply get the string value "N" instead of NULL in hive is there someone to solve it? https://github.com/ogrodnek/csv-serde/issues/15
... View more