You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@kylin.apache.org by qmw <qm...@126.com> on 2019/11/26 10:36:15 UTC

kylin 配置后仍无法通过hue访问

在参考http://kylin.apache.org/docs21/tutorial/hue.html这个文档设置时,设置了[[[kylin]]]
    name=kylin JDBC
    interface=jdbc
    options='{"url": "jdbc:kylin://172.17.0.2:7070/learn_kylin","driver": "org.apache.kylin.jdbc.Driver", "user": "ADMIN", "password": "KYLIN"}'
在hue web端配置的高级配置代码段之后,会导致 impala hive等默认的数据源无法连接,而kylin虽然能够在notebook中显示,但也没有数据表出现

Re: kylin 配置后仍无法通过hue访问

Posted by Yaqian Zhang <Ya...@126.com>.
Hi:

I think you should put the jar on Hue located CDH cluster and  configure $classpath to this jar. 

Because Hue need find it and operate kylin through it.

You can try this.

Best Regards!

> 在 2019年11月27日,18:27,qmw <qm...@126.com> 写道:
> 
> 
> 我们使用的是cdh上集成的hue,不是用docker容器装载的。
> 我直接在hue的web端界面中的ini 高级配置处添加了
>   dbproxy_extra_classpath=/hue/kylin-jdbc-2.4.1.jar
> 
>  # One entry for each type of snippet.
> 
>   [[interpreters]]
> 
>     # Define the name and how to connect and execute the language.
> 
>     [[[kylin]]]
> 
>       name=kylin JDBC
> 
>       interface=jdbc
> 
>       options='{"url": "jdbc:kylin://localhost(这里我填的是我安装好的kylin的web端地址):7070/learn_kylin","driver": "org.apache.kylin.jdbc.Driver", "user": "ADMIN", "password": "KYLIN"}'
> 
> 并添加了notebook,可以在notebook中看见kylin 但是连接不上数据,显示error2 no file ,我想请问, dbproxy_extra_classpath=/hue/kylin-jdbc-2.4.1.jar 这个我是在配置中填写了,然后我把kylin的jdbc包从原来的服务器拷贝到了集群的服务器并创建了hue文件夹把jdbc包放入,这样是否是可以了,还是需要把kylin放到cdh集群所在服务器,然后连接这个jar包。
> 
> 在kylin所在服务器上我声明了$CLASSPATH这个环境变量到kylin文件中的jdbc包,是不是在cdh的集群所在服务器也需要定义环境变量到/hue/kylin-jdbc-2.4.1.jar
> 
> 我查看了kylin的log 并没有发现,jdbc端口被调起的记录,所以想请问一下还需要添加什么才能使该端口开启
> 
> 我也有尝试直接在cdh的服务器上的hue.ini上添加kylin的配置,但是重启后并没有生效
> 
> 希望能得到你们的帮助,谢谢!
> 
> 
> 
> At 2019-11-27 11:44:00, "Yaqian Zhang" <Ya...@126.com> wrote:
> Theoretically, the server where hue is located can access kylin's server is OK.
> 
> Maybe official website documents is too old, you can refer to this document for help:
> 
> https://www.jianshu.com/p/7ca176b19e35 <https://www.jianshu.com/p/7ca176b19e35>
> 
>> 在 2019年11月26日,18:36,qmw <qmw984516882@126.com <ma...@126.com>> 写道:
>> 
>> 在参考http://kylin.apache.org/docs21/tutorial/hue.html <http://kylin.apache.org/docs21/tutorial/hue.html>这个文档设置时,设置了[[[kylin]]]
>>     name=kylin JDBC
>>     interface=jdbc
>>     options='{"url": "jdbc:kylin://172.17.0.2:7070/learn_kylin <kylin://172.17.0.2:7070/learn_kylin>","driver": "org.apache.kylin.jdbc.Driver", "user": "ADMIN", "password": "KYLIN"}'
>> 在hue web端配置的高级配置代码段之后,会导致 impala hive等默认的数据源无法连接,而kylin虽然能够在notebook中显示,但也没有数据表出现
>> 
>> 
>>  
> 
> 
> 
>  


Re:Re: kylin 配置后仍无法通过hue访问

Posted by qmw <qm...@126.com>.

我们使用的是cdh上集成的hue,不是用docker容器装载的。
我直接在hue的web端界面中的ini 高级配置处添加了

  dbproxy_extra_classpath=/hue/kylin-jdbc-2.4.1.jar

 # One entry for each type of snippet.

  [[interpreters]]

    # Define the name and how to connect and execute the language.

    [[[kylin]]]

      name=kylin JDBC

      interface=jdbc

      options='{"url": "jdbc:kylin://localhost(这里我填的是我安装好的kylin的web端地址):7070/learn_kylin","driver": "org.apache.kylin.jdbc.Driver", "user": "ADMIN", "password": "KYLIN"}'

并添加了notebook,可以在notebook中看见kylin 但是连接不上数据,显示error2 no file ,我想请问, dbproxy_extra_classpath=/hue/kylin-jdbc-2.4.1.jar 这个我是在配置中填写了,然后我把kylin的jdbc包从原来的服务器拷贝到了集群的服务器并创建了hue文件夹把jdbc包放入,这样是否是可以了,还是需要把kylin放到cdh集群所在服务器,然后连接这个jar包。

