0

我正在做一个大数据项目,并在 Hive 中创建了一个外部表,该表应该查询存储在 HDFS 中的数据。使用 Flume 将数据流式传输到 HDFS。但是,当我查询存储在 HDFS 中的数据时出现错误。所有权限似乎都可以。HDFS中存储数据的权限是-rw-r--r--

创建的表如下:

create external table recommendation.bets (
 betId int,
 odds decimal,
 selectionID String,
 eventID String,
 match String,
 categoryID int,
 subCategoryID String,
 leagueName String,
 parentSubCategory String,
 marketID String,
 preMatchBet String,
 name String,
 matchOdds decimal,
 stake decimal,
 mobile boolean,
 providerName String,
 totalOdds decimal,
 totalStake decimal,
 nation String,
 `betDate` Date,
 currency String,
 calendarDate String)
 row format serde 'org.apache.hive.hcatalog.data.JsonSerDe'
 location 'hdfs://sandbox.hortonworks.com/archiving/bets';

我花了几个小时寻找这个案例,但没有运气。正在生成的错误日志如下:

{"message":"H170 Unable to fetch results. java.io.IOException: java.lang.IllegalArgumentException [ERROR_STATUS]","status":500,"trace":"org.apache.ambari.view.hive.client.HiveErrorStatusException: H170 Unable to fetch results. java.io.IOException: java.lang.IllegalArgumentException [ERROR_STATUS]\n\norg.apache.ambari.view.hive.client.HiveErrorStatusException: H170 Unable to fetch results. java.io.IOException: java.lang.IllegalArgumentException [ERROR_STATUS]\n\tat 

我只粘贴了错误日志的开头,因为它会生成一个巨大的日志。我很乐意感谢任何有关错误的帮助和指导。提前致谢。

4

0 回答 0