0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

zeppelinでjdbc経由でmysql(infinidb)に接続する。

Last updated at Posted at 2016-07-18

jdbc interpreterで
下記を設定

mysql.driver 	com.mysql.jdbc.Driver
mysql.password 	なんかぱすわーど
mysql.url 	jdbc:mysql://[ほすと]:3307
mysql.user 	なんかゆーざ名

dependencies, artifactで

  • mysql:mysql-connector-java:5.1.38

を設定

zeppelinで使うときは

%jdbc(mysql) 

select
 dt,
 sum(measure)
from fact_table
group by dt
order by dt

みたいな感じで、

jdbc(prefix)なので、
hiveとかを使うときは、

%jdbc(hive)みたいな

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?