为了账号安全,请及时绑定邮箱和手机立即绑定

load 方式导入数据出问题

[root@lqz ~]# more test_1.txt

1,liqinghozng

2,zhangsan

3,lisi

[root@lqz ~]# hive


Logging initialized using configuration in jar:file:/root/apache-hive-0.13.0-bin/lib/hive-common-0.13.0.jar!/hive-log4j.properties

hive> load data local inpath '/root/test_1.txt' into table test_1;          

Copying data from file:/root/test_1.txt

Copying file: file:/root/test_1.txt

Failed with exception java.io.IOException: File /tmp/hive-root/hive_2016-03-25_15-54-02_980_1405254539072414876-1/-ext-10000/test_1.txt could only be replicated to 0 nodes, instead of 1

at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1920)

at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:783)

at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:587)

at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1432)

at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1428)

at java.security.AccessController.doPrivileged(Native Method)

at javax.security.auth.Subject.doAs(Subject.java:415)

at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190)

at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1426)


FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.CopyTask


正在回答

举报

0/150
提交
取消
走近大数据之Hive入门
  • 参与学习       54598    人
  • 解答问题       102    个

Hive是基于HDFS的数据仓库,教程将向大家介绍Hive的体系结构

进入课程

load 方式导入数据出问题

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信