kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shaofeng SHI (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KYLIN-1229) CubeMigrationCLI should not need set KYLIN_HOME
Date Thu, 28 Jan 2016 02:51:39 GMT

     [ https://issues.apache.org/jira/browse/KYLIN-1229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shaofeng SHI updated KYLIN-1229:
--------------------------------
    Fix Version/s:     (was: v1.3)
                   Future

> CubeMigrationCLI should not need set KYLIN_HOME
> -----------------------------------------------
>
>                 Key: KYLIN-1229
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1229
>             Project: Kylin
>          Issue Type: Bug
>    Affects Versions: v1.2, v1.1, v1.0
>            Reporter: Shaofeng SHI
>            Assignee: Shaofeng SHI
>            Priority: Minor
>             Fix For: Future
>
>
> When release a cube from one Kylin server to another Kylin server, if didn't set KYLIN_HOME
environment variable, it will throw exception:
> {code}
> hbase -Dlog4j.configuration=/conf/log4j.properties  org.apache.hadoop.util.RunJar lib/kylin-job-1.2-SNAPSHOT.jar
org.apache.kylin.job.tools.CubeMigrationCLI   kylin-qa:80  kylin-prod:80 CUBE_NAME PROJ_NAME
true true false
> L4J [2015-12-14 00:44:53,578][ERROR][org.apache.kylin.common.persistence.ResourceStore]
- Create new store instance failed
> java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> 	at org.apache.kylin.common.persistence.ResourceStore.getStore(ResourceStore.java:76)
> 	at org.apache.kylin.job.tools.CubeMigrationCLI.moveCube(CubeMigrationCLI.java:94)
> 	at org.apache.kylin.job.tools.CubeMigrationCLI.moveCube(CubeMigrationCLI.java:138)
> 	at org.apache.kylin.job.tools.CubeMigrationCLI.main(CubeMigrationCLI.java:82)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
> Caused by: java.lang.RuntimeException: Didn't find KYLIN_CONF or KYLIN_HOME, please set
one of them
> 	at org.apache.kylin.common.KylinConfig.getKylinProperties(KylinConfig.java:600)
> 	at org.apache.kylin.common.KylinConfig.getKylinPropertiesAsInputSteam(KylinConfig.java:608)
> 	at org.apache.kylin.common.KylinConfig.loadKylinConfig(KylinConfig.java:249)
> 	at org.apache.kylin.common.KylinConfig.getInstanceFromEnv(KylinConfig.java:145)
> 	at org.apache.kylin.common.util.HadoopUtil.getCurrentHBaseConfiguration(HadoopUtil.java:56)
> 	at org.apache.kylin.common.persistence.HBaseConnection.get(HBaseConnection.java:68)
> 	at org.apache.kylin.common.persistence.HBaseResourceStore.getConnection(HBaseResourceStore.java:81)
> 	at org.apache.kylin.common.persistence.HBaseResourceStore.createHTableIfNeeded(HBaseResourceStore.java:100)
> 	at org.apache.kylin.common.persistence.HBaseResourceStore.<init>(HBaseResourceStore.java:95)
> 	... 13 more
> Exception in thread "main" java.lang.IllegalArgumentException: Failed to find metadata
store by url: kylin_metadata_qa@hbase
> 	at org.apache.kylin.common.persistence.ResourceStore.getStore(ResourceStore.java:91)
> 	at org.apache.kylin.job.tools.CubeMigrationCLI.moveCube(CubeMigrationCLI.java:94)
> 	at org.apache.kylin.job.tools.CubeMigrationCLI.moveCube(CubeMigrationCLI.java:138)
> 	at org.apache.kylin.job.tools.CubeMigrationCLI.main(CubeMigrationCLI.java:82)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> {code}
> The problem is between HBaseResourceStore.getConnection() and HBaseConnection.get(url),
which depends on an implicit KylinConfig, insteading using the given KylinConfig.



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

Mime
View raw message