Skip to content

Commit ab00a62

Browse files
committed
HUE-8740 [librdbms] Make jdbc plugin build fully off by default
1 parent 6f6bf9b commit ab00a62

File tree

4 files changed

+37
-20
lines changed

4 files changed

+37
-20
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ docs:
119119
# Install parent POM
120120
###################################
121121
parent-pom:
122+
ifneq (,$(BUILD_DB_PROXY))
122123
cd $(ROOT)/maven && mvn install $(MAVEN_OPTIONS)
124+
endif
123125

124126
.PHONY: parent-pom
125127

desktop/libs/librdbms/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ else
6363
$(DB_PROXY_JAR):
6464
$(error Cannot build DBProxy plugin without source)
6565
endif
66-
else:
66+
else
67+
$(DB_PROXY_JAR):
6768
@echo 'Skipping DB Proxy Jar build as BUILD_DB_PROXY not set.'
6869
endif

docs/docs-site/content/administrator/installation/dependencies/_index.md

+29-16
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ weight: -1
77

88
## Dependencies
99

10-
Hue employs some Python modules which use native code and requires
11-
certain development libraries be installed on your system. To install from the
12-
tarball, you'll need these library development packages and tools installed on your system:
10+
Hue employs some Python modules which use native code and requires certain development libraries be installed on your system. To install from the tarball, you'll need these library development packages and tools installed on your system:
1311

1412
* Python 2.7
15-
* Python 3 (not available yet [HUE-8737](https://issues.cloudera.org/browse/HUE-8737))
13+
* Python 3 (can be tested cf. instructions on [HUE-8737](https://issues.cloudera.org/browse/HUE-8737))
1614
* [MySQL InnoDB or PostgreSQL or Oracle](https://www.cloudera.com/documentation/enterprise/latest/topics/hue_dbs_0.html)
17-
* Java (but only for the JDBC proxy, should be removed when [SQL Alchemy](https://issues.cloudera.org/browse/HUE-8740) is mature)
15+
1816

1917
### Ubuntu
2018

@@ -27,19 +25,10 @@ tarball, you'll need these library development packages and tools installed on y
2725
sudo apt-get install -y nodejs
2826

2927

30-
**Install Oracle JDK**
31-
32-
On Ubuntu 16.04 or less only:
33-
34-
sudo add-apt-repository ppa:webupd8team/java
35-
sudo apt-get update
36-
sudo apt-get install oracle-java8-installer
37-
3828
### CentOS/RHEL
3929

4030
sudo yum install ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-plain gcc gcc-c++ krb5-devel libffi-devel libxml2-devel libxslt-devel make mysql mysql-devel openldap-devel python-devel sqlite-devel gmp-devel
4131

42-
* [Oracle JDK](https://www.digitalocean.com/community/tutorials/how-to-install-java-on-centos-and-fedora)
4332
* mvn (from [``apache-maven``](https://gist.github.com/sebsto/19b99f1fa1f32cae5d00) package or maven3 tarball)
4433
* libtidy (for unit tests only)
4534
* openssl-devel (for version 7+)
@@ -99,11 +88,10 @@ for more details, refer to this link: [https://docs.oracle.com/cd/E37670_01/E590
9988

10089
* Xcode command line tools
10190
* [Homebrew](https://brew.sh)
102-
* [Oracle Instant Client](http://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/index.html)
10391

10492
Install Dependencies via Homebrew
10593

106-
brew install [email protected] maven gmp openssl libffi && brew cask install adoptopenjdk
94+
brew install [email protected] maven gmp openssl libffi
10795

10896
Install Xcode command line tools
10997

@@ -164,6 +152,31 @@ Tip: Going to where is the Oracle client, e.g. /usr/local/share/oracle then crea
164152

165153
There is more details on this [Apply Temporary Workaround for Oracle 12 Client](https://docs.cloudera.com/documentation/enterprise/latest/topics/hue_dbs_oracle_pkg.html#concept_qx3_hfw_4z).
166154

155+
156+
#### Mac
157+
158+
* [Oracle Instant Client](http://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/index.html)
159+
160+
### Java
161+
162+
Java is only for the [JDBC proxy](/developer/connectors/#jdbc) connector.
163+
164+
**Install Oracle JDK**
165+
166+
On Ubuntu 16.04 or less only:
167+
168+
sudo add-apt-repository ppa:webupd8team/java
169+
sudo apt-get update
170+
sudo apt-get install oracle-java8-installer
171+
172+
On Centos:
173+
174+
* [Oracle JDK](https://www.digitalocean.com/community/tutorials/how-to-install-java-on-centos-and-fedora)
175+
176+
On Mac:
177+
178+
brew cask install adoptopenjdk
179+
167180
### Supported Browsers
168181

169182
The two latest LTS versions of each browsers:

docs/docs-site/content/developer/connectors/_index.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ This [asynchronous API](https://github.com/cloudera/hue/tree/master/apps/beeswax
2323

2424
### Custom
2525

26-
If the built-in HiveServer2 (Hive, Impala, Spark SQL), RDBMS (MySQL, PostgreSQL, Oracle, SQLite), and JDBC interfaces don’t meet your needs, you can implement your own connector to the notebook app:
26+
If the built-in HiveServer2 (Hive, Impala, Spark SQL), SqlAlchemy (MySQL, PostgreSQL, Oracle, Presto...) don’t meet your needs, you can implement your own connector to the notebook app:
2727

28-
* List of [all connectors](https://github.com/cloudera/hue/tree/master/desktop/libs/notebook/src/notebook/connectors)
29-
* Each connector API subclasses the [Base API](https://github.com/cloudera/hue/blob/master/desktop/libs/notebook/src/notebook/connectors/base.py) and must implement the methods defined within. Refer to the [JDBC](https://github.com/cloudera/hue/blob/master/desktop/libs/notebook/src/notebook/connectors/jdbc.py) or [RdbmsApi](https://github.com/cloudera/hue/blob/master/desktop/libs/notebook/src/notebook/connectors/rdbms.py) for representative examples
28+
* List of the existing [Notebook Connectors](https://github.com/cloudera/hue/tree/master/desktop/libs/notebook/src/notebook/connectors)
29+
* Each connector API subclasses the [Base API](https://github.com/cloudera/hue/blob/master/desktop/libs/notebook/src/notebook/connectors/base.py) and must implement the methods defined within
30+
* Refer to the [JdbcApi](https://github.com/cloudera/hue/blob/master/desktop/libs/notebook/src/notebook/connectors/jdbc.py) or [RdbmsApi](https://github.com/cloudera/hue/blob/master/desktop/libs/notebook/src/notebook/connectors/rdbms.py) for representative examples
3031

3132
* [Kafka SQL](https://github.com/cloudera/hue/blob/master/desktop/libs/notebook/src/notebook/connectors/ksql.py)
3233
* [Solr SQL](https://github.com/cloudera/hue/blob/master/desktop/libs/notebook/src/notebook/connectors/solr.py)

0 commit comments

Comments
 (0)