hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "surendra singh lilhore (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-11856) ArrayIndexOutOfBoundsException in MiniDFSCluster.
Date Tue, 21 Apr 2015 19:46:59 GMT
surendra singh lilhore created HADOOP-11856:

             Summary: ArrayIndexOutOfBoundsException in MiniDFSCluster.
                 Key: HADOOP-11856
                 URL: https://issues.apache.org/jira/browse/HADOOP-11856
             Project: Hadoop Common
          Issue Type: Bug
          Components: test
    Affects Versions: 2.6.0
            Reporter: surendra singh lilhore
            Assignee: surendra singh lilhore

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.


final MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf)
				.storageTypes(new StorageType[][] {{ StorageType.DISK, StorageType.ARCHIVE },{ StorageType.DISK
} })

*Exception* :

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)

This message was sent by Atlassian JIRA

View raw message