diff --git a/docs/assets/themes/zeppelin/img/docs-img/mariadb_setting.png b/docs/assets/themes/zeppelin/img/docs-img/mariadb_setting.png new file mode 100644 index 00000000000..da32528ece4 Binary files /dev/null and b/docs/assets/themes/zeppelin/img/docs-img/mariadb_setting.png differ diff --git a/docs/assets/themes/zeppelin/img/docs-img/postgres_setting.png b/docs/assets/themes/zeppelin/img/docs-img/postgres_setting.png new file mode 100644 index 00000000000..7eb7a9b0003 Binary files /dev/null and b/docs/assets/themes/zeppelin/img/docs-img/postgres_setting.png differ diff --git a/docs/assets/themes/zeppelin/img/docs-img/redshift_setting.png b/docs/assets/themes/zeppelin/img/docs-img/redshift_setting.png new file mode 100644 index 00000000000..54a5f710139 Binary files /dev/null and b/docs/assets/themes/zeppelin/img/docs-img/redshift_setting.png differ diff --git a/docs/interpreter/jdbc.md b/docs/interpreter/jdbc.md index 25230947da6..a10ea0b4b3f 100644 --- a/docs/interpreter/jdbc.md +++ b/docs/interpreter/jdbc.md @@ -50,7 +50,7 @@ JDBC interpreter lets you create a JDBC connection to any data sources seamlessl
  • Apache Hive - - JDBC Driver + JDBC Driver
  • Apache Phoenix itself is a JDBC driver @@ -125,7 +125,7 @@ The last step is **Dependency Setting**. Since Zeppelin only includes `PostgreSQ -That's it. You can find more JDBC connection setting examples([Mysql](#mysql), [Apache Hive](#apache-hive), [Apache Phoenix](#apache-phoenix), and [Apache Tajo](#apache-tajo)) in [this section](#examples). +That's it. You can find more JDBC connection setting examples([Mysql](#mysql), [MariaDB](#mariadb), [Redshift](#redshift), [Apache Hive](#apache-hive), [Apache Phoenix](#apache-phoenix), and [Apache Tajo](#apache-tajo)) in [this section](#examples). ## More properties There are more JDBC interpreter properties you can specify like below. @@ -205,6 +205,50 @@ WHERE name='{{"{{performer=Sheryl Crow|Doof|Fanfarlo|Los Paranoia"}}}}' ## Examples Here are some examples you can refer to. Including the below connectors, you can connect every databases as long as it can be configured with it's JDBC driver. +### Postgres + + + +##### Properties + + + + + + + + + + + + + + + + + + + + + +
    NameValue
    default.driverorg.postgresql.Driver
    default.urljdbc:postgresql://localhost:5432/
    default.usermysql_user
    default.passwordmysql_password
    + +[Postgres JDBC Driver Docs](https://jdbc.postgresql.org/documentation/documentation.html) + +##### Dependencies + + + + + + + + + +
    ArtifactExcludes
    org.postgresql:postgresql:9.4.1211
    + +[Maven Repository: org.postgresql:postgresql](https://mvnrepository.com/artifact/org.postgresql/postgresql) + ### Mysql @@ -233,6 +277,8 @@ Here are some examples you can refer to. Including the below connectors, you can +[Mysql JDBC Driver Docs](https://dev.mysql.com/downloads/connector/j/) + ##### Dependencies @@ -245,6 +291,96 @@ Here are some examples you can refer to. Including the below connectors, you can
    +[Maven Repository: mysql:mysql-connector-java](https://mvnrepository.com/artifact/mysql/mysql-connector-java) + +### MariaDB + + + +##### Properties + + + + + + + + + + + + + + + + + + + + + +
    NameValue
    default.driverorg.mariadb.jdbc.Driver
    default.urljdbc:mariadb://localhost:3306
    default.usermariadb_user
    default.passwordmariadb_password
    + +[MariaDB JDBC Driver Docs](https://mariadb.com/kb/en/mariadb/about-mariadb-connector-j/) + +##### Dependencies + + + + + + + + + +
    ArtifactExcludes
    org.mariadb.jdbc:mariadb-java-client:1.5.4
    + +[Maven Repository: org.mariadb.jdbc:mariadb-java-client](https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client) + +### Redshift + + + +##### Properties + + + + + + + + + + + + + + + + + + + + + +
    NameValue
    default.drivercom.amazon.redshift.jdbc42.Driver
    default.urljdbc:redshift://your-redshift-instance-address.redshift.amazonaws.com:5439/your-database
    default.userredshift_user
    default.passwordredshift_password
    + +[AWS Redshift JDBC Driver Docs](http://docs.aws.amazon.com/redshift/latest/mgmt/configure-jdbc-connection.html) + +##### Dependencies + + + + + + + + + +
    ArtifactExcludes
    com.amazonaws:aws-java-sdk-redshift:1.11.51
    + +[Maven Repository: com.amazonaws:aws-java-sdk-redshift](https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-redshift) + ### Apache Hive @@ -273,6 +409,9 @@ Here are some examples you can refer to. Including the below connectors, you can +[Apache Hive 1 JDBC Driver Docs](https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-JDBC) +[Apache Hive 2 JDBC Driver Docs](https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-JDBC) + ##### Dependencies @@ -289,6 +428,8 @@ Here are some examples you can refer to. Including the below connectors, you can
    +[Maven Repository : org.apache.hive:hive-jdbc](https://mvnrepository.com/artifact/org.apache.hive/hive-jdbc) + ### Apache Phoenix Phoenix supports `thick` and `thin` connection types: @@ -338,6 +479,8 @@ Use the appropriate `default.driver`, `default.url`, and the dependency artifact +[Maven Repository: org.apache.phoenix:phoenix-core](https://mvnrepository.com/artifact/org.apache.phoenix/phoenix-core) + #### Thin client connection @@ -388,6 +531,8 @@ Before Adding one of the below dependencies, check the Phoenix version first. +[Maven Repository: org.apache.phoenix:phoenix-queryserver-client](https://mvnrepository.com/artifact/org.apache.phoenix/phoenix-queryserver-client) + ### Apache Tajo @@ -408,6 +553,8 @@ Before Adding one of the below dependencies, check the Phoenix version first. +[Apache Tajo JDBC Driver Docs](https://tajo.apache.org/docs/current/jdbc_driver.html) + ##### Dependencies @@ -420,5 +567,7 @@ Before Adding one of the below dependencies, check the Phoenix version first.
    +[Maven Repository: org.apache.tajo:tajo-jdbc](https://mvnrepository.com/artifact/org.apache.tajo/tajo-jdbc) + ## Bug reporting If you find a bug using JDBC interpreter, please create a [JIRA](https://issues.apache.org/jira/browse/ZEPPELIN) ticket.