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

Ted Yu commented on HBASE-17062:
--------------------------------

Almost there.
{code}
23      import java.util.*;
{code}
Please don't use '*' in import.

> RegionSplitter throws ClassCastException
> ----------------------------------------
>
>                 Key: HBASE-17062
>                 URL: https://issues.apache.org/jira/browse/HBASE-17062
>             Project: HBase
>          Issue Type: Bug
>          Components: util
>            Reporter: Jeongdae Kim
>            Priority: Minor
>         Attachments: HBASE-17062.001.patch, HBASE-17062.002.patch
>
>
> RegionSplitter throws Exception as below.
> Exception in thread "main" java.lang.ClassCastException: 
> org.apache.hadoop.hbase.ServerName cannot be cast to java.lang.String
>       at java.lang.String.compareTo(String.java:108)
>       at java.util.TreeMap.getEntry(TreeMap.java:346)
>       at java.util.TreeMap.get(TreeMap.java:273)
>       at 
> org.apache.hadoop.hbase.util.RegionSplitter$1.compare(RegionSplitter.java:504)
>       at 
> org.apache.hadoop.hbase.util.RegionSplitter$1.compare(RegionSplitter.java:502)
>       at java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)
>       at java.util.TimSort.sort(TimSort.java:189)
>       at java.util.TimSort.sort(TimSort.java:173)
>       at java.util.Arrays.sort(Arrays.java:659)
>       at java.util.Collections.sort(Collections.java:217)
>       at 
> org.apache.hadoop.hbase.util.RegionSplitter.rollingSplit(RegionSplitter.java:502)
>       at 
> org.apache.hadoop.hbase.util.RegionSplitter.main(RegionSplitter.java:367)



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

Reply via email to