【问题标题】:Issue While loading the data in hive在 hive 中加载数据时的问题
【发布时间】:2016-12-05 10:54:30
【问题描述】:

在 hive 中加载数据时,出现以下错误: "java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask"

我在 hdfs 中有一些数据,我正在尝试将这些数据加载到 hive 中。

按照我在 ambari hive cli 上运行的命令: 1- 创建表currency_new(CurrencyId int,ThreeLetterIsoCode string,Name string, Rate bigint,LastUpdate bigint, Active string);

成功创建表currency_new

2-将路径'/usr/core/currency'中的数据加载到表currency_new中; error:"java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask"

请告诉我我能做什么?

在此致谢

【问题讨论】:

  • 从命令行试试

标签: hive


【解决方案1】:

您使用的是本地路径还是 HDFS 路径?如果您使用的是本地路径,请尝试:

load data local inpath '/usr/core/currency' into table currency_new; 

【讨论】:

  • 不,我使用的是 hdfs 路径
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-12-31
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多