[ 
https://issues.apache.org/jira/browse/HDFS-8209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14534538#comment-14534538
 ] 

Hudson commented on HDFS-8209:
------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk-Java8 #190 (See 
[https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/190/])
HDFS-8209. Support different number of datanode directories in MiniDFSCluster. 
(Contributed by surendra singh lilhore) (vinayakumarb: rev 
4c6816faf83726c71c9c3981e7280b461f824a4f)
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestMiniDFSCluster.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java


> Support different number of datanode directories in MiniDFSCluster.
> -------------------------------------------------------------------
>
>                 Key: HDFS-8209
>                 URL: https://issues.apache.org/jira/browse/HDFS-8209
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: test
>    Affects Versions: 2.6.0
>            Reporter: surendra singh lilhore
>            Assignee: surendra singh lilhore
>            Priority: Minor
>             Fix For: 2.8.0
>
>         Attachments: HDFS-8209.patch, HDFS-8209_1.patch
>
>
> I want to create MiniDFSCluster with 2 datanode and for each datanode I want 
> to set different number of StorageTypes, but in this case I am getting 
> ArrayIndexOutOfBoundsException.
> My cluster schema is like this.
> {code}
> final MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf)
>                               .numDataNodes(2)
>                               .storageTypes(new StorageType[][] {{ 
> StorageType.DISK, StorageType.ARCHIVE },{ StorageType.DISK } })
>                               .build();
> {code}
> *Exception* :
> {code}
> java.lang.ArrayIndexOutOfBoundsException: 1
>       at 
> org.apache.hadoop.hdfs.MiniDFSCluster.makeDataNodeDirs(MiniDFSCluster.java:1218)
>       at 
> org.apache.hadoop.hdfs.MiniDFSCluster.startDataNodes(MiniDFSCluster.java:1402)
>       at 
> org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:832)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to