-
Notifications
You must be signed in to change notification settings - Fork 1k
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
flinksql方式从kafka中导入数据到hive 作业无法执行 #219
Comments
原因是由于使用了jdk11 |
请问对应的pom配置和sql怎么写的? |
已解决,配置文件缺失metastore.uri,添加上即可 |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CREATE TABLE kafka_input(
id BIGINT,
name STRING,
event_time STRING,
num BIGINT
)
WITH (
'connector' = 'kafka',
'topic' = 'xiao_test_1',
'properties.bootstrap.servers' = 'xxxxx:9092',
'properties.group.id' = 'testGroup',
'scan.startup.mode' = 'latest-offset',
'format' = 'json'
);
CREATE CATALOG myhive WITH (
'type' = 'hive',
'default-database' = 'xiao_test_1',
'hive-conf-dir' = '/home/work/hive/hive/conf/'
);
SET table.sql-dialect=hive;
INSERT INTO stg_test_hive_table
SELECT
id,
name as name_desc,
event_time,
num,
CAST(TO_DATE(CAST(LOCALTIMESTAMP AS VARCHAR)) AS VARCHAR) as dt
FROM kafka_input;
请问这是什么情况?
The text was updated successfully, but these errors were encountered: