dlmarion commented on a change in pull request #2414:
URL: https://github.com/apache/accumulo/pull/2414#discussion_r789628348



##########
File path: 
minicluster/src/main/java/org/apache/accumulo/miniclusterImpl/MiniAccumuloClusterImpl.java
##########
@@ -327,6 +334,13 @@ public MiniAccumuloClusterImpl(MiniAccumuloConfigImpl 
config) throws IOException
 
     this.config = config.initialize();
 
+    if (Boolean.TRUE.equals(Boolean
+        
.valueOf(this.config.getSiteConfig().get(Property.TSERV_NATIVEMAP_ENABLED.name()))))
 {
+      if (!NativeMap.isLoaded())
+        throw new RuntimeException(
+            "MAC configured to use native maps, but unable to load the 
library.");
+    }
+

Review comment:
       Regarding #2425, when I was looking at NativeMap, I was wondering why we 
first looked in `accumulo.native.lib.path` and then tried LD_LIBRARY_PATH as a 
fallback. It seems that this is another case where we are doing something 
non-standard. Why not just use LD_LIBRARY_PATH ?




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to