[
https://issues.apache.org/jira/browse/HDFS-5562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13831233#comment-13831233
]
Binglin Chang commented on HDFS-5562:
-------------------------------------
Looks like the native library is not loaded properly somehow in bulid env, so
the test need native library will fail
{code}
Stacktrace
java.lang.RuntimeException: Cannot start datanode because the configured max
locked memory size (dfs.datanode.max.locked.memory) is greater than zero and
native code is not available.
at
org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:668)
at
org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:267)
at
org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1764)
at
org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1679)
at
org.apache.hadoop.hdfs.MiniDFSCluster.startDataNodes(MiniDFSCluster.java:1191)
at
org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:666)
at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:335)
at
org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:317)
at
org.apache.hadoop.hdfs.server.datanode.TestFsDatasetCache.setUp(TestFsDatasetCache.java:113)
Standard Output
2013-11-24 11:56:46,893 WARN util.NativeCodeLoader
(NativeCodeLoader.java:<clinit>(62)) - Unable to load native-hadoop library for
your platform... using builtin-java classes where applicable
{code}
Those tests should be skipped if native library is not available.
> TestCacheDirectives fails on trunk
> ----------------------------------
>
> Key: HDFS-5562
> URL: https://issues.apache.org/jira/browse/HDFS-5562
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 3.0.0
> Reporter: Akira AJISAKA
>
> Some tests fail on trunk.
> {code}
> Tests in error:
> TestCacheDirectives.testWaitForCachedReplicas:710 » Runtime Cannot start
> datan...
> TestCacheDirectives.testAddingCacheDirectiveInfosWhenCachingIsDisabled:767
> » Runtime
> TestCacheDirectives.testWaitForCachedReplicasInDirectory:813 » Runtime
> Cannot ...
> TestCacheDirectives.testReplicationFactor:897 » Runtime Cannot start
> datanode ...
> Tests run: 9, Failures: 0, Errors: 4, Skipped: 0
> {code}
> For more details, see https://builds.apache.org/job/Hadoop-Hdfs-trunk/1592/
--
This message was sent by Atlassian JIRA
(v6.1#6144)