From 40dfdecb80280d3cab1a1f008fec886f9ca2e480 Mon Sep 17 00:00:00 2001 From: Jongyoul Lee Date: Mon, 27 Jun 2016 23:50:50 +0900 Subject: [PATCH] ZEPPELIN-1030 Added example for various jdbc-like interpreters ### What is this PR for? Adding examples settings for JdbcInterpreter to use jdbc drivers. This hasn't changed actual codes ### What type of PR is it? [Documentation] ### Todos * [x] - Add example ### What is the Jira issue? * https://issues.apache.org/jira/browse/ZEPPELIN-1030 ### How should this be tested? 1. mvn clean package -DskipTests -Pspark-1.6 -pl 'jdbc,zeppelin-interpreter,zeppelin-web,zeppelin-server,zeppelin-zengine,zeppelin-display' 2. Test it ### Screenshots (if appropriate) screen shot 2016-06-27 at 11 46 00 pm screen shot 2016-06-27 at 11 47 59 pm ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Jongyoul Lee Closes #1096 from jongyoul/ZEPPELIN-1030 and squashes the following commits: 1aaf0d2 [Jongyoul Lee] Added example for various interpreters --- .../main/resources/interpreter-setting.json | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/jdbc/src/main/resources/interpreter-setting.json b/jdbc/src/main/resources/interpreter-setting.json index 069880c2d02..c60a987697f 100644 --- a/jdbc/src/main/resources/interpreter-setting.json +++ b/jdbc/src/main/resources/interpreter-setting.json @@ -45,6 +45,90 @@ "propertyName": "zeppelin.jdbc.concurrent.max_connection", "defaultValue": "10", "description": "Number of concurrent execution" + }, + "hive.url": { + "envName": null, + "propertyName": "hive.url", + "defaultValue": "jdbc:hive2://localhost:10000", + "description": "" + }, + "hive.user": { + "envName": null, + "propertyName": "hive.user", + "defaultValue": "hive", + "description": "" + }, + "hive.password": { + "envName": null, + "propertyName": "hive.password", + "defaultValue": "", + "description": "" + }, + "hive.driver": { + "envName": null, + "propertyName": "hive.driver", + "defaultValue": "org.apache.hive.jdbc.HiveDriver", + "description": "" + }, + "phoenix.url": { + "envName": null, + "propertyName": "phoenix.url", + "defaultValue": "jdbc:phoenix:localhost:2181:/hbase-unsecure", + "description": "" + }, + "phoenix.user": { + "envName": null, + "propertyName": "phoenix.user", + "defaultValue": "phoenixuser", + "description": "" + }, + "phoenix.password": { + "envName": null, + "propertyName": "phoenix.password", + "defaultValue": "", + "description": "" + }, + "phoenix.driver": { + "envName": null, + "propertyName": "phoenix.driver", + "defaultValue": "org.apache.phoenix.jdbc.PhoenixDriver", + "description": "" + }, + "tajo.url": { + "envName": null, + "propertyName": "tajo.url", + "defaultValue": "jdbc:tajo://localhost:26002/default", + "description": "" + }, + "tajo.driver": { + "envName": null, + "propertyName": "tajo.driver", + "defaultValue": "org.apache.tajo.jdbc.TajoDriver", + "description": "" + }, + "psql.url": { + "envName": null, + "propertyName": "psql.url", + "defaultValue": "jdbc:postgresql://localhost:5432/", + "description": "" + }, + "psql.user": { + "envName": null, + "propertyName": "psql.user", + "defaultValue": "phoenixuser", + "description": "" + }, + "psql.password": { + "envName": null, + "propertyName": "psql.password", + "defaultValue": "", + "description": "" + }, + "psql.driver": { + "envName": null, + "propertyName": "psql.driver", + "defaultValue": "org.postgresql.Driver", + "description": "" } } }