Tag: <span>Hive</span>

Tag: Hive

Dynamic Partitioning “INSERT OVERWRITE” Does Not Lock Table Exclusively

Today I have discovered a bug in Hive, that when user submits an “INSERT OVERWRITE” query with dynamic partitioning, Hive does not lock the underlining table “exclusively”, rather it only applies “shared” lock. To confirm the problem, I created a simple table: Then I issued a dynamic partitioning query: And …

Beeline Exit Codes Explained

Beeline will return non-zero exit code on failure in the following CDH versions 5.2.2 onwards. The returned exit code simply means the number of errors occurred during beeline’s execution. So for example, the following command will result the exit code of 2 because the first two “show” command will fail …

Hive Export/Import Command – Transfering Data Between Hive Instances

When working with Hive, there are lots of scenarios that we need to move data from one cluster to another. For instance, sometimes we need to copy some production data into alpha/dev environment for testing purpose. Luckily that Hive provides two easy commands for us to do it. Since version …

My new Snowflake Blog is now live. I will not be updating this blog anymore but will continue with new contents in the Snowflake world!