[
https://issues.apache.org/jira/browse/KYLIN-1828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
liyang resolved KYLIN-1828.
---------------------------
Resolution: Fixed
Fix Version/s: (was: v1.6.0)
v1.5.4
> java.lang.StringIndexOutOfBoundsException in
> org.apache.kylin.storage.hbase.util.StorageCleanupJob
> --------------------------------------------------------------------------------------------------
>
> Key: KYLIN-1828
> URL: https://issues.apache.org/jira/browse/KYLIN-1828
> Project: Kylin
> Issue Type: Bug
> Components: Job Engine
> Affects Versions: v1.5.2.1
> Reporter: Richard Calaba
> Assignee: Wang Cheng
> Fix For: v1.5.4
>
> Attachments: 0001-KYLIN-1828-StorageCleanupJob.patch
>
>
> While running storage cleanup job:
> ./bin/kylin.sh org.apache.kylin.storage.hbase.util.StorageCleanupJob --delete
> true
> I see Hive tables in form
> kylin_intermediate_<cube_name>_19700101000000_20160701031500
> in the defaul schema.
> While running the above storage cleaner (v.1.5.2.1 - all previously built
> Cubes Disabled & Dropped) I am getting an error:
> 2016-06-27 22:28:08,480 INFO [main StorageCleanupJob:262]: Remove
> intermediate hive table with job id fc44da88-cffc-4710-8726-ff910cf83451 with
> job status ERROR
> usage: StorageCleanupJob
> -delete <delete> Delete the unused storage
> Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String
> index out of range: -2
> at java.lang.String.substring(String.java:1904)
> at
> org.apache.kylin.storage.hbase.util.StorageCleanupJob.cleanUnusedIntermediateHiveTable(StorageCleanupJob.java:269)
> at
> org.apache.kylin.storage.hbase.util.StorageCleanupJob.run(StorageCleanupJob.java:91)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
> at
> org.apache.kylin.storage.hbase.util.StorageCleanupJob.main(StorageCleanupJob.java:308)
> 2016-06-27 22:28:08,486 INFO [Thread-0
> HConnectionManager$HConnectionImplementation:1907]: Closing zookeeper
> sessionid=0x154c97461586119
> 2016-06-27 22:28:08,491 INFO [Thread-0 ZooKeeper:684]: Session:
> 0x154c97461586119 closed
> 2016-06-27 22:28:08,491 INFO [main-EventThread ClientCnxn:509]: EventThread
> shut down
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)