-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
flink_sql create table and to save hive #12553
Comments
@lijihuaxiaomo Hi, did you already solve the issues? |
To further investigate this issue:
|
Hi @danny0405 I was able to replicate this issue using Hudi 1.0.0 and Flink 1.17.2. I am attaching the Sample code and Flink logs here. bash $FLINK_HOME/bin/sql-client.sh embedded -j /opt/flink/lib/hudi-flink1.17-bundle-1.0.0-rc1.jar shell set sql-client.execution.result-mode = tableau;
CREATE CATALOG hudi_hive_catalog WITH (
'type' = 'hudi',
'mode' = 'hms',
'table.external' = 'true',
'default-database' = 'default',
'hive.conf.dir' = '/opt/flink/conf',
'catalog.path' = 's3a://warehouse/hudi_hive_catalog'
);
USE CATALOG hudi_hive_catalog;
CREATE DATABASE IF NOT EXISTS hudi_db;
USE hudi_db;
CREATE TABLE IF NOT EXISTS hudi_table(
uuid VARCHAR(20),
name VARCHAR(10),
age INT,
ts TIMESTAMP(3),
`partition` VARCHAR(20)
)
PARTITIONED BY (`partition`)
WITH (
'connector' = 'hudi',
'path' = 's3a://warehouse/hudi_db/hudi_table',
'table.type' = 'COPY_ON_WRITE'
);
INSERT INTO hudi_table VALUES
('id1','Alex',23,TIMESTAMP '1970-01-01 00:00:01','par1'),
('id2','Stephen',33,TIMESTAMP '1970-01-01 00:00:02','par1'),
('id3','Julian',53,TIMESTAMP '1970-01-01 00:00:03','par2'),
('id4','Fabian',31,TIMESTAMP '1970-01-01 00:00:04','par2'),
('id5','Sophia',18,TIMESTAMP '1970-01-01 00:00:05','par3'),
('id6','Emma',20,TIMESTAMP '1970-01-01 00:00:06','par3'),
('id7','Bob',44,TIMESTAMP '1970-01-01 00:00:07','par4'),
('id8','Han',56,TIMESTAMP '1970-01-01 00:00:08','par4'); flink--sql-client-28d1fd5c5bee.log |
Hi @danny0405 Are you able to check the attached logs to find out the cause? |
Tips before filing an issue
Have you gone through our FAQs?
Join the mailing list to engage in conversations and get faster support at [email protected].
If you have triaged this as a bug, then file an issue directly.
Describe the problem you faced
A clear and concise description of the problem.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Environment Description
Hudi version : 0.14
Spark version :
Hive version :3.1.3
Hadoop version :3.4.1
Flink SQL> CREATE TABLE t103(
Flink SQL> INSERT INTO t103 VALUES
Flink SQL>
The text was updated successfully, but these errors were encountered: