Per Ullberg created HIVE-14772:

             Summary: NPE when MSCK REPAIR
                 Key: HIVE-14772
             Project: Hive
          Issue Type: Bug
          Components: Hive
    Affects Versions: 2.1.0
         Environment: HiveRunner on OSX Yosemite
            Reporter: Per Ullberg

HiveMetaStoreChecker throws NullPointerException when doing a MSCK REPAIR TABLE.

The bug is here:

18      package org.apache.hadoop.hive.ql.metadata;
58      public class HiveMetaStoreChecker {
408        if (!directoryFound) {
409         allDirs.put(path, null);
410        }

allDirs is a ConcurrentHashMap and those does not allow either key or value to 
be null.

I found the bug while trying to port to 
Hive 2.1.0

Implemented explicit test case that exposes the bug here:

Reproduce by cloning branch
and run 
{code} mvn -Dtest=MSCKRepairNPE clean test{code}

( Does not work on windows :( )

Looks like this email thread talks about the same issue:

This message was sent by Atlassian JIRA

Reply via email to