Hive 插入覆盖:无法移动。。。到垃圾箱,因为它包含垃圾

Hive 插入覆盖:无法移动。。。到垃圾箱,因为它包含垃圾,hive,azure-hdinsight,Hive,Azure Hdinsight,我正试图通过从另一个表中选择以下内容来插入到表中: INSERT OVERWRITE TABLE testtable1 select * from testtable0 错误: Moving data to: wasb://{container}@{storage}.blob.core.windows.net/hive/scratch/hive_2015-06-01_15-05-14_062_6478651325775395196-1/-ext-10000 Loading data to ta

我正试图通过从另一个表中选择以下内容来插入到表中:

INSERT OVERWRITE TABLE testtable1 select * from testtable0
错误:

Moving data to: wasb://{container}@{storage}.blob.core.windows.net/hive/scratch/hive_2015-06-01_15-05-14_062_6478651325775395196-1/-ext-10000
Loading data to table default.testtable1
rmr: DEPRECATED: Please use 'rm -r' instead.
rmr: Cannot move "wasb://{container}@{storage}.blob.core.windows.net/" to the trash, as it contains the trash. Consider using -skipTrash option
Failed with exception null

是否要将-r建议和-skipTrash选项添加到配置单元查询中?语法应该是什么,或者是否有更好的方法来执行此查询?

您可以共享创建testtable1时指向的位置吗

您的测试表似乎指向WASB存储帐户中的根容器。配置单元在文件夹级别而不是文件级别工作。由于您没有为要存储在其中的表数据提供子目录,因此它会尝试删除包含垃圾箱文件夹的容器中的整个数据


在创建测试表时,只需添加一个子文件夹,就可以解决问题

我相信我使用的位置是正确的,但文件夹没有。也可能是这种情况的另一个症状:不管怎样,我使用了不同的方法: