You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@kylin.apache.org by Fei Yi <yi...@gmail.com> on 2017/11/30 06:32:13 UTC

upgrade to jdk1.8 can't load kylin.properties and web UI doesn't work

Hi all,
I upgrade jdk from 1.7 to 1.8 then web UI is doesn't work like this
[image: 内嵌图片 1]

Kylin is unable to work properly with jdk1.8?

kylin.log:

Retrieving hadoop conf dir...
KYLIN_HOME is set to /app/apache-kylin-2.1.0-bin-cdh57
Retrieving hive dependency...
Retrieving hbase dependency...
Retrieving hadoop conf dir...
Retrieving kafka dependency...
Retrieving Spark dependency...
Start to check whether we need to migrate acl tables
Retrieving hadoop conf dir...
KYLIN_HOME is set to /app/apache-kylin-2.1.0-bin-cdh57
Retrieving hive dependency...
Retrieving hbase dependency...
Retrieving hadoop conf dir...
Retrieving kafka dependency...
Retrieving Spark dependency...
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is
deprecated and will likely be removed in a future release
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/app/apache-kylin-2.1.0-bin-cdh57/tool/kylin-tool-2.1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/opt/cloudera/parcels/CDH-5.8.4-1.cdh5.8.4.p0.5/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2017-11-30 13:53:17,296 INFO  [main] common.KylinConfig:311 : Loading
kylin-defaults.properties from
file:/app/apache-kylin-2.1.0-bin-cdh57/tool/kylin-tool-2.1.0.jar!/kylin-defaults.properties
2017-11-30 13:53:17,320 DEBUG [main] common.KylinConfig:263 : KYLIN_CONF
property was not set, will seek KYLIN_HOME env variable
2017-11-30 13:53:17,325 INFO  [main] common.KylinConfig:95 : Initialized a
new KylinConfig from getInstanceFromEnv : 1828757853
2017-11-30 13:53:17,436 INFO  [main] persistence.ResourceStore:79 : Using
metadata url kylin_metadata@hbase for resource store
2017-11-30 13:53:17,955 INFO  [main] hbase.HBaseConnection:234 : connection
is null or closed, creating a new one
2017-11-30 13:53:18,393 INFO  [main] zookeeper.RecoverableZooKeeper:120 :
Process identifier=hconnection-0x2df9b86 connecting to ZooKeeper
ensemble=cdh01:2181,cdh02:2181,cdh03:2181
2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
environment:zookeeper.version=3.4.5-cdh5.8.4--1, built on 02/06/2017 22:25
GMT
2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
environment:host.name=cdh02
2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
environment:java.version=1.8.0_152
2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
environment:java.vendor=Oracle Corporation
2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
environment:java.home=/usr/java/jdk1.8.0_152/jre

The log above shows that the default configuration was loaded, not from
conf/kylin.pproperties ,and kylin.log and kylin.out no other errors,i tried
set KYLIN_CONF in /etc/profile and setenv.sh,but it does not work,
my env is :
cdh 5.8.4
kylin 2.1.0-cdh57

How can I solve this problem?

RE: upgrade to jdk1.8 can't load kylin.properties and web UI doesn't work

Posted by "Feng, Zhutian" <zh...@intel.com>.
Maybe something different between OpenJDK and Oracle JDK ?

From: ShaoFeng Shi [mailto:shaofengshi@apache.org]
Sent: Thursday, November 30, 2017 6:48 PM
To: user <us...@kylin.apache.org>
Subject: Re: upgrade to jdk1.8 can't load kylin.properties and web UI doesn't work

I'm using Java 8 (on azure hdinsight and aws emr), it runs well.

java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)

2017-11-30 16:16 GMT+08:00 Fei Yi <yi...@gmail.com>>:
I think this problem is a jdk bug

https://bugs.openjdk.java.net/browse/JDK-8189789
https://community.ubnt.com/t5/UniFi-Wireless/Guest-Portal-Web-Page-Not-Available/m-p/2104874/highlight/true#M256230

2017-11-30 14:32 GMT+08:00 Fei Yi <yi...@gmail.com>>:
Hi all,
I upgrade jdk from 1.7 to 1.8 then web UI is doesn't work like this
[内嵌图片 1]

Kylin is unable to work properly with jdk1.8?

kylin.log:

Retrieving hadoop conf dir...
KYLIN_HOME is set to /app/apache-kylin-2.1.0-bin-cdh57
Retrieving hive dependency...
Retrieving hbase dependency...
Retrieving hadoop conf dir...
Retrieving kafka dependency...
Retrieving Spark dependency...
Start to check whether we need to migrate acl tables
Retrieving hadoop conf dir...
KYLIN_HOME is set to /app/apache-kylin-2.1.0-bin-cdh57
Retrieving hive dependency...
Retrieving hbase dependency...
Retrieving hadoop conf dir...
Retrieving kafka dependency...
Retrieving Spark dependency...
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/app/apache-kylin-2.1.0-bin-cdh57/tool/kylin-tool-2.1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.8.4-1.cdh5.8.4.p0.5/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2017-11-30 13:53:17,296 INFO  [main] common.KylinConfig:311 : Loading kylin-defaults.properties from file:/app/apache-kylin-2.1.0-bin-cdh57/tool/kylin-tool-2.1.0.jar!/kylin-defaults.properties
2017-11-30 13:53:17,320 DEBUG [main] common.KylinConfig:263 : KYLIN_CONF property was not set, will seek KYLIN_HOME env variable
2017-11-30 13:53:17,325 INFO  [main] common.KylinConfig:95 : Initialized a new KylinConfig from getInstanceFromEnv : 1828757853
2017-11-30 13:53:17,436 INFO  [main] persistence.ResourceStore:79 : Using metadata url kylin_metadata@hbase for resource store
2017-11-30 13:53:17,955 INFO  [main] hbase.HBaseConnection:234 : connection is null or closed, creating a new one
2017-11-30 13:53:18,393 INFO  [main] zookeeper.RecoverableZooKeeper:120 : Process identifier=hconnection-0x2df9b86 connecting to ZooKeeper ensemble=cdh01:2181,cdh02:2181,cdh03:2181
2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client environment:zookeeper.version=3.4.5-cdh5.8.4--1, built on 02/06/2017 22:25 GMT
2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client environment:host.name<http://host.name>=cdh02
2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client environment:java.version=1.8.0_152
2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client environment:java.vendor=Oracle Corporation
2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client environment:java.home=/usr/java/jdk1.8.0_152/jre

The log above shows that the default configuration was loaded, not from conf/kylin.pproperties ,and kylin.log and kylin.out no other errors,i tried set KYLIN_CONF in /etc/profile and setenv.sh,but it does not work,
my env is :
cdh 5.8.4
kylin 2.1.0-cdh57

How can I solve this problem?






--
Best regards,

Shaofeng Shi 史少锋


Re: upgrade to jdk1.8 can't load kylin.properties and web UI doesn't work

Posted by ShaoFeng Shi <sh...@apache.org>.
I'm using Java 8 (on azure hdinsight and aws emr), it runs well.

java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)

2017-11-30 16:16 GMT+08:00 Fei Yi <yi...@gmail.com>:

> I think this problem is a jdk bug
>
> https://bugs.openjdk.java.net/browse/JDK-8189789
> https://community.ubnt.com/t5/UniFi-Wireless/Guest-Portal-
> Web-Page-Not-Available/m-p/2104874/highlight/true#M256230
>
> 2017-11-30 14:32 GMT+08:00 Fei Yi <yi...@gmail.com>:
>
>> Hi all,
>> I upgrade jdk from 1.7 to 1.8 then web UI is doesn't work like this
>> [image: 内嵌图片 1]
>>
>> Kylin is unable to work properly with jdk1.8?
>>
>> kylin.log:
>>
>> Retrieving hadoop conf dir...
>> KYLIN_HOME is set to /app/apache-kylin-2.1.0-bin-cdh57
>> Retrieving hive dependency...
>> Retrieving hbase dependency...
>> Retrieving hadoop conf dir...
>> Retrieving kafka dependency...
>> Retrieving Spark dependency...
>> Start to check whether we need to migrate acl tables
>> Retrieving hadoop conf dir...
>> KYLIN_HOME is set to /app/apache-kylin-2.1.0-bin-cdh57
>> Retrieving hive dependency...
>> Retrieving hbase dependency...
>> Retrieving hadoop conf dir...
>> Retrieving kafka dependency...
>> Retrieving Spark dependency...
>> Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is
>> deprecated and will likely be removed in a future release
>> SLF4J: Class path contains multiple SLF4J bindings.
>> SLF4J: Found binding in [jar:file:/app/apache-kylin-2.
>> 1.0-bin-cdh57/tool/kylin-tool-2.1.0.jar!/org/slf4j/impl/Stat
>> icLoggerBinder.class]
>> SLF4J: Found binding in [jar:file:/opt/cloudera/parcel
>> s/CDH-5.8.4-1.cdh5.8.4.p0.5/jars/slf4j-log4j12-1.7.5.jar!/
>> org/slf4j/impl/StaticLoggerBinder.class]
>> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
>> explanation.
>> SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
>> 2017-11-30 13:53:17,296 INFO  [main] common.KylinConfig:311 : Loading
>> kylin-defaults.properties from file:/app/apache-kylin-2.1.0-b
>> in-cdh57/tool/kylin-tool-2.1.0.jar!/kylin-defaults.properties
>> 2017-11-30 13:53:17,320 DEBUG [main] common.KylinConfig:263 : KYLIN_CONF
>> property was not set, will seek KYLIN_HOME env variable
>> 2017-11-30 13:53:17,325 INFO  [main] common.KylinConfig:95 : Initialized
>> a new KylinConfig from getInstanceFromEnv : 1828757853
>> 2017-11-30 13:53:17,436 INFO  [main] persistence.ResourceStore:79 : Using
>> metadata url kylin_metadata@hbase for resource store
>> 2017-11-30 13:53:17,955 INFO  [main] hbase.HBaseConnection:234 :
>> connection is null or closed, creating a new one
>> 2017-11-30 13:53:18,393 INFO  [main] zookeeper.RecoverableZooKeeper:120
>> : Process identifier=hconnection-0x2df9b86 connecting to ZooKeeper
>> ensemble=cdh01:2181,cdh02:2181,cdh03:2181
>> 2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
>> environment:zookeeper.version=3.4.5-cdh5.8.4--1, built on 02/06/2017
>> 22:25 GMT
>> 2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
>> environment:host.name=cdh02
>> 2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
>> environment:java.version=1.8.0_152
>> 2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
>> environment:java.vendor=Oracle Corporation
>> 2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
>> environment:java.home=/usr/java/jdk1.8.0_152/jre
>>
>> The log above shows that the default configuration was loaded, not from
>> conf/kylin.pproperties ,and kylin.log and kylin.out no other errors,i tried
>> set KYLIN_CONF in /etc/profile and setenv.sh,but it does not work,
>> my env is :
>> cdh 5.8.4
>> kylin 2.1.0-cdh57
>>
>> How can I solve this problem?
>>
>>
>>
>


-- 
Best regards,

Shaofeng Shi 史少锋

Re: upgrade to jdk1.8 can't load kylin.properties and web UI doesn't work

Posted by Fei Yi <yi...@gmail.com>.
I think this problem is a jdk bug

https://bugs.openjdk.java.net/browse/JDK-8189789
https://community.ubnt.com/t5/UniFi-Wireless/Guest-Portal-Web-Page-Not-Available/m-p/2104874/highlight/true#M256230

2017-11-30 14:32 GMT+08:00 Fei Yi <yi...@gmail.com>:

> Hi all,
> I upgrade jdk from 1.7 to 1.8 then web UI is doesn't work like this
> [image: 内嵌图片 1]
>
> Kylin is unable to work properly with jdk1.8?
>
> kylin.log:
>
> Retrieving hadoop conf dir...
> KYLIN_HOME is set to /app/apache-kylin-2.1.0-bin-cdh57
> Retrieving hive dependency...
> Retrieving hbase dependency...
> Retrieving hadoop conf dir...
> Retrieving kafka dependency...
> Retrieving Spark dependency...
> Start to check whether we need to migrate acl tables
> Retrieving hadoop conf dir...
> KYLIN_HOME is set to /app/apache-kylin-2.1.0-bin-cdh57
> Retrieving hive dependency...
> Retrieving hbase dependency...
> Retrieving hadoop conf dir...
> Retrieving kafka dependency...
> Retrieving Spark dependency...
> Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is
> deprecated and will likely be removed in a future release
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/app/apache-kylin-2.
> 1.0-bin-cdh57/tool/kylin-tool-2.1.0.jar!/org/slf4j/impl/
> StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/opt/cloudera/
> parcels/CDH-5.8.4-1.cdh5.8.4.p0.5/jars/slf4j-log4j12-1.7.5.
> jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
> 2017-11-30 13:53:17,296 INFO  [main] common.KylinConfig:311 : Loading
> kylin-defaults.properties from file:/app/apache-kylin-2.1.0-
> bin-cdh57/tool/kylin-tool-2.1.0.jar!/kylin-defaults.properties
> 2017-11-30 13:53:17,320 DEBUG [main] common.KylinConfig:263 : KYLIN_CONF
> property was not set, will seek KYLIN_HOME env variable
> 2017-11-30 13:53:17,325 INFO  [main] common.KylinConfig:95 : Initialized a
> new KylinConfig from getInstanceFromEnv : 1828757853
> 2017-11-30 13:53:17,436 INFO  [main] persistence.ResourceStore:79 : Using
> metadata url kylin_metadata@hbase for resource store
> 2017-11-30 13:53:17,955 INFO  [main] hbase.HBaseConnection:234 :
> connection is null or closed, creating a new one
> 2017-11-30 13:53:18,393 INFO  [main] zookeeper.RecoverableZooKeeper:120 :
> Process identifier=hconnection-0x2df9b86 connecting to ZooKeeper
> ensemble=cdh01:2181,cdh02:2181,cdh03:2181
> 2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
> environment:zookeeper.version=3.4.5-cdh5.8.4--1, built on 02/06/2017
> 22:25 GMT
> 2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
> environment:host.name=cdh02
> 2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
> environment:java.version=1.8.0_152
> 2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
> environment:java.vendor=Oracle Corporation
> 2017-11-30 13:53:18,400 INFO  [main] zookeeper.ZooKeeper:100 : Client
> environment:java.home=/usr/java/jdk1.8.0_152/jre
>
> The log above shows that the default configuration was loaded, not from
> conf/kylin.pproperties ,and kylin.log and kylin.out no other errors,i tried
> set KYLIN_CONF in /etc/profile and setenv.sh,but it does not work,
> my env is :
> cdh 5.8.4
> kylin 2.1.0-cdh57
>
> How can I solve this problem?
>
>
>