測驗環境是:hadoop2.6.1+hive1.2.1+spark-1.6.0
0: jdbc:hive2://2.hadoop.com:10008> insert overwrite table t_service_detail_log_txt PARTITION ( fdate="2016-01-06" ) select * from t_service_detail_log where fdate="2016-01-06";
0: jdbc:hive2://2.hadoop.com:10008> select count(1) from t_service_detail_log_txt where fdate='2016-01-06';
+-----------+--+
| _c0 |
+-----------+--+
| 44310448 |
+-----------+--+
1 row selected (24.948 seconds)
0: jdbc:hive2://2.hadoop.com:10008>
0: jdbc:hive2://2.hadoop.com:10008> ALTER TABLE t_service_detail_log_txt DROP IF EXISTS PARTITION(fdate='2016-01-06');
Error: org.apache.spark.sql.execution.QueryExecutionException: FAILED: SemanticException [Error 10006]: Partition not found (fdate = 2016-01-06) (state=,code=0)
怎么解決洗掉磁區表中磁區資料?
uj5u.com熱心網友回復:
什么問題樓主?轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/54830.html
標籤:Spark
上一篇:通過eclipse 提交sc.textFile("XX").count() 報錯
下一篇:spark
