1
我想從Windows加載一個Hive表使用文件。但我收到以下錯誤:從Windows機器加載Hive表(加載數據本地inpath)
java.sql.SQLException: Error while compiling statement: FAILED: IllegalArgumentException
java.net.URISyntaxException: Expected scheme-specific part at index 2: C:
我正在使用Talend ETL工具來處理文件。以下是由Talend生成的代碼:
String path_tHiveLoad_1 = "file:///C:/employee.txt";
String tablename_tHiveLoad_1 = "test.employee";
java.sql.Statement stmt_tHiveLoad_1 = conn_tHiveLoad_1
.createStatement();
String querySQL_tHiveLoad_1 = "LOAD DATA LOCAL INPATH '"
+ path_tHiveLoad_1 + "' OVERWRITE INTO TABLE "
+ tablename_tHiveLoad_1 + "";
您可以發佈您的工作佈局的屏幕截圖以及Hive組件的配置嗎? – ydaetskcoR 2014-10-01 08:08:43