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 <[email protected]> 写道: > > > 我们使用的是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" <[email protected]> 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 <[email protected] <mailto:[email protected]>> >> 写道: >> >> 在参考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中显示,但也没有数据表出现 >> >> >> > > > >
