-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
Please update the pr title and add the |
ok,done |
.../java/org/apache/seatunnel/connectors/seatunnel/phoenix/client/PhoenixStatementExecutor.java
Outdated
Show resolved
Hide resolved
.../main/java/org/apache/seatunnel/connectors/seatunnel/phoenix/client/PhoenixOutputFormat.java
Outdated
Show resolved
Hide resolved
…seatunnel data to sink
Ok, I will try to add it later. But the Phoenix Docker image is very large, I wonder if there is any problem |
E2E has been added and passed the test |
...-v2-e2e/src/test/java/org/apache/seatunnel/e2e/spark/v2/phoenix/FakeSourceToIoPhoenixIT.java
Outdated
Show resolved
Hide resolved
...l-e2e/seatunnel-spark-connector-v2-e2e/src/test/resources/phoenix/fakesource_to_phoenix.conf
Outdated
Show resolved
Hide resolved
...l-e2e/seatunnel-spark-connector-v2-e2e/src/test/resources/phoenix/fakesource_to_phoenix.conf
Outdated
Show resolved
Hide resolved
...-v2-e2e/src/test/java/org/apache/seatunnel/e2e/spark/v2/phoenix/FakeSourceToIoPhoenixIT.java
Outdated
Show resolved
Hide resolved
...l-e2e/seatunnel-spark-connector-v2-e2e/src/test/resources/phoenix/fakesource_to_phoenix.conf
Outdated
Show resolved
Hide resolved
...or-v2-e2e/src/test/java/org/apache/seatunnel/e2e/flink/v2/phoenix/FakeSourceToPhoenixIT.java
Outdated
Show resolved
Hide resolved
...l-e2e/seatunnel-flink-connector-v2-e2e/src/test/resources/phoenix/fakesource_to_phoenix.conf
Outdated
Show resolved
Hide resolved
...-v2-e2e/src/test/java/org/apache/seatunnel/e2e/spark/v2/phoenix/FakeSourceToIoPhoenixIT.java
Outdated
Show resolved
Hide resolved
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 |
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 |
There was a problem hiding this 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
...g/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect/phoenix/PhoenixTypeMapper.java
Outdated
Show resolved
Hide resolved
...ache/seatunnel/connectors/seatunnel/jdbc/internal/dialect/phoenix/PhoenixDialectFactory.java
Outdated
Show resolved
Hide resolved
...ink-connector-v2-e2e/src/test/java/org/apache/seatunnel/e2e/flink/v2/jdbc/JdbcPhoenixIT.java
Outdated
Show resolved
Hide resolved
i have added note to documentation in new commit |
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` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks,done
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
* [Feature][Connector-V2] Add phoenix connector sink * fix doc style Co-authored-by: 毕博 <bibo@mafengwo.com>
* [Feature][Connector-V2] Add phoenix connector sink * fix doc style Co-authored-by: 毕博 <bibo@mafengwo.com>
* [Feature][Connector-V2] Add phoenix connector sink * fix doc style Co-authored-by: 毕博 <bibo@mafengwo.com>
* [Feature][Connector-V2] Add phoenix connector sink * fix doc style Co-authored-by: 毕博 <bibo@mafengwo.com>
* [Feature][Connector-V2] Add phoenix connector sink * fix doc style Co-authored-by: 毕博 <bibo@mafengwo.com>
* [Feature][Connector-V2] Add phoenix connector sink * fix doc style Co-authored-by: 毕博 <bibo@mafengwo.com>
#1946 Add phoenix sink connector
support thin driver client and Thick driver client
Purpose of this pull request
Check list
New License Guide