Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][Connector-V2] Add phoenix connector sink and phoenix connector source #2499

Merged
merged 16 commits into from
Aug 29, 2022

Conversation

531651225
Copy link
Contributor

#1946 Add phoenix sink connector
support thin driver client and Thick driver client

Purpose of this pull request

Check list

@EricJoy2048
Copy link
Member

Please update the pr title and add the [Connector-V2] label.

@531651225 531651225 changed the title Phoenix connector sink [Feature][Connector-V2] Add phoenix connector sink Aug 22, 2022
@531651225
Copy link
Contributor Author

Please update the pr title and add the [Connector-V2] label.

ok,done

@531651225
Copy link
Contributor Author

Can you add connector-v2 e2e-testcase?

reference: https://github.com/apache/incubator-seatunnel/tree/dev/seatunnel-e2e/seatunnel-flink-connector-v2-e2e https://github.com/apache/incubator-seatunnel/tree/dev/seatunnel-e2e/seatunnel-spark-connector-v2-e2e

Ok, I will try to add it later. But the Phoenix Docker image is very large, I wonder if there is any problem

@531651225
Copy link
Contributor Author

@531651225 531651225 requested a review from hailin0 August 25, 2022 02:09
@hailin0
Copy link
Member

hailin0 commented Aug 25, 2022

Can phoenix drivers be loaded using jdbc connector?

@531651225
Copy link
Contributor Author

Can phoenix drivers be loaded using jdbc connector?

Can we still use this method ? Considering that more improvements will be added later, is this more flexible and less conflict

@hailin0
Copy link
Member

hailin0 commented Aug 25, 2022

Can phoenix drivers be loaded using jdbc connector?

Can we still use this method ? Considering that more improvements will be added later, is this more flexible and less conflict

case #2429

@531651225
Copy link
Contributor Author

Can phoenix drivers be loaded using jdbc connector?

Can we still use this method ? Considering that more improvements will be added later, is this more flexible and less conflict

case #2429

Reuse JDBC connectors. Does the Phoenix connector need to be added to the connector JDBC module

@hailin0
Copy link
Member

hailin0 commented Aug 25, 2022

Can phoenix drivers be loaded using jdbc connector?

Can we still use this method ? Considering that more improvements will be added later, is this more flexible and less conflict

case #2429

Reuse JDBC connectors. Does the Phoenix connector need to be added to the connector JDBC module

You need add database dialect to here

https://github.com/apache/incubator-seatunnel/tree/dev/seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect

@531651225
Copy link
Contributor Author

Can phoenix drivers be loaded using jdbc connector?

Can we still use this method ? Considering that more improvements will be added later, is this more flexible and less conflict

case #2429

Reuse JDBC connectors. Does the Phoenix connector need to be added to the connector JDBC module

You need add database dialect to here

https://github.com/apache/incubator-seatunnel/tree/dev/seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect

Can phoenix drivers be loaded using jdbc connector?

Can we still use this method ? Considering that more improvements will be added later, is this more flexible and less conflict

case #2429

Reuse JDBC connectors. Does the Phoenix connector need to be added to the connector JDBC module

You need add database dialect to here

https://github.com/apache/incubator-seatunnel/tree/dev/seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect

Thanks for your advice, I have re implemented the phoenix connector reuse jdbc connector in new commit. and and spark and flink e2e and pass the test

Copy link
Member

@hailin0 hailin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Phoenix support XA transactions?
If unsupported then add note to documentation

@531651225
Copy link
Contributor Author

Does Phoenix support XA transactions? If unsupported then add note to documentation

i have added note to documentation in new commit

docs/en/connector-v2/sink/Phoenix.md Outdated Show resolved Hide resolved
docs/en/connector-v2/sink/Phoenix.md Outdated Show resolved Hide resolved
Comment on lines 16 to 19
if you use phoenix (thick) driver the value is `org.apache.phoenix.jdbc.PhoenixDriver` or you use (thin) driver the value is `org.apache.phoenix.queryserver.client.Driver`

### url [string]
if you use phoenix (thick) driver the value is `jdbc:phoenix:localhost:2182/hbase` or you use (thin) driver the value is `jdbc:phoenix:thin:url=http://localhost:8765;serialization=PROTOBUF`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks,done

@hailin0
Copy link
Member

hailin0 commented Aug 29, 2022

LGTM

@531651225 531651225 requested a review from ashulin August 29, 2022 01:39
@531651225
Copy link
Contributor Author

图片
The CodeQL/Analyze (Java) step in CI was cancelled,. I think the overall compilation of the project timed out. How to solve it? @ashulin @hailin0

Copy link
Member

@ashulin ashulin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@CalvinKirs CalvinKirs merged commit 05ccf9d into apache:dev Aug 29, 2022
@531651225 531651225 changed the title [Feature][Connector-V2] Add phoenix connector sink [Feature][Connector-V2] Add phoenix connector sink and phoenix connector source Aug 29, 2022
liugddx pushed a commit to liugddx/seatunnel that referenced this pull request Aug 29, 2022
* [Feature][Connector-V2] Add phoenix connector sink

* fix doc style

Co-authored-by: 毕博 <bibo@mafengwo.com>
TyrantLucifer pushed a commit to TyrantLucifer/incubator-seatunnel that referenced this pull request Aug 30, 2022
* [Feature][Connector-V2] Add phoenix connector sink

* fix doc style

Co-authored-by: 毕博 <bibo@mafengwo.com>
MRYOG pushed a commit to MRYOG/incubator-seatunnel that referenced this pull request Sep 8, 2022
* [Feature][Connector-V2] Add phoenix connector sink

* fix doc style

Co-authored-by: 毕博 <bibo@mafengwo.com>
@531651225 531651225 deleted the phoenix_connector-sink branch September 9, 2022 03:22
MRYOG pushed a commit to MRYOG/incubator-seatunnel that referenced this pull request Sep 15, 2022
* [Feature][Connector-V2] Add phoenix connector sink

* fix doc style

Co-authored-by: 毕博 <bibo@mafengwo.com>
MRYOG pushed a commit to MRYOG/incubator-seatunnel that referenced this pull request Sep 16, 2022
* [Feature][Connector-V2] Add phoenix connector sink

* fix doc style

Co-authored-by: 毕博 <bibo@mafengwo.com>
TyrantLucifer pushed a commit to TyrantLucifer/incubator-seatunnel that referenced this pull request Sep 18, 2022
* [Feature][Connector-V2] Add phoenix connector sink

* fix doc style

Co-authored-by: 毕博 <bibo@mafengwo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants