我们对 Hadoop 和 Hive 非常陌生。我们创建了普通的 Hive 表并加载了数据。但是当我们使用 JSON 格式在 Hive 中创建表时,我们遇到了问题。我也添加了 serde jar。我们收到以下错误:
create table airline_tables(Airline string,Airlineid string,Sourceairport string,Sourceairportid string,Destinationairport string,`Destinationairportid string,Codeshare string,Stop string,Equipment String)` ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.serde2.JsonSerde'`location '/home/hduser/part-000';`
FAILED: Error in metadata: java.lang.NullPointerException
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
位置是 HDFS。我正在使用 Hive-0.9.0 和 hadoop 1.0.1。