- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
how to alter hive table partition
Created on ‎03-15-2017 09:01 PM - edited ‎09-16-2022 04:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using hdp 2.4.2 (hive - 1.2.1.2.4).
When I tried using the following hive command it gives me error. Is there a way to alter the table partition location?
show partitions btest.testcglbalances; +-----------------------+--+ | partition | +-----------------------+--+ | load_date=2017-02-16 | +-----------------------+--+ alter table btest.testcglbalances partition (load_date='2017-02-16') set location 's3a://xxx/data/test/test2/2017-02-16'; Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter partition. alter is not possible (state=08S01,code=1)
Created ‎03-15-2017 11:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The below HCC post has a pretty good explanation:
Created ‎03-15-2017 11:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The below HCC post has a pretty good explanation:
Created ‎03-15-2017 11:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you ran this using beeline connecting to HS2, can you check the full error stack trace in the hiveserver2.log?
Created ‎03-16-2017 03:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for your reply. that help