在kylin所在服务器上我声明了$CLASSPATH这个环境变量到kylin文件中的jdbc包,是不是在cdh的集群所在服务器也需要定义环境变量到/hue/kylin-jdbc-2.4.1.jar

我查看了kylin的log 并没有发现,jdbc端口被调起的记录,所以想请问一下还需要添加什么才能使该端口开启

我也有尝试直接在cdh的服务器上的hue.ini上添加kylin的配置,但是重启后并没有生效

希望能得到你们的帮助,谢谢!




At 2019-11-27 11:44:00, "Yaqian Zhang" <Ya...@126.com> wrote:

Theoretically, the server where hue is located can access kylin's server is OK.


Maybe official website documents is too old, you can refer to this document for help:


https://www.jianshu.com/p/7ca176b19e35


在 2019年11月26日,18:36,qmw <qm...@126.com> 写道:


在参考http://kylin.apache.org/docs21/tutorial/hue.html这个文档设置时,设置了[[[kylin]]]
    name=kylin JDBC
    interface=jdbc
    options='{"url": "jdbc:kylin://172.17.0.2:7070/learn_kylin","driver": "org.apache.kylin.jdbc.Driver", "user": "ADMIN", "password": "KYLIN"}'
在hue web端配置的高级配置代码段之后,会导致 impala hive等默认的数据源无法连接,而kylin虽然能够在notebook中显示,但也没有数据表出现



 



Re: kylin 配置后仍无法通过hue访问

Posted by Yaqian Zhang <Ya...@126.com>.
Theoretically, the server where hue is located can access kylin's server is OK.

Maybe official website documents is too old, you can refer to this document for help:

https://www.jianshu.com/p/7ca176b19e35 <https://www.jianshu.com/p/7ca176b19e35>

> 在 2019年11月26日,18:36,qmw <qm...@126.com> 写道:
> 
> 在参考http://kylin.apache.org/docs21/tutorial/hue.html <http://kylin.apache.org/docs21/tutorial/hue.html>这个文档设置时,设置了[[[kylin]]]
>     name=kylin JDBC
>     interface=jdbc
>     options='{"url": "jdbc:kylin://172.17.0.2:7070/learn_kylin","driver": "org.apache.kylin.jdbc.Driver", "user": "ADMIN", "password": "KYLIN"}'
> 在hue web端配置的高级配置代码段之后,会导致 impala hive等默认的数据源无法连接,而kylin虽然能够在notebook中显示,但也没有数据表出现
> 
> 
>  


Re:Re: kylin 配置后仍无法通过hue访问

Posted by qmw <qm...@126.com>.
kylin 2.4.1
hue3.9.0+cdh5.16.2
我设置了 $CLASSPATH为kylin-2.4.1-jdbc-jar
我重启hue后,kylin.log里面没有jdbc关键字的日志出现,重启那段时间的kylin日志也没有相关内容出现
我怀疑是没有调起jdbc这个jar包,但是我是按照这个官方文档来的,虽然hue和kylin不在一个服务器上,但这个应该不影响吧
"jdbc:kylin://172.17.0.2:7070/learn_kylin"
我把这一段的ip改成kylin所在服务器的地址的






At 2019-11-26 19:01:17, "Yaqian Zhang" <Ya...@126.com> wrote:
Hi qmw:


Is there have some error log in kylin.log?


Could you provide your kylin version and hue version? Whether the corresponding version of JDBC jar package is used?



在 2019年11月26日,18:36,qmw <qm...@126.com> 写道:


在参考http://kylin.apache.org/docs21/tutorial/hue.html这个文档设置时,设置了[[[kylin]]]
    name=kylin JDBC
    interface=jdbc
    options='{"url": "jdbc:kylin://172.17.0.2:7070/learn_kylin","driver": "org.apache.kylin.jdbc.Driver", "user": "ADMIN", "password": "KYLIN"}'
在hue web端配置的高级配置代码段之后,会导致 impala hive等默认的数据源无法连接,而kylin虽然能够在notebook中显示,但也没有数据表出现



 



Re: kylin 配置后仍无法通过hue访问

Posted by Yaqian Zhang <Ya...@126.com>.
Hi qmw:

Is there have some error log in kylin.log?

Could you provide your kylin version and hue version? Whether the corresponding version of JDBC jar package is used?

> 在 2019年11月26日,18:36,qmw <qm...@126.com> 写道:
> 
> 在参考http://kylin.apache.org/docs21/tutorial/hue.html <http://kylin.apache.org/docs21/tutorial/hue.html>这个文档设置时,设置了[[[kylin]]]
>     name=kylin JDBC
>     interface=jdbc
>     options='{"url": "jdbc:kylin://172.17.0.2:7070/learn_kylin","driver": "org.apache.kylin.jdbc.Driver", "user": "ADMIN", "password": "KYLIN"}'
> 在hue web端配置的高级配置代码段之后,会导致 impala hive等默认的数据源无法连接,而kylin虽然能够在notebook中显示,但也没有数据表出现
> 
> 
>