rdblue commented on a change in pull request #406: Throw an exception when 
using Iceberg with Spark embedded metastore
URL: https://github.com/apache/incubator-iceberg/pull/406#discussion_r317698081
 
 

 ##########
 File path: hive/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java
 ##########
 @@ -183,6 +183,12 @@ public void commit(TableMetadata base, TableMetadata 
metadata) {
       }
       threw = false;
     } catch (TException | UnknownHostException e) {
+      if (e.getMessage().contains("Table/View 'HIVE_LOCKS' does not exist")) {
+        LOG.error("Failed to acquire locks from metastore because 'HIVE_LOCKS' 
doesn't exist, " +
+            "this probably happened when using embedded metastore or doesn't 
create transactional" +
+            " meta table. Please reconfigure and start the metastore.", e);
 
 Review comment:
   This recommendation isn't very helpful because it isn't clear what "the 
metastore" is. How about this instead: "To fix this, use an alternative 
metastore".

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to