我有一个在Hadoop上的CSV文件和一个Hive表,现在我想将该CSV文件加载到这个Hive表中。
我使用了以下命令:LOAD DATA local 'path/to/csv/file' overwrite INTO TABLE tablename;
但是遇到了如下错误:
Error in .verify.JDBC.result(r, "Unable to retrieve JDBC result set for ", :
Unable to retrieve JDBC result set for LOAD DATA local
'path/to/csv/file' overwrite INTO TABLE tablename
(Error while processing statement: FAILED:
ParseException line 1:16 missing INPATH at ''path/tp csv/file'' near '<EOF>'
)
注意:我正在使用RJDBC连接在R中尝试此操作。