Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 是否删除宝藏数据/hadoop中的查询?_Sql_Hadoop_Hive_Bigdata - Fatal编程技术网

Sql 是否删除宝藏数据/hadoop中的查询?

Sql 是否删除宝藏数据/hadoop中的查询?,sql,hadoop,hive,bigdata,Sql,Hadoop,Hive,Bigdata,我试图编写一个查询来删除宝藏数据中的一些行,但服务器忽略了它。我缺少解决此问题的文档 以下是日志: Use 'td job:show 2485728' to show the status. queued... started at 2013-04-18T10:22:32Z Hive history file=/mnt/hive/tmp/2073/hive_job_log__336863980.txt finished at 2013-04-18T10:22:39Z Ig

我试图编写一个查询来删除宝藏数据中的一些行,但服务器忽略了它。我缺少解决此问题的文档

以下是日志:

    Use 'td job:show 2485728' to show the status.
queued...
  started at 2013-04-18T10:22:32Z
  Hive history file=/mnt/hive/tmp/2073/hive_job_log__336863980.txt
  finished at 2013-04-18T10:22:39Z
  Ignored "delete from mytable where time < unix_timestamp() - 30*60*60*24"
使用'td job:show 2485728'显示状态。
排队。。。
开始于2013-04-18T10:22:32Z
配置单元历史记录文件=/mnt/Hive/tmp/2073/Hive\u作业\u日志\u 336863980.txt
于2013-04-18T10:22:39Z完成
忽略“从mytable中删除,其中时间
很抱歉,配置单元中没有delete语句。一个可能的技巧是重写表:

INSERT OVERWRITE TABLE mytable
SELECT * FROM mytable
WHERE time >= unix_timestamp() - 30*60*60*24

抱歉,配置单元中没有delete语句。一个可能的技巧是重写表:

INSERT OVERWRITE TABLE mytable
SELECT * FROM mytable
WHERE time >= unix_timestamp() - 30*60*60*24